gettimeofday

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
)

Leave a Reply


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.