In this PHP function we'll need to pass two parameters. The first one is the TimeStamp and the another one is the output format.
PHP code: Using TimeStamper
echo TimeStamper(1385378646, "string");
This function is useful to display the TimeStamp in AGO format, you can also choose an output format.
If you want the output format to be the normal string then the second parameter will be "string" if you want it to be in JSON then it will be "json" if you want it in xml then it will be "xml" if you want the output in Associative array then it will be "assoc".
Download the PHP function: https://github.com/thecodepress/PHP-TimeStamper