Gen. partnerAlgotech

PHP function gettimeofday()

Get current time

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.