thecodepress/PHP-TimeStamper — pull request #1 by abhimanyusharma003 (2013-12-28 16:08:51+00:00)
Title: Converted to class

Converted to class and added namespace.
This will helpful if you use composer or import it into any framework

Example use

include_once('index.php');

use thecodepress\timestamper\TimeStamper;

echo TimeStamper::time(1385378646)->toJson(); // json output

echo TimeStamper::time(1385378646)->toXml(); // xml output

echo TimeStamper::time(1385378646)->toAssoc(); // normal output