How do I display current time minus timestamp? "This was done XX minutes ago"

Discussion in 'Programming' started by mynameisdi, Mar 1, 2009.

  1. #1
    Hey guys,

    So I have a timestamp that goes something like 1219169855 -- that

    What I need is to create a php string that would transform that timestamp into

    "User did this XX minutes ago"

    Googling didn't help much, so how can I do that?

    I've got this in my php code

    .$row[timestamp].

    How do I transform it into "XX minutes ago" ?

    Thanks in advance!
     
    mynameisdi, Mar 1, 2009 IP