How to display Unix Time in PHP?
Posted by Joys of Programming on in PHP
PHP provides the function time() which returns the time passed since January 1,1970. To display the unix time, also called the epoch time
<?php $seconds = time(); echo $seconds," seconds" ?>
The output will be the number of seconds
1259673210 seconds
Comments:
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=ba756d88-861d-43a9-959f-ec466e459b8f)