DateTime::Locale::ja, multiple datetime formats

[email protected] (N Heinrichs)
Newsgroups perl.datetime
Message-ID <CAEnbRwz5N3vajPVPiwfsW5qDt1f09dDWtzBw9gLKCkw_qZxSrA@mail.gmail.com>
Hello!

In CLDR version 1.7.1 [1] (on which DateTime::Locale::ja v0.45 is
based) the 'full' and 'long' datetime formats (incorrectly) differed
from the 'medium' and 'short' ones as follows:

full/long: "{1}{0}"
medium/short: "{1} {0}" (space between date and time)

(As of this bugfix[2] included in CLDR v21, all of the formats in
DT:Loc:ja correctly include the space.)

DT:Loc:Base's _make_datetime_format method does not accommodate
different datetime format: it simply uses the result of
$self->datetime_format (which, for DT:Loc:ja, is hardcoded to
"{1}{0}".)


I am not sure if any other locales require multiple datetime styles,
but it is apparent from CLDR's XML that this is supported.

Has anyone else seen a need for multiple datetime style support? Would
it be worthwhile for me to submit a patch for it?

Thanks much,

 -Nate

[1] http://www.unicode.org/repos/cldr/tags/release-1-7-1/common/main/ja.xml
[2] http://unicode.org/cldr/trac/ticket/4220
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.