[Plugin: Timeago] human_time_diff() (4 posts)

  1. scribu
    Posted 5 years ago #

    Instead of using a jQuery plugin, you should consider using human_time_diff() that comes with WP.


  2. scribu
    Posted 5 years ago #

  3. asadkn
    Posted 5 years ago #

    As I mentioned in my post at WPSplash, there are few reasons I chose jQuery timeago plugin and modified the wordpress date/time to use relative time based on visitor's timezone.

    Sure anyone can use human_time_diff. It wouldn't need a plugin if we had to just use that. The difference here is that the fuzzy date/time here is updating live. "5 mins ago" will be "10 minutes ago" if you have had the page open for 5 minutes.

    Similarly, it uses microformats as I mentioned in my post and the original date/time is visible 'on hover' the date. And the time displayed is relative to user's local time and not to whatever the default wordpress timezone is.

    I didn't think I would need to explain this more in-depth. Thanks for the feedback.

  4. scribu
    Posted 5 years ago #

    My appologies for not reading the post first.

    The "updating live" feature is really interesting.

Topic Closed

This topic has been closed to new replies.

About this Topic