PHP Time

Posted The: 28/04/2009 At: 13:40

The time(); function of PHP, will output the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).

Example Usage

Can be used as a timestamp in database enteries, the stamps can be transformed into "readable" dates with the date function.

Examples

<?php
$time = time();
 
echo "<p>" . date('Y-m-d', $time) . "</p>";
?> 

Comments: [0]

© Brugbart Webdesign