On Thursday 25 January 2001 13:44, you wrote:
> [discussion completely filling everyone's mailbox]
Sorry to all the people who are flooded. I'll combine some replies to make it
less hard on you.
> Go crazy:
>
> DD/mmm/YYYY
>
> mmm = {jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec}
It has the advantage of being unambiguous. But it's more work for a parser.
The advantage for alphabetical ordering being equal to chronological ordering
for the YYYY-MM-DD format is that you can compare dates using a string
compare: you don't have to parse the date to be able to compare it.
> I agree with Maarten, but I've got a suggestion.
> If it's to be used as a version identifier, why
> not using dots as separators? 2001.01.25 looks
> more like a version identifier than 2001/01/25
> or 2001-01-25. <:)
Actually, I always use YYYY-MM-DD, the YYYY/MM/DD was to stress the sequence,
rather than the separator. The advantage of a dash as a separator instead of
a slash is that it works well in filesystems: the slash is the directory
separator in Unix and in URLs (like the backslash in MS systems).
About dots: yes, it's possible, although a bit unconventional. The
disadvantage would be that I can no longer copy-paste the date from the clock
applet in the panel. ;)
Bye,
Maarten
--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html