September 2001
Intermediate to advanced
768 pages
32h 45m
English
array gettimeofday(void)
Gets time information from the system.
Returns:
Array containing time information
Description:
This function acts as an interface to the UNIX system call gettimeofday(2).
Results from the function are returned as an associative array. The array contains the following keys:
| Value | Description |
|---|---|
| sec | Seconds |
| usec | Microseconds |
| minuteswest | Minutes west of Greenwich |
| dsttime | Type of Daylight Saving Time correction |
Version:
PHP 3.0.7, PHP 4
See also:
getdate()
Example:
$my_time = gettimeofday();
print("At the tone the (very accurate) time will be: ");
print("$my_time[sec].$my_time[usec]");
|
Read now
Unlock full access