PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

time

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

time — Return current Unix timestamp.

Description

time(
    
): 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().

Parameters

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