IntlCalendar::getActualMinimum

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) The minimum value for a field, considering the objectʼs current time public int IntlCalendar::getActualMinimum ( int $field ) Object oriented style Procedural style int intlcal_get_actual_minimum ( IntlCalendar $cal , int $field ) Returns a fieldʼs relative minimum value around the current time. The exact semantics vary by field, but in the general case this is the value that would

IntlCalendar::getActualMaximum

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) The maximum value for a field, considering the objectʼs current time public int IntlCalendar::getActualMaximum ( int $field ) Object oriented style Procedural style int intlcal_get_actual_maximum ( IntlCalendar $cal , int $field ) Returns a fieldʼs relative maximum value around the current time. The exact semantics vary by field, but in the general case this is the value that would

IntlCalendar::get

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) Get the value for a field public int IntlCalendar::get ( int $field ) Object oriented style Procedural style int intlcal_get ( IntlCalendar> $cal , int $field ) Gets the value for a specific field. Parameters: cal The IntlCalendar resource. field One of the IntlCalendar date/time field cons

IntlCalendar::fromDateTime

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a2) Create an IntlCalendar from a DateTime object or string public static IntlCalendar IntlCalendar::fromDateTime ( mixed $dateTime ) Object oriented style Procedural style IntlCalendar intlcal_from_date_time ( mixed $dateTime ) Creates an IntlCalendar object either from a DateTime object or from a string from which a DateTime object can be built. The new calendar will represent not

IntlCalendar::fieldDifference

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) Calculate difference between given time and this objectʼs time public int IntlCalendar::fieldDifference ( float $when, int $field ) Object oriented style Procedural style int intlcal_field_difference ( IntlCalendar $cal , float $when , int $field ) Return the difference between the given time and the time this object is set to, with respect to the quantity specified the field param

IntlCalendar::equals

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) Compare time of two IntlCalendar objects for equality public bool IntlCalendar::equals ( IntlCalendar $other ) Object oriented style Procedural style bool intlcal_equals ( IntlCalendar $cal , IntlCalendar $other ) Returns true if this calendar and the given calendar have the same time. The settings, calendar types and field states do not have to be the same. Parame

IntlCalendar::createInstance

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) Create a new IntlCalendar public static IntlCalendar IntlCalendar::createInstance ([ mixed $timeZone = NULL [, string $locale = "" ]] ) Object oriented style Procedural style IntlCalendar intlcal_create_instance ([ mixed $timeZone = NULL [, string $locale = "" ]] ) Given a timezone and locale, this method creates an IntlCalendar object. This factory method may return a subclass o

IntlCalendar::__construct

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) Private constructor for disallowing instantiation private IntlCalendar::__construct ( void ) A private constructor for disallowing instantiation with the new operator. Call IntlCalendar::createInstance() instead. Returns: No value is returned.

IntlCalendar::clear

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) Clear a field or all fields public bool IntlCalendar::clear ([ int $field = NULL ] ) Object oriented style Procedural style bool intlcal_clear ( IntlCalendar $cal [, int $field = NULL ] ) Clears either all of the fields or a specific field. A cleared field is marked as unset, giving it the lowest priority against overlapping fields or even default values when calculating the time.

IntlCalendar::before

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) Whether this objectʼs time is before that of the passed object public bool IntlCalendar::before ( IntlCalendar $other ) Object oriented style Procedural style bool intlcal_before ( IntlCalendar $cal , IntlCalendar $other ) Returns whether this objectʼs time precedes the argumentʼs time. Parameters: cal The IntlCalendar resource.