IntlGregorianCalendar
class IntlGregorianCalendar extends IntlCalendar (View source)
Constants
FIELD_ERA |
|
FIELD_YEAR |
|
FIELD_MONTH |
|
FIELD_WEEK_OF_YEAR |
|
FIELD_WEEK_OF_MONTH |
|
FIELD_DATE |
|
FIELD_DAY_OF_YEAR |
|
FIELD_DAY_OF_WEEK |
|
FIELD_DAY_OF_WEEK_IN_MONTH |
|
FIELD_AM_PM |
|
FIELD_HOUR |
|
FIELD_HOUR_OF_DAY |
|
FIELD_MINUTE |
|
FIELD_SECOND |
|
FIELD_MILLISECOND |
|
FIELD_ZONE_OFFSET |
|
FIELD_DST_OFFSET |
|
FIELD_YEAR_WOY |
|
FIELD_DOW_LOCAL |
|
FIELD_EXTENDED_YEAR |
|
FIELD_JULIAN_DAY |
|
FIELD_MILLISECONDS_IN_DAY |
|
FIELD_IS_LEAP_MONTH |
|
FIELD_FIELD_COUNT |
|
FIELD_DAY_OF_MONTH |
|
DOW_SUNDAY |
|
DOW_MONDAY |
|
DOW_TUESDAY |
|
DOW_WEDNESDAY |
|
DOW_THURSDAY |
|
DOW_FRIDAY |
|
DOW_SATURDAY |
|
DOW_TYPE_WEEKDAY |
|
DOW_TYPE_WEEKEND |
|
DOW_TYPE_WEEKEND_OFFSET |
|
DOW_TYPE_WEEKEND_CEASE |
|
WALLTIME_FIRST |
|
WALLTIME_LAST |
|
WALLTIME_NEXT_VALID |
|
Methods
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Add a (signed) amount of time to a field
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether this object's time is after that of the passed object
https://secure.php.net/manual/en/intlcalendar.after.php
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether this object's time is before that of the passed object
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Clear a field or all fields
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Compare time of two IntlCalendar objects for equality
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Calculate difference between given time and this object's time
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)
Create an IntlCalendar from a DateTime object or string
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the value for a field
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
The maximum value for a field, considering the object's current time
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
The minimum value for a field, considering the object's current time
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get array of locales for which there is data
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Tell whether a day is a weekday, weekend or a day that has a transition between the two
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get last error code on the object
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get last error message on the object
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the first day of the week for the calendar's locale
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the largest local minimum value for a field
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get set of locale keyword values
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the smallest local maximum for a field
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the locale associated with the object
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the global maximum value for a field
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get minimal number of days the first week in a year or month can have
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the global minimum value for a field
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get number representing the current time
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get behavior for handling repeating wall time
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get behavior for handling skipped wall time
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get time currently represented by the object
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the object's timezone
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get time of the day at which weekend begins or ends
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether the object's time is in Daylight Savings Time
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether another calendar is equal but for a different time
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether date/time interpretation is in lenient mode
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether a certain date/time is in the weekend
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Add value to field without carrying into more significant fields
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether a field is set
(PHP 5 >= 5.5.0 PECL intl >= 3.0.0a1)
Set a time field or several common fields at once
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set the day on which the week is deemed to start
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set whether date/time interpretation is to be lenient
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set behavior for handling repeating wall times at negative timezone offset transitions
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set behavior for handling skipped wall times at positive timezone offset transitions
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set the calendar time in milliseconds since the epoch
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set the timezone used by this calendar
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)
Convert an IntlCalendar into a DateTime object
No description
No description
No description
No description
No description
No description
No description
Details
bool
add(int $field, int $value)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Add a (signed) amount of time to a field
bool
after(IntlCalendar $other)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether this object's time is after that of the passed object
https://secure.php.net/manual/en/intlcalendar.after.php
bool
before(IntlCalendar $other)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether this object's time is before that of the passed object
bool
clear(int $field = null)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Clear a field or all fields
static IntlCalendar|null
createInstance(mixed $timeZone = null, string|null $locale = null)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
bool
equals(IntlCalendar $other)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Compare time of two IntlCalendar objects for equality
int|false
fieldDifference(float $timestamp, int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Calculate difference between given time and this object's time
static IntlCalendar|null
fromDateTime(mixed $datetime, $locale)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)
Create an IntlCalendar from a DateTime object or string
int|false
get(int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the value for a field
int|false
getActualMaximum(int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
The maximum value for a field, considering the object's current time
int|false
getActualMinimum(int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
The minimum value for a field, considering the object's current time
static array
getAvailableLocales()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get array of locales for which there is data
int|false
getDayOfWeekType(int $dayOfWeek)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Tell whether a day is a weekday, weekend or a day that has a transition between the two
int|false
getErrorCode()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get last error code on the object
string|false
getErrorMessage()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get last error message on the object
int|false
getFirstDayOfWeek()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the first day of the week for the calendar's locale
int|false
getGreatestMinimum(int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the largest local minimum value for a field
static IntlIterator|false
getKeywordValuesForLocale(string $keyword, string $locale, bool $onlyCommon)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get set of locale keyword values
int|false
getLeastMaximum(int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the smallest local maximum for a field
string|false
getLocale(int $type)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the locale associated with the object
int|false
getMaximum(int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the global maximum value for a field
int|false
getMinimalDaysInFirstWeek()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get minimal number of days the first week in a year or month can have
int|false
getMinimum(int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the global minimum value for a field
static float
getNow()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get number representing the current time
int
getRepeatedWallTimeOption()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get behavior for handling repeating wall time
int
getSkippedWallTimeOption()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get behavior for handling skipped wall time
float|false
getTime()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get time currently represented by the object
IntlTimeZone|false
getTimeZone()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the object's timezone
string
getType()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get the calendar type
int|false
getWeekendTransition(string $dayOfWeek)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Get time of the day at which weekend begins or ends
bool
inDaylightTime()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether the object's time is in Daylight Savings Time
bool
isEquivalentTo(IntlCalendar $other)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether another calendar is equal but for a different time
bool
isLenient()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether date/time interpretation is in lenient mode
bool
isWeekend(float|null $timestamp = null)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether a certain date/time is in the weekend
bool
roll(int $field, mixed $value)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Add value to field without carrying into more significant fields
bool
PS_UNRESERVE_PREFIX_isSet(int $field)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Whether a field is set
bool
set(int $field, int $value)
(PHP 5 >= 5.5.0 PECL intl >= 3.0.0a1)
Set a time field or several common fields at once
bool
setFirstDayOfWeek(int $dayOfWeek)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set the day on which the week is deemed to start
bool
setLenient(bool $lenient)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set whether date/time interpretation is to be lenient
bool
setRepeatedWallTimeOption(int $option)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set behavior for handling repeating wall times at negative timezone offset transitions
bool
setSkippedWallTimeOption(int $option)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set behavior for handling skipped wall times at positive timezone offset transitions
bool
setTime(float $timestamp)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set the calendar time in milliseconds since the epoch
bool
setTimeZone(mixed $timezone)
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
Set the timezone used by this calendar
DateTime|false
toDateTime()
(PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)
Convert an IntlCalendar into a DateTime object
bool
setMinimalDaysInFirstWeek(int $days)
No description
void
setDate(int $year, int $month, int $dayOfMonth)
No description
void
setDateTime(int $year, int $month, int $dayOfMonth, int $hour, int $minute, int|null $second = null)
No description
__construct(int $timezoneOrYear, int $localeOrMonth, int $day, int $hour, int $minute, int $second)
No description
bool
setGregorianChange(float $timestamp)
No description
float
getGregorianChange()
No description
bool
isLeapYear(int $year)
No description
static IntlGregorianCalendar
createFromDate(int $year, int $month, int $dayOfMonth)
No description
static IntlGregorianCalendar
createFromDateTime(int $year, int $month, int $dayOfMonth, int $hour, int $minute, int|null $second = null)
No description