intl
PHP Manual

The IntlGregorianCalendar class

(PHP 5 >= 5.5.0, PHP 7)

Introduction

Class synopsis

IntlGregorianCalendar extends IntlCalendar {
/* Inherited constants */
const integer IntlCalendar::FIELD_ERA = 0 ;
const integer IntlCalendar::FIELD_YEAR = 1 ;
const integer IntlCalendar::FIELD_MONTH = 2 ;
const integer IntlCalendar::FIELD_DATE = 5 ;
const integer IntlCalendar::FIELD_DAY_OF_YEAR = 6 ;
const integer IntlCalendar::FIELD_DAY_OF_WEEK = 7 ;
const integer IntlCalendar::FIELD_AM_PM = 9 ;
const integer IntlCalendar::FIELD_HOUR = 10 ;
const integer IntlCalendar::FIELD_HOUR_OF_DAY = 11 ;
const integer IntlCalendar::FIELD_MINUTE = 12 ;
const integer IntlCalendar::FIELD_SECOND = 13 ;
const integer IntlCalendar::FIELD_MILLISECOND = 14 ;
const integer IntlCalendar::FIELD_ZONE_OFFSET = 15 ;
const integer IntlCalendar::FIELD_DST_OFFSET = 16 ;
const integer IntlCalendar::FIELD_YEAR_WOY = 17 ;
const integer IntlCalendar::FIELD_DOW_LOCAL = 18 ;
const integer IntlCalendar::FIELD_EXTENDED_YEAR = 19 ;
const integer IntlCalendar::FIELD_JULIAN_DAY = 20 ;
const integer IntlCalendar::FIELD_IS_LEAP_MONTH = 22 ;
const integer IntlCalendar::DOW_SUNDAY = 1 ;
const integer IntlCalendar::DOW_MONDAY = 2 ;
const integer IntlCalendar::DOW_TUESDAY = 3 ;
const integer IntlCalendar::DOW_WEDNESDAY = 4 ;
const integer IntlCalendar::DOW_THURSDAY = 5 ;
const integer IntlCalendar::DOW_FRIDAY = 6 ;
const integer IntlCalendar::DOW_SATURDAY = 7 ;
const integer IntlCalendar::DOW_TYPE_WEEKDAY = 0 ;
const integer IntlCalendar::DOW_TYPE_WEEKEND = 1 ;
const integer IntlCalendar::WALLTIME_FIRST = 1 ;
const integer IntlCalendar::WALLTIME_LAST = 0 ;
/* Methods */
public __construct ([ IntlTimeZone $tz [, string $locale ]] )
public float getGregorianChange ( void )
public bool isLeapYear ( int $year )
public bool setGregorianChange ( float $date )
/* Inherited methods */
public bool IntlCalendar::add ( int $field , int $amount )
bool intlcal_add ( IntlCalendar $cal , int $field , int $amount )
public bool IntlCalendar::after ( IntlCalendar $other )
bool intlcal_after ( IntlCalendar $cal , IntlCalendar $other )
public bool IntlCalendar::before ( IntlCalendar $other )
bool intlcal_before ( IntlCalendar $cal , IntlCalendar $other )
public bool IntlCalendar::clear ([ int $field = NULL ] )
bool intlcal_clear ( IntlCalendar $cal [, int $field = NULL ] )
private IntlCalendar::__construct ( void )
public static IntlCalendar IntlCalendar::createInstance ([ mixed $timeZone = NULL [, string $locale = "" ]] )
IntlCalendar intlcal_create_instance ([ mixed $timeZone = NULL [, string $locale = "" ]] )
public bool IntlCalendar::equals ( IntlCalendar $other )
bool intlcal_equals ( IntlCalendar $cal , IntlCalendar $other )
public int IntlCalendar::fieldDifference ( float $when , int $field )
int intlcal_field_difference ( IntlCalendar $cal , float $when , int $field )
public static IntlCalendar IntlCalendar::fromDateTime ( mixed $dateTime )
IntlCalendar intlcal_from_date_time ( mixed $dateTime )
public int IntlCalendar::get ( int $field )
int intlcal_get ( IntlCalendar $cal , int $field )
public int IntlCalendar::getActualMaximum ( int $field )
int intlcal_get_actual_maximum ( IntlCalendar $cal , int $field )
public int IntlCalendar::getActualMinimum ( int $field )
int intlcal_get_actual_minimum ( IntlCalendar $cal , int $field )
public static array IntlCalendar::getAvailableLocales ( void )
array intlcal_get_available_locales ( void )
public int IntlCalendar::getDayOfWeekType ( int $dayOfWeek )
int intlcal_get_day_of_week_type ( IntlCalendar $cal , int $dayOfWeek )
public int IntlCalendar::getErrorCode ( void )
public string IntlCalendar::getErrorMessage ( void )
public int IntlCalendar::getFirstDayOfWeek ( void )
int intlcal_get_first_day_of_week ( IntlCalendar $cal )
public int IntlCalendar::getGreatestMinimum ( int $field )
int intlcal_get_greatest_minimum ( IntlCalendar $cal , int $field )
public static Iterator IntlCalendar::getKeywordValuesForLocale ( string $key , string $locale , bool $commonlyUsed )
Iterator intlcal_get_keyword_values_for_locale ( string $key , string $locale , bool $commonlyUsed )
public int IntlCalendar::getLeastMaximum ( int $field )
int intlcal_get_least_maximum ( IntlCalendar $cal , int $field )
public string IntlCalendar::getLocale ( int $localeType )
string intlcal_get_locale ( IntlCalendar $cal , int $localeType )
public int IntlCalendar::getMaximum ( int $field )
int intlcal_get_maximum ( IntlCalendar $cal , int $field )
int intlcal_get_minimal_days_in_first_week ( IntlCalendar $cal )
public int IntlCalendar::getMinimum ( int $field )
int intlcal_get_minimum ( IntlCalendar $cal , int $field )
public static float IntlCalendar::getNow ( void )
float intlcal_get_now ( void )
int intlcal_get_repeated_wall_time_option ( IntlCalendar $cal )
int intlcal_get_skipped_wall_time_option ( IntlCalendar $cal )
public float IntlCalendar::getTime ( void )
float intlcal_get_time ( IntlCalendar $cal )
public IntlTimeZone IntlCalendar::getTimeZone ( void )
IntlTimeZone intlcal_get_time_zone ( IntlCalendar $cal )
public string IntlCalendar::getType ( void )
string intlcal_get_type ( IntlCalendar $cal )
public int IntlCalendar::getWeekendTransition ( string $dayOfWeek )
int intlcal_get_weekend_transition ( IntlCalendar $cal , string $dayOfWeek )
public bool IntlCalendar::inDaylightTime ( void )
bool intlcal_in_daylight_time ( IntlCalendar $cal )
bool intlcal_is_equivalent_to ( IntlCalendar $cal , IntlCalendar $other )
public bool IntlCalendar::isLenient ( void )
bool intlcal_is_lenient ( IntlCalendar $cal )
public bool IntlCalendar::isSet ( int $field )
bool intlcal_is_set ( IntlCalendar $cal , int $field )
public bool IntlCalendar::isWeekend ([ float $date = NULL ] )
bool intlcal_is_weekend ( IntlCalendar $cal [, float $date = NULL ] )
public bool IntlCalendar::roll ( int $field , mixed $amountOrUpOrDown )
bool intlcal_roll ( IntlCalendar $cal , int $field , mixed $amountOrUpOrDown )
public bool IntlCalendar::set ( int $field , int $value )
public bool IntlCalendar::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 ]]]] )
public bool IntlCalendar::setFirstDayOfWeek ( int $dayOfWeek )
bool intlcal_set_first_day_of_week ( IntlCalendar $cal , int $dayOfWeek )
public bool IntlCalendar::setLenient ( bool $isLenient )
bool intlcal_set_lenient ( IntlCalendar $cal , bool $isLenient )
public bool IntlCalendar::setMinimalDaysInFirstWeek ( int $minimalDays )
bool intlcal_get_minimal_days_in_first_week ( IntlCalendar $cal , int $minimalDays )
public bool IntlCalendar::setRepeatedWallTimeOption ( int $wallTimeOption )
bool intlcal_set_repeated_wall_time_option ( IntlCalendar $cal , int $wallTimeOption )
public bool IntlCalendar::setSkippedWallTimeOption ( int $wallTimeOption )
bool intlcal_set_skipped_wall_time_option ( IntlCalendar $cal , int $wallTimeOption )
public bool IntlCalendar::setTime ( float $date )
bool intlcal_set_time ( IntlCalendar $cal , float $date )
public bool IntlCalendar::setTimeZone ( mixed $timeZone )
bool intlcal_set_time_zone ( IntlCalendar $cal , mixed $timeZone )
public DateTime IntlCalendar::toDateTime ( void )
DateTime intlcal_to_date_time ( IntlCalendar $cal )
}

Table of Contents


intl
PHP Manual