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