PHP gettimeofday() Function
PHP Date/Time Reference Manual
Example
Return the current time:
Run Example »
Definition and Usage
The gettimeofday() function returns the current time.
Syntax
gettimeofday(
return_float);
| Parameters | Description |
|---|---|
| return_float | Optional. When set to TRUE, returns a float instead of an array. Default is FALSE. |
Technical Details
| Return Value: | By default returns an associative array with the following keys: R
- [sec] - Seconds since the Unix epoch
- [usec] - Microseconds
- [minuteswest] - Minutes west of Greenwich
- [dsttime] - Type of daylight saving time correction
PHP Date/Time Reference Manual