anujgarg Posted January 22, 2009 Share Posted January 22, 2009 Suppose I have submitted a question on yahoo answers then the time shown over there is like - (4 days ago) or (6 mins ago) or (1 sec ago)...My query is that how can I maintain the posted time in PHP... Please suggest... TIA Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted January 22, 2009 Share Posted January 22, 2009 I'm sorry, what do you mean? Are you trying to work out the actual date given something like "4 days ago"? Quote Link to comment Share on other sites More sharing options...
anujgarg Posted January 22, 2009 Author Share Posted January 22, 2009 i want to display the difference between the time posted the answer and the current time. And it would be in the form of - --4 secs ago (if it is < 60 secs) --4 mins ago (if it is < 60 mins) -- 1 hr ago (if it is > 60 mins and < 24 hrs) and so on... This is what I want to display...Any idea?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.