| CARVIEW |
Select Language
HTTP/2 200
server: myracloud
date: Mon, 02 Feb 2026 23:38:32 GMT
content-type: text/html; charset=utf-8
content-language: en
permissions-policy: interest-cohort=()
x-frame-options: SAMEORIGIN
status: 200 OK
link: ; rel=shorturl
last-modified: Mon, 02 Feb 2026 22:08:16 GMT
vary: accept-encoding
content-encoding: gzip
expires: Mon, 02 Feb 2026 23:38:32 GMT
cache-control: max-age=0
PHP: time - Manual
update page now
time
(PHP 4, PHP 5, PHP 7, PHP 8)
time — Return current Unix timestamp
Description
time(): int
Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
Note:
Unix timestamps do not contain any information with regards to any local timezone. It is recommended to use the DateTimeImmutable class for handling date and time information in order to avoid the pitfalls that come with just Unix timestamps.
Parameters
This function has no parameters.
Return Values
Returns the current timestamp.
Examples
Example #1 time() example
<?php
echo 'Now: '. time();The above example will output something similar to:
Now: 1660338149
Notes
Tip
Timestamp of the start of the request is available in $_SERVER['REQUEST_TIME'].
See Also
- DateTimeImmutable
- date() - Format a Unix timestamp
- microtime() - Return current Unix timestamp with microseconds
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close • / to open
Press Enter without
selection to search using Google