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