The IntlCalendar class
(PHP 5.5.0, PECL >= 3.0.0a1)
Introduction
Class synopsis
IntlCalendar
{
/* Constants */
/* Methods */
public static Iterator getKeywordValuesForLocale
( string
$key
, string $locale
, boolean $commonlyUsed
)
public bool set
( int
}$year
, int $month
[, int $dayOfMonth = NULL
[, int $hour = NULL
[, int $minute = NULL
[, int $second = NULL
]]]] )Predefined Constants
-
IntlCalendar::FIELD_ERA -
IntlCalendar::FIELD_YEAR -
IntlCalendar::FIELD_MONTH -
IntlCalendar::FIELD_WEEK_OF_YEAR -
IntlCalendar::FIELD_WEEK_OF_MONTH -
IntlCalendar::FIELD_DATE -
IntlCalendar::FIELD_DAY_OF_YEAR -
IntlCalendar::FIELD_DAY_OF_WEEK -
IntlCalendar::FIELD_DAY_OF_WEEK_IN_MONTH -
IntlCalendar::FIELD_AM_PM -
IntlCalendar::FIELD_HOUR -
IntlCalendar::FIELD_HOUR_OF_DAY -
IntlCalendar::FIELD_MINUTE -
IntlCalendar::FIELD_SECOND -
IntlCalendar::FIELD_MILLISECOND -
IntlCalendar::FIELD_ZONE_OFFSET -
IntlCalendar::FIELD_DST_OFFSET -
IntlCalendar::FIELD_YEAR_WOY -
IntlCalendar::FIELD_DOW_LOCAL -
IntlCalendar::FIELD_EXTENDED_YEAR -
IntlCalendar::FIELD_JULIAN_DAY -
IntlCalendar::FIELD_MILLISECONDS_IN_DAY -
IntlCalendar::FIELD_IS_LEAP_MONTH -
IntlCalendar::FIELD_FIELD_COUNT -
IntlCalendar::FIELD_DAY_OF_MONTH -
IntlCalendar::DOW_SUNDAY -
IntlCalendar::DOW_MONDAY -
IntlCalendar::DOW_TUESDAY -
IntlCalendar::DOW_WEDNESDAY -
IntlCalendar::DOW_THURSDAY -
IntlCalendar::DOW_FRIDAY -
IntlCalendar::DOW_SATURDAY -
IntlCalendar::DOW_TYPE_WEEKDAY -
IntlCalendar::DOW_TYPE_WEEKEND -
IntlCalendar::DOW_TYPE_WEEKEND_OFFSET -
IntlCalendar::DOW_TYPE_WEEKEND_CEASE -
IntlCalendar::WALLTIME_FIRST -
IntlCalendar::WALLTIME_LAST -
IntlCalendar::WALLTIME_NEXT_VALID
Table of Contents
- IntlCalendar::add — Add a (signed) amount of time to a field
- IntlCalendar::after — Whether this objectʼs time is after that of the passed object
- IntlCalendar::before — Whether this objectʼs time is before that of the passed object
- IntlCalendar::clear — Clear a field or all fields
- IntlCalendar::__construct — Private constructor for disallowing instantiation
- IntlCalendar::createInstance — Create a new IntlCalendar
- IntlCalendar::equals — Compare time of two IntlCalendar objects for equality
- IntlCalendar::fieldDifference — Calculate difference between given time and this objectʼs time
- IntlCalendar::fromDateTime — Create an IntlCalendar from a DateTime object or string
- IntlCalendar::get — Get the value for a field
- IntlCalendar::getActualMaximum — The maximum value for a field, considering the objectʼs current time
- IntlCalendar::getActualMinimum — The minimum value for a field, considering the objectʼs current time
- IntlCalendar::getAvailableLocales — Get array of locales for which there is data
- IntlCalendar::getDayOfWeekType — Tell whether a day is a weekday, weekend or a day that has a transition between the two
- IntlCalendar::getErrorCode — Get last error code on the object
- IntlCalendar::getErrorMessage — Get last error message on the object
- IntlCalendar::getFirstDayOfWeek — Get the first day of the week for the calendarʼs locale
- IntlCalendar::getGreatestMinimum — Get the largest local minimum value for a field
- IntlCalendar::getKeywordValuesForLocale — Get set of locale keyword values
- IntlCalendar::getLeastMaximum — Get the smallest local maximum for a field
- IntlCalendar::getLocale — Get the locale associated with the object
- IntlCalendar::getMaximum — Get the global maximum value for a field
- IntlCalendar::getMinimalDaysInFirstWeek — Get minimal number of days the first week in a year can have
- IntlCalendar::getMinimum — Get the global minimum value for a field
- IntlCalendar::getNow — Get number representing the current time
- IntlCalendar::getRepeatedWallTimeOption — Get behavior for handling repeating wall time
- IntlCalendar::getSkippedWallTimeOption — Get behavior for handling skipped wall time
- IntlCalendar::getTime — Get time currently represented by the object
- IntlCalendar::getTimeZone — Get the objectʼs timezone
- IntlCalendar::getType — Get the calendar type
- IntlCalendar::getWeekendTransition — Get time of the day at which weekend begins or ends
- IntlCalendar::inDaylightTime — Whether the objectʼs time is in Daylight Savings Time
- IntlCalendar::isEquivalentTo — Whether another calendar is equal but for a different time
- IntlCalendar::isLenient — Whether date/time interpretation is in lenient mode
- IntlCalendar::isSet — Whether a field is set
- IntlCalendar::isWeekend — Whether a certain date/time is in the weekend
- IntlCalendar::roll — Add value to field without carrying into more significant fields
- IntlCalendar::set — Set a time field or several common fields at once
- IntlCalendar::setFirstDayOfWeek — Set the day on which the week is deemed to start
- IntlCalendar::setLenient — Set whether date/time interpretation is to be lenient
- IntlCalendar::setRepeatedWallTimeOption — Set behavior for handling repeating wall times at negative timezone offset transitions
- IntlCalendar::setSkippedWallTimeOption — Set behavior for handling skipped wall times at positive timezone offset transitions
- IntlCalendar::setTime — Set the calendar time in milliseconds since the epoch
- IntlCalendar::setTimeZone — Set the timezone used by this calendar
- IntlCalendar::toDateTime — Convert an IntlCalendar into a DateTime object
There are no user contributed notes for this page.
