PHP time() function
PHP time Definition and Usage
The time() function returns the current time as a Unix timestamp (the number of seconds since January 1 1970 00:00:00 GMT).
PHP time Syntax
Parameter |
Description |
void |
Optional. |
PHP time Tips and Notes
Note: Calling this function is identical to calling mktime() with no parameters, or calling date("U").
PHP time Example
<?php $t=time();
echo($t . "<br />");
echo(date("D F d Y",$t)); ?> |
The output of the code above could be:
| 1138618081 Mon January 30 2006 |
|