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