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
 
<IntlGregorianCalendarIntlGregorianCalendar::createFromDate>
^IntlGregorianCalendarLast updated: Mon, 26 Oct 2026

IntlGregorianCalendar::__construct

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

IntlGregorianCalendar::__construct — Create the Gregorian Calendar class

Description

public function IntlGregorianCalendar::__construct(IntlTimeZone $tz = ?, string $locale = ?)
public function IntlGregorianCalendar::__construct(int $timeZoneOrYear, int $localeOrMonth, int $dayOfMonth)
public function IntlGregorianCalendar::__construct(
    int $timeZoneOrYear,
    int $localeOrMonth,
    int $dayOfMonth,
    int $hour,
    int $minute,
    int $second = ?
)

Warning

This function is currently not documented; only its argument list is available.

Parameters

tz

locale

timeZoneOrYear

localeOrMonth

dayOfMonth

hour

minute

second

Changelog

Version Description
8.4.0 This had been deprecated in favor of the methods IntlGregorianCalendar::createFromDate() and IntlGregorianCalendar::createFromDateTime().

<IntlGregorianCalendarIntlGregorianCalendar::createFromDate>
^IntlGregorianCalendarLast updated: Mon, 26 Oct 2026