(PHP 5 >= 5.5.0, PHP 7, PECL>= 3.0.0a1)
IntlCalendar { /* 常量 */ const integer FIELD_ERA = 0 ; const integer FIELD_YEAR = 1 ; const integer FIELD_MONTH = 2 ; const integer FIELD_WEEK_OF_YEAR = 3 ; const integer FIELD_WEEK_OF_MONTH = 4 ; const integer FIELD_DATE = 5 ; const integer FIELD_DAY_OF_YEAR = 6 ; const integer FIELD_DAY_OF_WEEK = 7 ; const integer FIELD_DAY_OF_WEEK_IN_MONTH = 8 ; const integer FIELD_AM_PM = 9 ; const integer FIELD_HOUR = 10 ; const integer FIELD_HOUR_OF_DAY = 11 ; const integer FIELD_MINUTE = 12 ; const integer FIELD_SECOND = 13 ; const integer FIELD_MILLISECOND = 14 ; const integer FIELD_ZONE_OFFSET = 15 ; const integer FIELD_DST_OFFSET = 16 ; const integer FIELD_YEAR_WOY = 17 ; const integer FIELD_DOW_LOCAL = 18 ; const integer FIELD_EXTENDED_YEAR = 19 ; const integer FIELD_JULIAN_DAY = 20 ; const integer FIELD_MILLISECONDS_IN_DAY = 21 ; const integer FIELD_IS_LEAP_MONTH = 22 ; const integer FIELD_FIELD_COUNT = 23 ; const integer FIELD_DAY_OF_MONTH = 5 ; const integer DOW_SUNDAY = 1 ; const integer DOW_MONDAY = 2 ; const integer DOW_TUESDAY = 3 ; const integer DOW_WEDNESDAY = 4 ; const integer DOW_THURSDAY = 5 ; const integer DOW_FRIDAY = 6 ; const integer DOW_SATURDAY = 7 ; const integer DOW_TYPE_WEEKDAY = 0 ; const integer DOW_TYPE_WEEKEND = 1 ; const integer DOW_TYPE_WEEKEND_OFFSET = 2 ; const integer DOW_TYPE_WEEKEND_CEASE = 3 ; const integer WALLTIME_FIRST = 1 ; const integer WALLTIME_LAST = 0 ; const integer WALLTIME_NEXT_VALID = 2 ; /* 方法 */ public add ( int $field , int $amount ) : bool intlcal_add ( IntlCalendar $cal , int $field , int $amount ) : bool public after ( IntlCalendar $other ) : bool intlcal_after ( IntlCalendar $cal , IntlCalendar $other ) : bool public before ( IntlCalendar $other ) : bool intlcal_before ( IntlCalendar $cal , IntlCalendar $other ) : bool public clear ([ int $field = NULL ] ) : bool intlcal_clear ( IntlCalendar $cal [, int $field = NULL ] ) : bool private __construct ( void ) public static createInstance ([ mixed $timeZone = NULL [, string $locale = "" ]] ) : IntlCalendar intlcal_create_instance ([ mixed $timeZone = NULL [, string $locale = "" ]] ) : IntlCalendar public equals ( IntlCalendar $other ) : bool intlcal_equals ( IntlCalendar $cal , IntlCalendar $other ) : bool public fieldDifference ( float $when , int $field ) : int intlcal_field_difference ( IntlCalendar $cal , float $when , int $field ) : int public static fromDateTime ( mixed $dateTime ) : IntlCalendar intlcal_from_date_time ( mixed $dateTime ) : IntlCalendar public get ( int $field ) : int intlcal_get ( IntlCalendar $cal , int $field ) : int public getActualMaximum ( int $field ) : int intlcal_get_actual_maximum ( IntlCalendar $cal , int $field ) : int public getActualMinimum ( int $field ) : int intlcal_get_actual_minimum ( IntlCalendar $cal , int $field ) : int public static getAvailableLocales ( void ) : array intlcal_get_available_locales ( void ) : array public getDayOfWeekType ( int $dayOfWeek ) : int intlcal_get_day_of_week_type ( IntlCalendar $cal , int $dayOfWeek ) : int public getErrorCode ( void ) : int public getErrorMessage ( void ) : string public getFirstDayOfWeek ( void ) : int intlcal_get_first_day_of_week ( IntlCalendar $cal ) : int public getGreatestMinimum ( int $field ) : int intlcal_get_greatest_minimum ( IntlCalendar $cal , int $field ) : int public static getKeywordValuesForLocale ( string $key , string $locale , bool $commonlyUsed ) : Iterator intlcal_get_keyword_values_for_locale ( string $key , string $locale , bool $commonlyUsed ) : Iterator public getLeastMaximum ( int $field ) : int intlcal_get_least_maximum ( IntlCalendar $cal , int $field ) : int public getLocale ( int $localeType ) : string intlcal_get_locale ( IntlCalendar $cal , int $localeType ) : string public getMaximum ( int $field ) : int intlcal_get_maximum ( IntlCalendar $cal , int $field ) : int public getMinimalDaysInFirstWeek ( void ) : int intlcal_get_minimal_days_in_first_week ( IntlCalendar $cal ) : int public getMinimum ( int $field ) : int intlcal_get_minimum ( IntlCalendar $cal , int $field ) : int public static getNow ( void ) : float intlcal_get_now ( void ) : float public getRepeatedWallTimeOption ( void ) : int intlcal_get_repeated_wall_time_option ( IntlCalendar $cal ) : int public getSkippedWallTimeOption ( void ) : int intlcal_get_skipped_wall_time_option ( IntlCalendar $cal ) : int public getTime ( void ) : float intlcal_get_time ( IntlCalendar $cal ) : float public getTimeZone ( void ) : IntlTimeZone intlcal_get_time_zone ( IntlCalendar $cal ) : IntlTimeZone public getType ( void ) : string intlcal_get_type ( IntlCalendar $cal ) : string public getWeekendTransition ( string $dayOfWeek ) : int intlcal_get_weekend_transition ( IntlCalendar $cal , string $dayOfWeek ) : int public inDaylightTime ( void ) : bool intlcal_in_daylight_time ( IntlCalendar $cal ) : bool public isEquivalentTo ( IntlCalendar $other ) : bool intlcal_is_equivalent_to ( IntlCalendar $cal , IntlCalendar $other ) : bool public isLenient ( void ) : bool intlcal_is_lenient ( IntlCalendar $cal ) : bool public isSet ( int $field ) : bool intlcal_is_set ( IntlCalendar $cal , int $field ) : bool public isWeekend ([ float $date = NULL ] ) : bool intlcal_is_weekend ( IntlCalendar $cal [, float $date = NULL ] ) : bool public roll ( int $field , mixed $amountOrUpOrDown ) : bool intlcal_roll ( IntlCalendar $cal , int $field , mixed $amountOrUpOrDown ) : bool public set ( int $field , int $value ) : bool public set ( int $year , int $month [, int $dayOfMonth = NULL [, int $hour = NULL [, int $minute = NULL [, int $second = NULL ]]]] ) : bool intlcal_set ( IntlCalendar $cal , int $field , int $value ) : bool intlcal_set ( IntlCalendar $cal , int $year , int $month [, int $dayOfMonth = NULL [, int $hour = NULL [, int $minute = NULL [, int $second = NULL ]]]] ) : bool public setFirstDayOfWeek ( int $dayOfWeek ) : bool intlcal_set_first_day_of_week ( IntlCalendar $cal , int $dayOfWeek ) : bool public setLenient ( bool $isLenient ) : bool intlcal_set_lenient ( IntlCalendar $cal , bool $isLenient ) : bool public setMinimalDaysInFirstWeek ( int $minimalDays ) : bool intlcal_get_minimal_days_in_first_week ( IntlCalendar $cal , int $minimalDays ) : bool public setRepeatedWallTimeOption ( int $wallTimeOption ) : bool intlcal_set_repeated_wall_time_option ( IntlCalendar $cal , int $wallTimeOption ) : bool public setSkippedWallTimeOption ( int $wallTimeOption ) : bool intlcal_set_skipped_wall_time_option ( IntlCalendar $cal , int $wallTimeOption ) : bool public setTime ( float $date ) : bool intlcal_set_time ( IntlCalendar $cal , float $date ) : bool public setTimeZone ( mixed $timeZone ) : bool intlcal_set_time_zone ( IntlCalendar $cal , mixed $timeZone ) : bool public toDateTime ( void ) : DateTime intlcal_to_date_time ( IntlCalendar $cal ) : DateTime }