How to convert a unix timestamp to an ISO8601 timestamp in PHP?

Posted by Vafello on Stack Overflow See other posts from Stack Overflow or by Vafello
Published on 2010-03-18T17:02:07Z Indexed on 2010/03/18 17:11 UTC
Read the original article Hit count: 212

Filed under:
|
|

I am trying to extract unix timestamp from mysql and convert it to ISO8601 timestamp. I need it in order to format date into facebook-like(or stack-overflow-like:) '30 minutes ago' instead of displaying the exact date and time. Has anyone dealt with it?

© Stack Overflow or respective owner

Related posts about php

Related posts about timestamp