StubIntlDateFormatter deprecated
class StubIntlDateFormatter extends IntlDateFormatter
deprecated
Alias of {@link \Symfony\Component\Intl\DateFormatter\IntlDateFormatter}.
Constants
NONE |
|
FULL |
|
LONG |
|
MEDIUM |
|
SHORT |
|
TRADITIONAL |
|
GREGORIAN |
|
Methods
Constructor.
Static constructor.
Not supported. Formats an object.
Not supported. Returns the formatter's calendar object.
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.
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 formatter's timezone identifier.
This method was added in PHP 5.5 as replacement for setTimeZoneId()
.
Details
in IntlDateFormatter at line line 148
__construct(string $locale, int $datetype, int $timetype, mixed $timezone = null, int $calendar = self::GREGORIAN, string $pattern = null)
Constructor.
in IntlDateFormatter at line line 184
static IntlDateFormatter
create(string $locale, int $datetype, int $timetype, string $timezone = null, int $calendar = self::GREGORIAN, string $pattern = null)
Static constructor.
in IntlDateFormatter at line line 201
string|bool
format(int|DateTime $timestamp)
Format the date/time value (timestamp) as a string.
in IntlDateFormatter at line line 255
string
formatObject(object $object, mixed $format = null, string $locale = null)
Not supported. Formats an object.
in IntlDateFormatter at line line 268
int
getCalendar()
Returns the formatter's calendar.
in IntlDateFormatter at line line 282
object
getCalendarObject()
Not supported. Returns the formatter's calendar object.
in IntlDateFormatter at line line 294
int
getDateType()
Returns the formatter's datetype.
in IntlDateFormatter at line line 306
int
getErrorCode()
Returns formatter's last error code. Always returns the UZEROERROR class constant value.
in IntlDateFormatter at line line 318
string
getErrorMessage()
Returns formatter's last error message. Always returns the UZEROERROR_MESSAGE class constant value.
in IntlDateFormatter at line line 333
string
getLocale(int $type = Locale::ACTUAL_LOCALE)
Returns the formatter's locale.
in IntlDateFormatter at line line 345
string
getPattern()
Returns the formatter's pattern.
in IntlDateFormatter at line line 357
string
getTimeType()
Returns the formatter's time type.
in IntlDateFormatter at line line 369
string
getTimeZoneId()
Returns the formatter's timezone identifier.
in IntlDateFormatter at line line 390
mixed
getTimeZone()
Not supported. Returns the formatter's timezone.
in IntlDateFormatter at line line 404
bool
isLenient()
Returns whether the formatter is lenient.
in IntlDateFormatter at line line 424
string
localtime(string $value, int $position)
Not supported. Parse string to a field-based time value.
in IntlDateFormatter at line line 444
string
parse(string $value, int $position = null)
Parse string to a timestamp value.
in IntlDateFormatter at line line 474
bool
setCalendar(string $calendar)
Not supported. Set the formatter's calendar.
in IntlDateFormatter at line line 496
bool
setLenient(bool $lenient)
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.
in IntlDateFormatter at line line 515
bool
setPattern(string $pattern)
Set the formatter's pattern.
in IntlDateFormatter at line line 537
bool
setTimeZoneId(string $timeZoneId)
Set the formatter's timezone identifier.
in IntlDateFormatter at line line 594
bool
setTimeZone(mixed $timeZone)
This method was added in PHP 5.5 as replacement for setTimeZoneId()
.