PHP function gettimeofday()

Availability in PHP 4.0

Get current time

Parameters

Parameter Data type Default value Note
$return_float bool null When set to true, a float instead of an array is returned.

Return values

mixed

By default an array is returned. If return_float is set, then a float is returned.

Array keys: "sec" - seconds since the Unix Epoch "usec" - microseconds "minuteswest" - minutes west of Greenwich "dsttime" - type of dst correction

Other resources

Official gettimeofday documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.