update : 2015.11.03
php.shukuma.com검색:
|
IntlDateFormatter::getTimeZonedatefmt_get_timezone(PHP 5 >= 5.5.0, PECL intl >= 3.0.0) IntlDateFormatter::getTimeZone -- datefmt_get_timezone — Get formatterʼs timezone 설명객체 기반 형식 절차식 형식 Returns an IntlTimeZone object representing the timezone that will be used by this object to format dates and times. When formatting IntlCalendar and DateTime objects with this IntlDateFormatter, the timezone used will be the one returned by this method, not the one associated with the objects being formatted. 인수이 함수는 인수가 없습니다. 반환값
The associated IntlTimeZone
object실패 시 예제
Example #1 IntlDateFormatter::getTimeZone() examples
<?php 위 예제의 출력: object(IntlTimeZone)#4 (4) { ["valid"]=> bool(true) ["id"]=> string(13) "Europe/Madrid" ["rawOffset"]=> int(3600000) ["currentOffset"]=> int(7200000) } Spain Time Europe/Lisbon Europe/Lisbon 참고
|