[threeten-dev] DateTimeFormatter.withLocale question
Stephen Colebourne
scolebourne at joda.org
Tue Feb 12 14:38:29 PST 2013
On 12 February 2013 22:34, Naoto Sato <naoto.sato at oracle.com> wrote:
> On 2/12/13 8:05 AM, Stephen Colebourne wrote:
>>
>> DateFormat/SimpleDateFormat doesn't distinguish between the two
>> AFAICT, but 310 is trying to. I'm very open to design options in this
>> area.
>
> Starting from JDK8, DateFormat/SimpleDateFormat recognizes "-u-nu-xxxx"
> Unicode locale keyword. While "text" are localized with the base locale,
> numbers are formatted in "xxxx" script if available. I'd expect the similar
> behavior in 310 the formatters.
I agree. If SimpleDateFormat is doing that, so should 310. The
question is whether DateTimeFormatSymbols should be exposed publicly
to achieve it.
Stephen
More information about the threeten-dev
mailing list