class StubIntlDateFormatter extends IntlDateFormatter
Alias of {@link \Symfony\Component\Intl\DateFormatter\IntlDateFormatter}.
NONE | |
FULL | |
LONG | |
MEDIUM | |
SHORT | |
TRADITIONAL | |
GREGORIAN |
__construct(string $locale, int $datetype, int $timetype, mixed $timezone = null, int $calendar = self::GREGORIAN, string $pattern = null) Constructor. | from IntlDateFormatter | |
static IntlDateFormatter | create(string $locale, int $datetype, int $timetype, string $timezone = null, int $calendar = self::GREGORIAN, string $pattern = null) Static constructor. | from IntlDateFormatter |
string|bool | format(int|DateTime $timestamp) Format the date/time value (timestamp) as a string. | from IntlDateFormatter |
string | formatObject(object $object, mixed $format = null, string $locale = null) Not supported. | from IntlDateFormatter |
int | getCalendar() Returns the formatter's calendar. | from IntlDateFormatter |
object | getCalendarObject() Not supported. | from IntlDateFormatter |
int | getDateType() Returns the formatter's datetype. | from IntlDateFormatter |
int | getErrorCode() Returns formatter's last error code. | from IntlDateFormatter |
string | getErrorMessage() Returns formatter's last error message. | from IntlDateFormatter |
string | getLocale(int $type = Locale::ACTUAL_LOCALE) Returns the formatter's locale. | from IntlDateFormatter |
string | getPattern() Returns the formatter's pattern. | from IntlDateFormatter |
string | getTimeType() Returns the formatter's time type. | from IntlDateFormatter |
string | getTimeZoneId() Returns the formatter's timezone identifier. | from IntlDateFormatter |
mixed | getTimeZone() Not supported. | from IntlDateFormatter |
bool | isLenient() Returns whether the formatter is lenient. | from IntlDateFormatter |
string | localtime(string $value, int $position) Not supported. | from IntlDateFormatter |
string | parse(string $value, int $position = null) Parse string to a timestamp value. | from IntlDateFormatter |
bool | setCalendar(string $calendar) Not supported. | from IntlDateFormatter |
bool | setLenient(bool $lenient) Set the leniency of the parser. | from IntlDateFormatter |
bool | setPattern(string $pattern) Set the formatter's pattern. | from IntlDateFormatter |
bool | setTimeZoneId(string $timeZoneId) Set the formatter's timezone identifier. | from IntlDateFormatter |
bool | setTimeZone(mixed $timeZone) This method was added in PHP 5.5 as replacement for | from IntlDateFormatter |
Constructor.
Static constructor.
Format the date/time value (timestamp) as a string.
Not supported.
Formats an object.
Returns the formatter's calendar.
Not supported.
Returns the formatter's calendar object.
Returns the formatter's datetype.
Returns formatter's last error code.
Always returns the UZEROERROR class constant value.
Returns formatter's last error message.
Always returns the UZEROERROR_MESSAGE class constant value.
Returns the formatter's locale.
Returns the formatter's pattern.
Returns the formatter's time type.
Returns the formatter's timezone identifier.
Not supported.
Returns the formatter's timezone.
Returns whether the formatter is lenient.
Not supported.
Parse string to a field-based time value.
Parse string to a timestamp value.
Not supported.
Set the formatter's calendar.
Set the leniency of the parser.
Define if the parser is strict or lenient in interpreting inputs that do not match the pattern exactly. Enabling lenient parsing allows the parser to accept otherwise flawed date or time patterns, parsing as much as possible to obtain a value. Extra space, unrecognized tokens, or invalid values ("February 30th") are not accepted.
Set the formatter's pattern.
Set the formatter's timezone identifier.
This method was added in PHP 5.5 as replacement for setTimeZoneId()
.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Locale/Stub/StubIntlDateFormatter.html