Locale-Sensitive Java Method
java.time.format.DateTimeFormatter
public static DateTimeFormatter ofLocalizedTime(FormatStyle timeStyle)
Internationalization (I18n) Method Overview
ofLocalizedTime
returns a locale specific time format for the ISO chronology,
using the default machine locale.
The formatter can be used to format or parse a time. The exact format pattern varies by locale.
For more information on ofLocalizedTime ,
click
here.
I18n Issues
The formatter returned directly by this method will use the default locale for your machine.
The default machine locale is not always the correct locale for every user.
To specifically set the locale, call
withLocale(Locale) on the result of this method.
Locale-Sensitive Java Methods
|