php8.5
Home/ Manual/ intl / intlgregoriancalendar/ IntlGregorianCalendar::__construct

IntlGregorianCalendar::__construct

PHP function Edit on GitHub ✎

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

Create the Gregorian Calendar class

Description

IntlGregorianCalendar::__construct([IntlTimeZone $tz], [string $locale])
IntlGregorianCalendar::__construct(int $timeZoneOrYear, int $localeOrMonth, int $dayOfMonth)
IntlGregorianCalendar::__construct(int $timeZoneOrYear, int $localeOrMonth, int $dayOfMonth, int $hour, int $minute, [int $second])

Func

Parameters

tz
locale
timeZoneOrYear
localeOrMonth
dayOfMonth
hour
minute
second

Changelog

VersionDescription
8.4.0This had been deprecated in favor of the methods IntlGregorianCalendar::createFromDate and IntlGregorianCalendar::createFromDateTime.

Source: reference/intl/intlgregoriancalendar/construct.xml · from the official PHP manual (php/doc-en)