Easy Tutorial
❮ Func Filter Has Var Php Imagecolorset ❯

PHP gettimeofday() Function

PHP Date/Time Reference Manual

Example

Returns the current time:


Definition and Usage

The gettimeofday() function returns the current time.

Syntax

Parameter Description
return_float Optional. When set to TRUE, it returns a float instead of an array. The default is FALSE.

Technical Details

Return Value: By default, it returns an associative array with the following keys: <br> [sec] - seconds since the Unix epoch <br> [usec] - microseconds <br> [minuteswest] - minutes west of Greenwich <br> [dsttime] - type of DST correction <br> If the return_float parameter is set to true, it returns a float.
PHP Version: 4+
--- ---
Changelog: PHP 5.1.0: Added the return_float parameter.
--- ---
❮ Func Filter Has Var Php Imagecolorset ❯