std.date proposal

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Mar 29 08:24:03 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John C schrieb am 2006-03-29:
>> "M/D/Y" will stay I think, it is the US way, ambiguous or not, and there 
>> is allot of code/people out there making this assumption. If I could 
>> choose myself we would all go ISO :).
>
> Who are these people expecting dates to appear in US format, I wonder?
>
> A date library that has no notion of locales has no business making any 
> region-specific assumptions and should just implement ISO8601. After all, 
> that's what it's for.

Go ISO, go!

ISO is most likely the only format that is interpreted
correctly throughout the EU and Asia.

> If you must support a common date format, it should be D/M/Y, which is used 
> by the vast majority of countries and accepted internationally. 
> http://en.wikipedia.org/wiki/Calendar_date

Accepted internationally?

So, what date is: 01/02/03

1) in an Arab context
2) in an American context
3) in a British context
4) in an CJK context
5) in a Frensh context
6) in a German context
7) in an Israeli context

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFEKsId3w+/yD4P9tIRAo1PAKDSgSR/F6J+vzzqAFyHQDraSMhz9wCeOkzA
36LqUXALBp1uO9FPU+QpDYE=
=NBp3
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-announce mailing list