Liked: 2017-07-22 18:12:03 – micro.blog updates...
Jonathan has changed his blog to use relative times/dates so posts say something like "An hour ago" instead of the post time.
This intrigued me and I wondered if I could do it for the last update time on the Today page.
A quick search revealed the
human_time_diff() function which compares two times supplied in Unix format and displays the difference in an human readable format, hence the name of the function.
Only the first time is required as the function will use the current time as the comparator by default.
I already get the time of the most recent post in Unix format using
strtotime() so it's a simple switch.
Now, the only question is: do I pull the trigger on the change?