[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: date parsing on "bite-sized tasks" list

From: Peter Fox <peter.fox_at_convergys.com>
Date: 2001-08-21 15:44:12 CEST

Hi,

In terms of date formats I would go with ISO standard

i.e. CCYY-MM-DD

everyone understands this. Well, ever programmer I know understands this.

I'm from the UK but am currently working in the US. I am dealing with groups
in both the UK and US. At the moment if I fill in any form I use the date
format 21-AUG-2001, to ensure that there is no confusion about the date.
Obviously you wouldn't want to use letters in a date format, so I would go
for CCYY-MM-DD. I would use this as the only permissible output format.

For input format's I would accept CCYY-MM-DD and if the date failed to meet
that format attempt to parse allowing such phrases as "yesterday", "-1",
etc. Of course these formats become language/locale dependent. This is
reasonably handy as scripts and the like can use CCYY-MM-DD and guarantee
the date handling to work and people can use relative time shortcuts.

Pete Fox

--
NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:36 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.