CakeFest 2024: The Official CakePHP Conference

DateTimeZone::getName

timezone_name_get

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

DateTimeZone::getName -- timezone_name_getタイムゾーンの名前を返す

説明

オブジェクト指向型

public DateTimeZone::getName(): string

手続き型

タイムゾーンの名前を返します。

パラメータ

object

名前を取得したい DateTimeZone

戻り値

タイムゾーンのタイプによって、異なる値を返します。 UTC オフセット(type 1 の場合)、 タイムゾーンの省略形(type 2 の場合)、 および IANA タイムゾーンデータベースに登録されているタイムゾーン識別子(type 3 の場合) です。これらは、同じオフセット かつ/または ルールで DateTimeZone オブジェクトを作るための文字列です。 たとえば 02:00CESTタイムゾーン一覧 のタイムゾーン名のひとつを返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top