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