[threeten-dev] DateTimeFormatters - pattern Z and X and SimpleDateFormat
Stephen Colebourne
scolebourne at joda.org
Thu Dec 20 17:08:56 PST 2012
On 19 December 2012 05:42, <yoshito_umaoka at us.ibm.com> wrote:
> I have some comments:
>
> - Why don't you add "XXXX" and "XXXXX" example cases? i.e. "Z; -0800;
> -08:00;" -> "Z; -0800; -08:00;+013015;+01:30:15"
It does get quite long, but I've made the change.
> - Pattern 'Z' and 'X' are extended. Can we simply extend the definition of
> SimpleDateFormat to support them? Of course, it will be an incompatible
> change, but the impact would be pretty minor.
Its not up to me to control SimpleDateFormat. There would be some
logic to them being the same.
> - Why don't you introduce optional second support to pattern Z? (By doing
> so, only the difference between Z and X is formatting offset zero; "+0000"
> vs "Z").
That would be desirable. However, I note that CLDR/LDML already
defines 4 and 5 pattern letters for Z, and they don't match 310 or
this proposal.
Stephen
More information about the threeten-dev
mailing list