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