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
tzlocaletimeZoneOrYearlocaleOrMonthdayOfMonthhourminutesecond
Changelog
| Version | Description |
|---|---|
| 8.4.0 | This had been deprecated in favor of the methods IntlGregorianCalendar::createFromDate and IntlGregorianCalendar::createFromDateTime. |