Menu Samaritan's Purse

GETTIMEOFDAY

Get current time

SYNTAX

gettimeofday ([ bool $return_float = FALSE ] ) : mixed

PARAMETERS

return_float

When set to TRUE, a float instead of an array is returned.

RETURN

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

KEY DESCRIPTION
"sec" seconds since the Unix Epoch
"usec" microseconds
"minuteswest" minutes west of Greenwich
"dsttime" type of dst correction

EXAMPLES

VOID

Array
(
    [sec] => 1603367648
    [usec] => 526860
    [minuteswest] => 0
    [dsttime] => 0
)

RETURN_FLOAT

1603367648.5492

PHP