PHP » GoLang |
login |
register |
about
|
GoLang IntlDateFormatter::isLenient
request it (392)
GoLang replacement for PHP's IntlDateFormatter::isLenient
[edit | history]
PHP IntlDateFormatter::isLenientPHP original manual for IntlDateFormatter::isLenient [ show | php.net ]IntlDateFormatter::isLenientdatefmt_is_lenient(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) IntlDateFormatter::isLenient -- datefmt_is_lenient — Get the lenient used for the IntlDateFormatter DescriptionObject oriented style
public bool IntlDateFormatter::isLenient
( void
)
Procedural style Check if the parser is strict or lenient in interpreting inputs that do not match the pattern exactly. Parameters
Return Values
ExamplesExample #1 datefmt_is_lenient() example
<?php Example #2 OO example
<?php The above example will output: lenient of the formatter is : TRUE Trying to do parse('35/13/1971'). Result is : -2147483 Now lenient of the formatter is : FALSE Trying to do parse('35/13/1971'). Result is : Error_msg is : Date parsing failed: U_PARSE_ERROR Error_code is : 9 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|