convertDatePhpToIcu() public static method
Converts a date format pattern from [php date() function format][] to [ICU format][].
The conversion is limited to date patterns that do not use escaped characters. Patterns like jS \o\f F Y
which will result in a date like 1st of December 2014
may not be converted correctly because of the use of escaped characters.
Pattern constructs that are not supported by the ICU format will be removed.
public static string convertDatePhpToIcu ( $pattern ) | ||
---|---|---|
$pattern | string |
Date format pattern in php date()-function format. |
return | string |
The converted date format pattern. |
Please login to continue.