xref: /webtrees/resources/views/components/datetime.phtml (revision 9b152ff9230017d2c03aa1bf603a98b18250446d)
1<?php
2
3use Fisharebest\Webtrees\Carbon;
4use Fisharebest\Webtrees\I18N;
5
6/** @var Carbon $timestamp */
7?>
8
9<?php if ($timestamp->unix() === 0) : ?>
10    <span class="wt-timestamp">
11        <?= I18N::translate('Never') ?>
12    </span>
13<?php else : ?>
14    <span class="wt-timestamp" title="<?= e($timestamp->local()->diffForHumans()) ?>" dir="auto">
15        <?= e($timestamp->local()->isoFormat('LLLL')) ?>
16    </span>
17<?php endif ?>
18