Dave Rolsky wrote:
> 
> On Mon, 8 Dec 2003, Doug Treder wrote:
> 
> >    $dt = DateTime->now(locale=>"fr_CA");  # canadian french
> >    print $dt->strftime('%x');
> >    '03-12-09'
> >
> > the "medium" format may or may not be numeric.  or is one of the two
> > locale modules wrong?
> 
> That's just what the locale data says.  There's no way to know whether or
> not a given locale will use only numbers in the output other than looking
> at the output.

Here in Quebec "03-12-09" would normally be interpreted as December 3,
2009. I would expect "9-12-2003" (expressing years in two digits is
frowned upon; e.g. "1998-99" is considered an anglicism, "the proper way
to write it" being "1998-1999"). The string version would be "le 9
d�cembre 2003"; month abbreviations tend to be used only where space is
limited (as in a table), and preceding dates with "le" is almost
invariable, even where "the" would never be used in English. I'm left
wondering if the "03-12-09" isn't an ISO-standard placeholder for "not
sure of locale data", or based on a "Canada is officially metric, ergo
ISO rules" premise out of touch with common usage (even for en_CA I
would expect "12/09/03", not the preferable-for-the-sake-of-clarity
y-m-d).

h~

Reply via email to