September 2001
Intermediate to advanced
768 pages
32h 45m
English
int time(void)
Returns the current time as a UNIX timestamp.
Returns:
Current UNIX timestamp
Description:
This function returns the number of seconds since the UNIX epoch. It’s identical to calling mktime() with no arguments or using date('U').
Version:
PHP 3, PHP 4
See also:
mktime()
gmmktime()
Example:
$my_time = time();
print(date('D F d Y', $my_time));
|
Read now
Unlock full access