help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do you compute date difference in emacs?


From: Kevin Rodgers
Subject: Re: how do you compute date difference in emacs?
Date: Thu, 06 May 2010 17:37:20 -0600
User-agent: Thunderbird 2.0.0.24 (Macintosh/20100228)

José A. Romero L. wrote:
On 17 Kwi, 09:38, Xah Lee <xah...@gmail.com> wrote:
(...)
this code results in "1999-05-30".
In 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.3) of 2010-03-16 on
crested, modified by Debian; the code above results in an error,
because the seconds are required in the argument to date-to-time.
good info.
(...)

Indeed, good to know.  Looks like the Emacs team has been working
on that lately -- in 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version
2.18.3) of 2010-03-22 it seems to work OK, yielding "2009-09-13" as
result.

In 22.3 (i386-apple-darwin8.11.1, Carbon Version 1.6.0) it returns
"2009-09-12" when the seconds are included in the argument to date-to-time.

What would explain the 1-day discrepancy, time zone?  I am MDT (UTC +6).

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]