xref: /webtrees/resources/views/components/datetime.phtml (revision 8f8787974040d069eb8daff5e2b4af725c6bd747)
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