Skip to content

time ​

php
number time()

Returns the current Unix timestamp. Useful in combination with date().

Example:

php
print("It is now ".date("H:i", time()).", and in an hour it will be ".date("H:i", time()+3600));

Result:

It is now 11:27, and in an hour it will be 12:27