|
update : 2015.11.03
php.shukuma.com검색:
|
localtime(PHP 4, PHP 5, PHP 7) localtime — Get the local time 설명
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. 인수
오류/예외모든 날짜/시간 함수 호출은
시간대가 유효하지 않을 때 변경점
예제
Example #1 localtime() example
<?php위 예제의 출력 예시:
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
)
|