« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 53 for DateTimeZone (0.001 sec.)
DateTimeZone クラス | PHP 8.3 12800
DateTimeZone クラス (PHP 5 >= 5.2.0, PHP 7, PHP 8) はじめに タイムゾーンをあらわします。 クラス概要 class DateTimeZone { /* 定数 */ public const int AFRICA ; public const int AMERICA ; public const int ANTARCTICA ; public const int ARCTIC ; ... y | false public static function listAbbreviations (): array public static function listIdentifiers ( int $timezoneGroup = DateTimeZone::ALL , ? string $countryCode = null ): array } 定義済み定数 DateTimeZone::AFRICA int アフリカのタイムゾーン。 DateTimeZone ... ::AMERICA int アメリカのタイムゾーン。 DateTimeZone::ANTARCTICA int 南極のタイムゾーン。 DateTimeZone::ARCTIC int 北極のタイムゾーン。 DateTimeZone::ASIA int アジアのタイムゾ ... ーン。 DateTimeZone::ATLANTIC int 大西洋のタイムゾーン。 DateTimeZone::AUSTRALIA int オーストラリアのタイムゾーン。 DateTimeZone::EUROPE int ヨ ...
https://man.mtool.work/php/8.3/class.datetimezone.html
DateTimeZone::__construct — 新しい DateTimeZone オブジェクトを作成する | PHP 8.... 11743
DateTimeZone::__construct timezone_open (PHP 5 >= 5.2.0, PHP 7, PHP 8) DateTimeZone::__construct -- timezone_open — 新しい DateTimeZone オブジェクトを作成する 説明 オブジェクト指向型 public function DateTimeZone::__construct ( string $timez ... one ) 手続き型 function timezone_open ( string $timezone ): DateTimeZone | false 新しい DateTimeZone オブジェクトを作成します。 DateTimeZone オブジェクトは、 3つの異なるタイムゾーンルールへのアク ... ひとつはタイムゾーンの省略形 (type 2 ), そして IANA タイムゾーンデータベースで公開されている タイムゾーン名 (type 3 ) です。 DateTimeZone オブジェクトは、 DateTime や DateTimeImmutable に設定できます。 こうすることで、 ローカルのタイムゾーンとしてカプセル化され ... サポートする タイムゾーン名 のいずれかや、 オフセット値 (+0200)、 またはタイムゾーンの省略名(BST)。 戻り値 成功した場合に DateTimeZone を返します。 手続き型 の場合は、失敗したときに false を返します。 エラー / 例外 指定されたタイムゾーンが有効なタイムゾーン ...
https://man.mtool.work/php/8.3/datetimezone.construct.html
DateTimeZone::listIdentifiers — すべてのタイムゾーン識別子を含む配列を返す | PH... 11371
DateTimeZone::listIdentifiers timezone_identifiers_list (PHP 5 >= 5.2.0, PHP 7, PHP 8) DateTimeZone::listIdentifiers -- timezone_identifiers_list — すべてのタイムゾーン識別子を含む配列を返す 説明 オブジェクト指向型 public static function DateTimeZone ... teTimeZone::listIdentifiers ( int $timezoneGroup = DateTimeZone::ALL , ? string $countryCode = null ): array 手続き型 function timezone_identifiers_list ( int $timezoneGroup = DateTimeZo ... dDateTime を使うと、 JavaScript でクライアント(ブラウザ) のタイムゾーンを検知することができます。 パラメータ timezoneGroup DateTimeZone のクラス定数のいずれか (または定数の組み合わせ)。 countryCode 2 文字の (大文字の) ISO 3166-1 互換の国コード。 注意 : このオ ... プションを使用するのは、 timezoneGroup に DateTimeZone::PER_COUNTRY を設定した場合のみです。 戻り値 成功した場合に、タイムゾーンの識別子を含んだ配列を返します。 期限切れになって ...
https://man.mtool.work/php/8.3/datetimezone.listidentifiers.html
DateTimeZone::getOffset — GMT からのタイムゾーンのオフセットを返す | PHP 8.3 9659
DateTimeZone::getOffset timezone_offset_get (PHP 5 >= 5.2.0, PHP 7, PHP 8) DateTimeZone::getOffset -- timezone_offset_get — GMT からのタイムゾーンのオフセットを返す 説明 オブジェクト指向型 public function DateTimeZone::getOffset ( DateTimeI ... nterface $datetime ): int 手続き型 function timezone_offset_get ( DateTimeZone $object , DateTimeInterface $datetime ): int この関数は、 datetime パラメータで指定した 日付/時刻 についての GMT へのオフセ ... ットを返します。GMT オフセットの計算の際には、 使用する DateTimeZone オブジェクトに含まれるタイムゾーン情報を使用します。 パラメータ object 手続き型のみ: timezone_open() が返す DateTimeZone オ ... time オフセットを計算する 日付/時刻 を含む DateTime。 戻り値 成功した場合にタイムゾーンのオフセット秒数を返します。 例 例1 DateTimeZone::getOffset() の例 <?php // ふたつのタイムゾーンオブジェクトを作成します。ひとつは台北 (台湾)、 // そしてもうひとつは東京 ( ...
https://man.mtool.work/php/8.3/datetimezone.getoffset.html
日付・時刻 | PHP 8.3 9421
日付・時刻 はじめに DateTimeImmutable と、 それに関連するクラスを使うと、日付/時刻 に関する情報を表現できます。 このオブジェクトは、日付/時刻 の文字列表現か、 現在のシステム時刻から作成できます。 この情報を変更したり、 フォーマット化するため ... teTime をシリアライズする DateTime::__unserialize — Datetime をアンシリアライズする DateTime::__wakeup — __wakeup ハンドラ DateTimeZone — DateTimeZone クラス DateTimeZone::__construct — 新しい DateTimeZone オブジェクトを作成する DateTimeZone::getLocation — タ ... イムゾーンの位置情報を返す DateTimeZone::getName — タイムゾーンの名前を返す DateTimeZone::getOffset — GMT からのタイムゾーンのオフセットを返す DateTimeZone::getTr ... ansitions — タイムゾーンの変遷を返す DateTimeZone::listAbbreviations — 夏時間、オフセットおよびタイムゾーン名を含む連想配列を返す DateTimeZone::listIdentifiers — すべてのタ ...
https://man.mtool.work/php/8.3/book.datetime.html
DateTimeZone::getLocation — タイムゾーンの位置情報を返す | PHP 8.3 9377
DateTimeZone::getLocation timezone_location_get (PHP 5 >= 5.3.0, PHP 7, PHP 8) DateTimeZone::getLocation -- timezone_location_get — タイムゾーンの位置情報を返す 説明 オブジェクト指向型 public function DateTimeZone::getLocation (): array | f ... alse 手続き型 function timezone_location_get ( DateTimeZone $object ): array | false タイムゾーンの位置情報 (国コード、緯度/経度、コメント) を返します。 パラメータ object 手続き型のみ ... : timezone_open() が返す DateTimeZone オブジェクト 戻り値 タイムゾーンについての位置情報を含む配列を返します。失敗した場合に false を返します 例 例1 DateTimeZon ... e::getLocation() の例 <?php $tz = new DateTimeZone ( "Asia/Jakarta" ); print_r ( $tz -> getLocation ()); print_r ( timezone_location_get ( $tz )); 上の例の出力は以下となりま ...
https://man.mtool.work/php/8.3/datetimezone.getlocation.html
DateTimeZone::getName — タイムゾーンの名前を返す | PHP 8.3 9049
DateTimeZone::getName timezone_name_get (PHP 5 >= 5.2.0, PHP 7, PHP 8) DateTimeZone::getName -- timezone_name_get — タイムゾーンの名前を返す 説明 オブジェクト指向型 public function DateTimeZone::getName (): string 手続き型 function timezone ... _name_get ( DateTimeZone $object ): string タイムゾーンの名前を返します。 パラメータ object 名前を取得したい DateTimeZone 。 戻り値 タイムゾーンのタ ... イムゾーンデータベースに登録されているタイムゾーン識別子(type 3 の場合) です。これらは、同じオフセット かつ/または ルールで DateTimeZone オブジェクトを作るための文字列です。 たとえば 02:00 、 CEST 、 タイムゾーン一覧 のタイムゾーン名のひとつを返します。 他のマ ...
https://man.mtool.work/php/8.3/datetimezone.getname.html
DateTimeInterface::getTimezone — 指定した DateTime に関連するタイムゾーンを返す... 8826
DateTimeInterface::getTimezone DateTimeImmutable::getTimezone DateTime::getTimezone date_timezone_get (PHP 5 >= 5.2.0, PHP 7, PHP 8) DateTimeInterface::getTimezone -- DateTimeImmutable::getTimezone -- DateTime::getTimezone -- date_timezone_ ... 指定した DateTime に関連するタイムゾーンを返す 説明 オブジェクト指向型 public function DateTimeInterface::getTimezone (): DateTimeZone | false public function DateTimeImmutable::getTimezone (): DateTimeZone | false public function DateTime::getTimezone (): ... DateTimeZone | false 手続き型 function date_timezone_get ( DateTimeInterface $object ): DateTimeZone | false 指定した DateTime に関連するタイムゾーンを返します。 パラメータ object 手続き型のみ: date_create() が返す DateTime ... オブジェクト 戻り値 成功した場合に DateTimeZone オブジェクト、失敗した場合に false を返します。 例 例1 DateTime::getTimezone() の例 オブジェクト指向型 <?php $date = new D ...
https://man.mtool.work/php/8.3/datetime.gettimezone.html
DateTimeImmutable::setTimezone — タイムゾーンを設定する | PHP 8.3 8737
DateTimeImmutable::setTimezone (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::setTimezone — タイムゾーンを設定する 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::setTimezone() does not modify the object itself" )] public function ... DateTimeImmutable::setTimezone ( DateTimeZone $timezone ): DateTimeImmutable 新しいタイムゾーンを設定した、 新しい DateTimeImmutable オブジェクトを返します。 パラメータ ... timezone 指定したいタイムゾーンを表す DateTimeZone オブジェクト。 戻り値 メソッドをチェインできるようにするため、 変更された新しい DateTimeImmutable オブジェクトを返します。 ... 。 例 例1 DateTimeImmutable::setTimeZone() の例 オブジェクト指向型 <?php $date = new DateTimeImmutable ( '2000-01-01' , new DateTimeZone ( 'Pacific/Nauru' )); echo $date -> format ( 'Y-m-d H:i:sP' ) . "\n" ; $newDate = $date -> setTimezone (new DateTimeZone ( ...
https://man.mtool.work/php/8.3/datetimeimmutable.settimezone.html
DateTime::setTimezone — DateTime オブジェクトのタイムゾーンを設定する | PHP 8.3 8632
DateTime::setTimezone date_timezone_set (PHP 5 >= 5.2.0, PHP 7, PHP 8) DateTime::setTimezone -- date_timezone_set — DateTime オブジェクトのタイムゾーンを設定する 説明 オブジェクト指向型 public function DateTime::setTimezone ( DateTimeZone $ ... timezone ): DateTime 手続き型 function date_timezone_set ( DateTime $object , DateTimeZone $timezone ): DateTime 新しいタイムゾーンを DateTime オブジェクトに設定します。 DateTimeImmutable::setTimezone() に似ていま ... e_create() が返す DateTime オブジェクト。 この関数は、このオブジェクトを変更します。 timezone 指定したいタイムゾーンを表す DateTimeZone オブジェクト。 戻り値 メソッドをチェインできるようにするため、 DateTime オブジェクトを返します。 このメソッドをコールした際 ... 時刻は変わりません。 例 例1 DateTime::setTimeZone() の例 オブジェクト指向型 <?php $date = new DateTime ( '2000-01-01' , new DateTimeZone ( 'Pacific/Nauru' )); echo $date -> format ( 'Y-m-d H:i:sP' ) . "\n" ; $date -> setTimezone (new DateTimeZone ( 'Pacific/C ...
https://man.mtool.work/php/8.3/datetime.settimezone.html
PREV 1 2 3 4 5 6 NEXT