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 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.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
- PHP 8.1 / MySQL 5.7 time
last run:
2023-04-18 15:41:41
7
time - New snippets
-
PHP 8.1 / MySQL 5.7 md5 time md5 time
added at:
2024-01-27 07:04:58
1
-
PHP 8.1 / MySQL 5.7 date time
added at:
2023-12-28 09:20:33
1
-
PHP 8.1 / MySQL 5.7 date time
added at:
2023-12-28 09:20:09
1
-
PHP 7.4 / MySQL 5.7 time strtotime date
added at:
2023-11-30 09:33:08
1
-
PHP 5.6 / MySQL 5.7 date_default_timezone_set localtime time
added at:
2023-11-11 08:19:21
1
-
PHP 5.6 / MySQL 5.7 date_default_timezone_set localtime time
added at:
2023-11-11 08:18:46
1
-
PHP 5.6 / MySQL 5.7 date_default_timezone_set localtime time
added at:
2023-11-11 08:16:50
1
-
PHP 8.1 / MySQL 5.7 strtotime date time floor
added at:
2023-11-08 01:46:33
1
-
PHP 8.1 / MySQL 5.7 strtotime date time floor
added at:
2023-11-08 01:46:15
1