Add way to get around combinatorics with formats

Description

Deleted Component: unknown

Currently, you get a choice of 4 date and 4 time formats. For many applications,
this is too few. For example, here are some of the ones offered in OpenOffice:

mmm d, yy,
mmm d, yyyy,
mmmm d, yyyy,
EEE, mmm d, yy,
EEE, mmmm d, yyyy,
EEEEmmmm d, yyyy,
d. mmm. yyyy,
d. mmmm yyyy,
mm-dd,
yy-mm-dd,
m/d/yy,
yyyy-mm-dd,
ww,
EEE dd/mmm yy,
mm/yy,
mmm dd,
mmmm,
qq yy,
mm/dd/yyyy,
mm/dd/yy,
EEEEmmmm dd, yyyy,
mm/dd/yy HH:mm,
mm/dd/yyyy HH:mm:ss

Yet we don't want to be swamped with all of the combinatorics.

Investigate extending the format so that the same pattern can serve multiple
roles, with choices being made by API. For example, in the API, someone could
make the choice between 4-digit and 2-digit year, using the same pattern. The
tricky part is the omission of a field. If you omit the E field in "EEE, mmmm d,
yyyy", for example, you also want to omit the adjacent punctuation. When
omitting the mmmm field, one wouldn't know whether to omit the ", " or the " ".

Survey and categorized the common formats in use on different systems in
different languages and see if some addition formatting syntax could work, e.g.
EEE{|, |}mmmm d, yyyy, where {x|y|z} means use x if the field on the right is
omitted, y if both fields are kept, and z if the field on the left is omitted.
(This is not a serious proposal; just an indication of how something could be
developed.)

xpath

None

locale

None

Status

Priority

major

Assignee

Mark Davis

Reporter

TracBot

tracReporter

Reviewer

Steven R. Loomis

Labels

Components

None

Fix versions

phase

None
Configure