Print time ago

Post Reply
Gohh
Ssr. Bludit
Posts: 11
Joined: Fri Aug 23, 2019 11:32 pm

How to print a time ago?
I try it this way, it doesn't work:

Code: Select all

<?php echo $page->timeago(); ?>
User avatar
Edi
Site Admin
Posts: 2202
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

There is no value timeago.

If you need this you have to modify the output of the value time with a calculation.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Gohh
Ssr. Bludit
Posts: 11
Joined: Fri Aug 23, 2019 11:32 pm

Edi wrote: Wed Apr 08, 2020 2:06 pm There is no value timeago.

If you need this you have to modify the output of the value time with a calculation.
?

Code: Select all

<?php echo $time->timeago(); ?>
Post Reply