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).Syntax
time(void)
| Parameter | Description |
|---|---|
| void | Optional. |
Tips and Notes
Note: Calling this function is identical to calling mktime() with no parameters, or calling date("U").Example
<?php
$t=time();
echo($t . "<br />");
echo(date("D F d Y",$t));
?>
$t=time();
echo($t . "<br />");
echo(date("D F d Y",$t));
?>
OUTPUT :
1138618081
Mon January 30 2006
Mon January 30 2006