Time since post

I thought I would check in here before I started reinventing the wheel - is there a way in Kirby of displaying on the front end the time since a post was made? For example if it was less than a minute ago display “Posted xx seconds ago”, more than 60 minutes display “Posted xx hours ago” etc.

If not, what would my best approach be for this?
Thanks for any pointers

GitHub - hananils/kirby-date-methods: Kirby 3 plugin providing field and page methods for formatting dates and creating PHP date objects :wink:

1 Like

Just implemented this, working perfectly. Thanks for the pointer!