The IntlGregorianCalendar class
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
簡介
類摘要
class IntlGregorianCalendar
extends
IntlCalendar
{
/* 繼承的常量 */
/* 方法 */
public __construct(
int
int
int
int
int
int
)
int
$timeZoneOrYear,int
$localeOrMonth,int
$dayOfMonth,int
$hour,int
$minute,int
$second = ?)
/* 繼承的方法 */
public static IntlCalendar::createInstance(IntlTimeZone|DateTimeZone|string|null
$timezone = null, ?string $locale = null): ?IntlCalendarpublic static IntlCalendar::fromDateTime(DateTime|string
$datetime, ?string $locale = null): ?IntlCalendarpublic static IntlCalendar::getKeywordValuesForLocale(string
$keyword, string $locale, bool $onlyCommon): IntlIterator|falsepublic IntlCalendar::set(
int
int
int
int
int
int
): bool
}int
$year,int
$month,int
$dayOfMonth = NULL,int
$hour = NULL,int
$minute = NULL,int
$second = NULL): bool
目錄
- IntlGregorianCalendar::__construct — Create the Gregorian Calendar class
- 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 the change date