Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-09-05 14:46:54


"Iain K. Hanson" <iain.hanson_at_[hidden]> writes:

> On Fri, 2003-09-05 at 17:34, Joel de Guzman wrote:
>
>> In my ET implementation (no it's not part of date_time yet, AFAIK),
>> I allow: Y/M/D and M/D/Y only.
>>
>> Pardon the confusion, 1/Jan/1970 is indeed an illegal date (asserts)
>
> So you are allowing US date format M/D/Y but not European date format
> D/M/Y. Thats a little US centric, is it not?

Yeah, it does to me too. The Euro format is a lot less ambiguous.
The problem is that if you allow 1970/Jan/1 and 1/Jan/1970 you have
an ambiguity problem which you can only sort out at runtime, and only
if the user isn't using years in the first century A.D.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk