PHP timezone_name_from_abbr() 함수
예시
약어에서 시간대 이름을 반환합니다.
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
정의 및 사용
timezone_name_from_abbr()은 약어에서 시간대 이름을 반환합니다.
통사론
timezone_name_from_abbr(abbr, gmtoffset, isdst)
매개변수 값
Parameter | Description |
---|---|
abbr | Required. Specifies the timezone abbreviation |
gmtoffset | Optional. Specifies the offset from GMT in seconds. Default is -1, which means that first found timezone corresponding to abbr is returned. Otherwise exact offset is searched. If not found, the first timezone with any offset is returned |
isdst |
Optional. Specifies daylight saving time indicator.
|
기술적 세부 사항
반환 값: | 성공하면 시간대 이름을 반환합니다. 실패시 FALSE |
---|---|
PHP 버전: | 5.1.3+ |
❮ PHP 날짜/시간 참조