PHP » GoLang |
login |
register |
about
|
localtime(PHP 4, PHP 5, PHP 7) localtime — Get the local time Description
array localtime
([ int
$timestamp = time()
[, bool $is_associative = FALSE
]] )The localtime() function returns an array identical to that of the structure returned by the C function call. Parameters
Errors/Exceptions
Every call to a date/time function will generate a Changelog
Examples
Example #1 localtime() example
<?php The above example will output something similar to: Array ( [0] => 24 [1] => 3 [2] => 19 [3] => 3 [4] => 3 [5] => 105 [6] => 0 [7] => 92 [8] => 1 ) Array ( [tm_sec] => 24 [tm_min] => 3 [tm_hour] => 19 [tm_mday] => 3 [tm_mon] => 3 [tm_year] => 105 [tm_wday] => 0 [tm_yday] => 92 [tm_isdst] => 1 ) |
more
Recently updated
more
Most requested
more
Last requests
|