IntlGregorianCalendar::setGregorianChange

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

IntlGregorianCalendar::setGregorianChange — グレゴリオ暦への切換え日を設定する

説明

オブジェクト指向型

public function IntlGregorianCalendar::setGregorianChange(float $timestamp): bool

手続き型

function intlgregcal_set_gregorian_change(IntlGregorianCalendar $calendar, float $timestamp): bool

グレゴリオ暦への切換え日を設定します。これは、カレンダーがユリウス暦の日付から グレゴリオ暦の日付に切り替わる時点を、ミリ秒単位の Unix タイムスタンプで表したものです。

パラメータ

calendar

IntlGregorianCalendar クラスのインスタンス。

timestamp

グレゴリオ暦への切換え日。ミリ秒単位の Unix タイムスタンプで指定します。

戻り値

成功した場合に true を、失敗した場合に false を返します。

+add a note

User Contributed Notes

There are no user contributed notes for this page.