PHPize Online / SQLize Online

Articles    Popular


Tags: PHP 5.x PHP 7.x PHP 8.x

time — Return current Unix timestamp
): int
Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given. In other words, timestamp is optional and defaults to the value of time().


Return Values

Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).

time - New snippets