static IntlDateFormatter create(string $locale, int $datetype, int $timetype, string $timezone = null, int $calendar = self::GREGORIAN, string $pattern = null)
Static constructor.
static IntlDateFormatter create(string $locale, int $datetype, int $timetype, string $timezone = null, int $calendar = self::GREGORIAN, string $pattern = null)
Static constructor.
string | $locale | The locale code. The only currently supported locale is "en" (or null using the default locale, i.e. "en") |
int | $datetype | Type of date formatting, one of the format type constants |
int | $timetype | Type of time formatting, one of the format type constants |
string | $timezone | Timezone identifier |
int | $calendar | Calendar to use for formatting or parsing; default is Gregorian One of the calendar constants. |
string | $pattern | Optional pattern to use when formatting |
IntlDateFormatter |
MethodArgumentValueNotImplementedException | When $locale different than "en" or null is passed |
MethodArgumentValueNotImplementedException | When $calendar different than GREGORIAN is passed |
http://www.php.net/manual/en/intldateformatter.create.php | |
http://userguide.icu-project.org/formatparse/datetime |
Designed by : w10schools
service@w10schools.com
Please login to continue.