IntlGregorianCalendar::setGregorianChange

Set the Gregorian Calendar change date

Description

Object-oriented style

public bool IntlGregorianCalendar::setGregorianChange(float $timestamp)

Procedural style

bool intlgregcal_set_gregorian_change(IntlGregorianCalendar $calendar, float $timestamp)

Sets the Gregorian Calendar change date. This is the point at which the calendar switches from Julian dates to Gregorian dates, expressed as a Unix timestamp in milliseconds.

Parameters

calendar
An IntlGregorianCalendar instance.
timestamp
The Gregorian Calendar change date, expressed as a Unix timestamp in milliseconds.

Return Values

Returns true on success or false on failure.