[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: Branko Čibej <brane_at_xbc.nu>
Date: 2001-08-22 08:42:22 CEST

C. Scott Ananian wrote:

>Incidentally, the "cvs" getdate.y file is also the base for the GNU
>"getdate" function, whose input format is described at
> http://www.eyrx.com/DOC/D_GNUTIL/GSU_3.HTM#SEC3
>The claim is made on this page that *all* GNU programs that accept dates
>accept dates in the format accepted by getdate.
>

Subversion is not a GNU program.

Conforming to GNU "standards" is not always a good idea, and in this
case it is IMO a bad idea. There are other, more widespread standards --
such as ISO 8601, POSIX locales, etc. -- that users are (presumably)
familiar with, and we should concentrate on supporting those first.

My suggestion would be to do the following:

    * For input:
          * Always acept ISO 8601 dates, times, and intervals
          * Accept dates conforming to the current locale settings (as
            modified by --locale), wherever those can be guessed
          * Accept unambiguous "common" designations, such as
            "yesterday", "next monday" (and possibly "easter" and
            "sammain", if you can work those out. :-)
    * For output:
          * Write dates in the format defined by the current locale
          * As a possible exception, with --locale=C, write dates in ISO
            8601 format.

Of course, implementing the above is no longer a "bite-sized" task.

    Brane

---------------------------------------------------------------------
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.