Returns the Unix timestamp of the current time, formatted as a date:
<?php$t=time();echo($t . "<br>");echo(date("Ymd",$t));?>The time() function returns the current time in seconds since the Unix epoch (January 1 1970 00:00:00 GMT).
time();
Return value: | Returns an integer containing the Unix timestamp of the current time. |
---|---|
PHP version: | 4+ |