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