gettimeofday
gettimeofday
gettimeofday
- It get current time of the System in the form of array
Syntax:
array gettimeofday ( void)
This is an interface to gettimeofday(2). It returns an associative array containing the data returned from the system call.
“sec” - seconds
“usec” - microseconds
“minuteswest” - minutes west of Greenwich
“dsttime” - type of dst correction
Example:
$arr = gettimeofday();
print_r($arr);
The result in $arr is
Array
(
[sec] => 1173761665
[usec] => 507941
[minuteswest] => -330
[dsttime] => 0
)
