IntlDateFormatter::setTimeZone

(PHP 5 >= 5.5.0, PHP 7, PECL intl >= 3.0.0) Sets formatterʼs timezone public boolean IntlDateFormatter::setTimeZone ( mixed $zone ) Object oriented style Procedural style boolean datefmt_set_timezone ( mixed $zone ) Sets the timezone that will be used when formatting dates or times with this object. Parameters: zone The timezone to use for this formatter. This

IntlDateFormatter::getCalendarObject

(PHP 5 >= 5.5.0, PHP 7, PECL intl >= 3.0.0) Get copy of formatterʼs calendar object public IntlCalendar IntlDateFormatter::getCalendarObject ( void ) Object oriented style Procedural style IntlCalendar datefmt_get_calendar_object ( void ) Obtain a copy of the calendar object used internally by this formatter. This calendar will have a type (as in gregorian, japanese, buddhist, roc, persian, islamic, etc.) and a ti

IntlDateFormatter::localtime

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Parse string to a field-based time value public array IntlDateFormatter::localtime ( string $value [, int &$position ] ) Object oriented style Procedural style array datefmt_localtime ( IntlDateFormatter $fmt , string $value [, int &$position ] ) Converts string $value to a field-based time value ( an array of various fields), starting at $parse_pos and consuming

IntlDateFormatter::isLenient

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get the lenient used for the IntlDateFormatter public bool IntlDateFormatter::isLenient ( void ) Object oriented style Procedural style bool datefmt_is_lenient ( IntlDateFormatter $fmt ) Check if the parser is strict or lenient in interpreting inputs that do not match the pattern exactly. Parameters: fmt The formatter

IntlDateFormatter::parse

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Parse string to a timestamp value public int IntlDateFormatter::parse ( string $value [, int &$position ] ) Object oriented style Procedural style int datefmt_parse ( IntlDateFormatter $fmt , string $value [, int &$position ] ) Converts string $value to an incremental time value, starting at $parse_pos and consuming as much of the input value as possible.

IntlDateFormatter::getTimeZone

(PHP 5 >= 5.5.0, PHP 7, PECL intl >= 3.0.0) Get formatterʼs timezone public IntlTimeZone IntlDateFormatter::getTimeZone ( void ) Object oriented style Procedural style IntlTimeZone datefmt_get_timezone ( void ) Returns an IntlTimeZone object representing the timezone that will be used by this object to format dates and times. When formatting IntlCalendar and DateTime objects with this IntlDateFormatter, the timezo

IntlDateFormatter::getTimeType

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get the timetype used for the IntlDateFormatter public int IntlDateFormatter::getTimeType ( void ) Object oriented style Procedural style int datefmt_get_timetype ( IntlDateFormatter $fmt ) Return time type used by the formatter. Parameters: fmt The formatter resource. Returns: The current da

IntlDateFormatter::getTimeZoneId

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get the timezone-id used for the IntlDateFormatter public string IntlDateFormatter::getTimeZoneId ( void ) Object oriented style Procedural style string datefmt_get_timezone_id ( IntlDateFormatter $fmt ) Get the timezone-id used for the IntlDateFormatter. Parameters: fmt The formatter resource. Ret

IntlDateFormatter::getLocale

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get the locale used by formatter public string IntlDateFormatter::getLocale ([ int $which ] ) Object oriented style Procedural style string datefmt_get_locale ( IntlDateFormatter $fmt [, int $which ] ) Get locale used by the formatter. Parameters: fmt The formatter resource hich You

IntlDateFormatter::getPattern

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get the pattern used for the IntlDateFormatter public string IntlDateFormatter::getPattern ( void ) Object oriented style Procedural style string datefmt_get_pattern ( IntlDateFormatter $fmt ) Get pattern used by the formatter. Parameters: fmt The formatter resource. Returns: The pattern stri