time
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).More information about time on official PHP documentation site
time - Popular snippets
- PHP 8.1 / MySQL 5.7 date strtotime time floor
last run:
2022-08-10 18:42:58
38
- PHP 8.1 / MySQL 5.7 session_start time session_unset session_destroy var_export
last run:
2022-10-08 20:45:50
35
- PHP 8.0 / MySQL 5.7 time date printf
last run:
2023-11-10 16:42:55
26
- PHP 7.4 / MySQL 5.7 date_default_timezone_set time round
last run:
2023-03-26 15:14:11
18
- PHP 7.4 / MS SQL Server 2017 time print_r
last run:
2023-09-06 16:21:26
16
- PHP 8.1 / MySQL 5.7 print_r microtime time
last run:
2024-07-27 21:40:12
15
- PHP 8.1 / MySQL 5.7 md5 time
last run:
2024-08-21 10:40:15
13
- PHP 8.0 / MySQL 5.7 session_start setcookie time
last run:
2021-07-17 13:47:29
13
- PHP 8.1 / MySQL 5.7 date time print_r array_map
last run:
2022-07-21 15:25:39
9
- PHP 8.1 / MySQL 5.7 session_start time session_unset session_destroy var_export
last run:
2022-10-05 09:11:44
8
time - New snippets
-
PHP 7.4 / MySQL 5.7 time
added at:
2024-10-15 14:26:55
1
-
PHP 8.2.13 / MySQL 5.7 time time time
added at:
2024-10-15 14:26:19
1
-
PHP 8.1 / MySQL 5.7 time time
added at:
2024-10-10 14:04:34
1
-
PHP 8.1 / MySQL 5.7 time
added at:
2024-09-04 22:10:20
1
-
PHP 8.1 / MySQL 5.7 md5 time md5 time
added at:
2024-08-21 10:39:51
13
-
PHP 8.2.13 / MySQL 8.0 time explode
added at:
2024-08-06 19:47:03
1