On Sat, 13 Jul 2003, Rick Measham wrote:

> On Sat, 12 Jul 2003, Ben Bennett wrote:
> > Does it understand 1/3/2003?  If so, how does it resolve the day and
> > month ambiguity?
>
>
> On Sun, 2003-07-13 at 12:46, Dave Rolsky wrote:
> > Ideally, it'd be an attribute of the locale.  I bet we could figure that
> > out from the date formats defined for each locale.
>
> Yup, that's how it works. However it's not *locked* to the locale. For
> example if you're in a locale that says DD/MM/YYYY and you enter
> 11/28/2003, then it assumes you mean November 28.

Hmm, I guess that makes sense.  That almost seems a little _too_ clever.

> Dave, the 'locale' parameter will take an object or a name (just like DT
> itself does IIRC). From this we get the standard formats understood in
> that locale. However if we construct using language=>'EN', then we set
> the standard short format with: shortformat=>'US' or shortformat=>'EU'

Now I'm confused.  Are you proposing that there be a language parameter
_and_ a locale parameter?


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to