Skip to content

time()

The time() function returns the current Unix timestamp.

A Unix timestamp represents the number of seconds since January 1, 1970.

echo time();
echo date("Y-m-d H:i:s", time());