The IntlGregorianCalendar class
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Introduction
Class synopsis
/* Inherited constants */
/* Methods */
public function __construct(
int
int
int
int
int
int
)
int
$timeZoneOrYear,int
$localeOrMonth,int
$dayOfMonth,int
$hour,int
$minute,int
$second = ?)
public static function createFromDateTime(
int
int
int
int
int
?int
): static
int
$year,int
$month,int
$dayOfMonth,int
$hour,int
$minute,?int
$second = null): static
/* Inherited methods */
public static function IntlCalendar::createInstance(IntlTimeZone|DateTimeZone|string|null
$timezone = null, ?string $locale = null): ?IntlCalendarpublic static function IntlCalendar::fromDateTime(DateTime|string
$datetime, ?string $locale = null): ?IntlCalendarpublic static function IntlCalendar::getKeywordValuesForLocale(string
$keyword, string $locale, bool $onlyCommon): IntlIterator|falsepublic function IntlCalendar::set(
int
int
int
int
int
int
): true
}int
$year,int
$month,int
$dayOfMonth = NULL,int
$hour = NULL,int
$minute = NULL,int
$second = NULL): true
Table of Contents
- IntlGregorianCalendar::__construct — Create the Gregorian Calendar class
- IntlGregorianCalendar::createFromDate — Create a new IntlGregorianCalendar instance from date
- IntlGregorianCalendar::createFromDateTime — Create a new IntlGregorianCalendar instance from date and time
- IntlGregorianCalendar::getGregorianChange — Get the Gregorian Calendar change date
- IntlGregorianCalendar::isLeapYear — Determine if the given year is a leap year
- IntlGregorianCalendar::setGregorianChange — Set the Gregorian Calendar change date
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
