Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<IntlGregorianCalendar::isLeapYearIntlTimeZone>
^IntlGregorianCalendarLast updated: Mon, 26 Oct 2026

IntlGregorianCalendar::setGregorianChange

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

IntlGregorianCalendar::setGregorianChange — Set the Gregorian Calendar change date

Description

Object-oriented style

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

Procedural style

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

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.


<IntlGregorianCalendar::isLeapYearIntlTimeZone>
^IntlGregorianCalendarLast updated: Mon, 26 Oct 2026