PHP for converting timestamps to "friendly" times (like Twitter)

Discussion in 'Web Design and Development' started by cleo, Oct 12, 2008.

  1. cleo macrumors 65816

    cleo

    Joined:
    Jan 21, 2002
    Location:
    Tampa Bay Area, FL, USA
    #1
    You know how Twitter gives the time a status was posted relative to now, so that it works across time zones and is a heckuva lot easier to read? (That is, "5 minutes ago" instead of "9:47 am" or what ever.)

    Has someone already written up such a script? I could do it myself, but gah... this is one case where reinventing wheel sounds boring as heck, in addition to inefficient!
     
  2. chilipie macrumors 6502a

    chilipie

    Joined:
    May 8, 2006
    Location:
    Englandshire
    #2
    Have a look at the comments here (at the bottom of the page).
     

Share This Page