DateTimeZone::listAbbreviations
timezone_abbreviations_list
(PHP 5 >= 5.2.0, PHP 7, PHP 8)
DateTimeZone::listAbbreviations -- timezone_abbreviations_list — dst, 오프셋 및 시간대 이름을 포함하는 연관 배열을 반환합니다.
설명
객체 지향 스타일
public static DateTimeZone::listAbbreviations(): array
절차적 스타일
timezone_abbreviations_list(): array
메모: 이 함수의 데이터는 성능상의 이유로 미리 컴파일되며 최신 » timezonedb를 사용할 때 업데이트되지 않습니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
시간대 약어의 배열을 반환합니다.
Examples
예제 #1 timezone_abbreviations_list() 예제
<?php
$timezone_abbreviations = DateTimeZone::listAbbreviations();
print_r($timezone_abbreviations["acst"]);
?>
위의 예는 다음과 유사한 결과를 출력합니다.
Array ( [0] => Array ( [dst] => 1 [offset] => -14400 [timezone_id] => America/Porto_Acre ) [1] => Array ( [dst] => 1 [offset] => -14400 [timezone_id] => America/Eirunepe ) [2] => Array ( [dst] => 1 [offset] => -14400 [timezone_id] => America/Rio_Branco ) [3] => Array ( [dst] => 1 [offset] => -14400 [timezone_id] => Brazil/Acre ) )
기타
- timezone_identifiers_list() - DateTimeZone::listIdentifiers의 별칭