Php/docs/class.datetimezone

提供:Dev Guides
< Php
移動先:案内検索

(PHP 5 >= 5.2.0, PHP 7)

はじめに

タイムゾーンをあらわします。


クラス概要


DateTimeZone {

/* 定数 */

const int AFRICA = 1

const int AMERICA = 2

const int ANTARCTICA = 4

const int ARCTIC = 8

const int ASIA = 16

const int ATLANTIC = 32

const int AUSTRALIA = 64

const int EUROPE = 128

const int INDIAN = 256

const int PACIFIC = 512

const int UTC = 1024

const int ALL = 2047

const int ALL_WITH_BC = 4095

const int PER_COUNTRY = 4096

/* メソッド */

public __construct ( string $timezone )

public getLocation ( ) : array|false

public getName ( ) : string

public getOffset ( DateTimeInterface $datetime ) : int|false

public getTransitions ([ int $timestampBegin = PHP_INT_MIN [, int $timestampEnd = PHP_INT_MAX ]] ) : array|false

public static listAbbreviations ( ) : array|false

public static listIdentifiers ([ int $timezoneGroup = DateTimeZone::ALL [, string $countryCode = null ]] ) : array|false

}

定義済み定数

DateTimeZone::AFRICA
アフリカのタイムゾーン。
DateTimeZone::AMERICA
アメリカのタイムゾーン。
DateTimeZone::ANTARCTICA
南極のタイムゾーン。
DateTimeZone::ARCTIC
北極のタイムゾーン。
DateTimeZone::ASIA
アジアのタイムゾーン。
DateTimeZone::ATLANTIC
大西洋のタイムゾーン。
DateTimeZone::AUSTRALIA
オーストラリアのタイムゾーン。
DateTimeZone::EUROPE
ヨーロッパのタイムゾーン。
DateTimeZone::INDIAN
インドのタイムゾーン。
DateTimeZone::PACIFIC
太平洋のタイムゾーン。
DateTimeZone::UTC
UTC タイムゾーン。
DateTimeZone::ALL
すべてのタイムゾーン。
DateTimeZone::ALL_WITH_BC
過去との互換性を保つものを含むすべてのタイムゾーン。
DateTimeZone::PER_COUNTRY
国ごとのタイムゾーン。


目次