[darcs-devel] Convert date?

David Roundy droundy at abridgegame.org
Fri Jun 25 02:55:18 PDT 2004


On Thu, May 20, 2004 at 05:00:40AM -0700, David Brown wrote:
> Thu May 20 03:44:31 PDT 2004  David Roundy <droundy at abridgegame.org>
>   * when using --pipe and record, convert date to ISO format for
>   * internal use.
> 
> Does this allow the date to continue to be in ISO format?  I've already
> written some scripts to checkin the vim patches, and I use GNU date with
> an option to print out the packed ISO format that --pipe was wanting the
> date in.
> 
> Looking at the code, it looks like it will still accept the ISO format,
> but if not 14 digits, will also accept a textual format.

Yes.  The only difference is how darcs deals with the date internally.
Previously darcs would store whatever date you gave it, and then would
convert when using that date.  This was intended to make it easier to
losslessly convert back (i.e. you wouldn't lose for example TZ
information).  But on further consideration, it seemed that keeping the
darcs format vaguely standardized (i.e. date always in 14 digit format), so
we don't have to keep fixed the "date parsing" just to maintain repository
compatibility.
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-devel mailing list