From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Edmondson Subject: Re: Agenda Bulk Scatter bug Date: Fri, 10 Jun 2011 10:05:09 +0100 Message-ID: <87sjrivyyi.fsf@ut.hh.sledj.net> References: <201106041254.26344.robut@iinet.net.au> <2AA642BB-5BB4-40B0-976F-1DC938C064C3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUxkC-0000yM-K9 for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 05:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUxkA-0002gx-Nb for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 05:11:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:59555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUxkA-0002gl-AK for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 05:11:06 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QUxk8-0005Cb-VJ for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 11:11:04 +0200 Received: from host81-149-164-25.in-addr.btopenworld.com ([81.149.164.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2011 11:11:04 +0200 Received: from dme by host81-149-164-25.in-addr.btopenworld.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2011 11:11:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * carsten.dominik@gmail.com [2011-06-10 Fri 09:20] > Hi, I need a few testers: Something very strange is going on here. > > When I evaluate this form > > (decode-time (days-to-time (time-to-days (current-time)))) > > I get a date in the year 3980. I think this used to work. > Is there anyone who has an idea what is going on here? (decode-time (days-to-time (time-to-days (current-time)))) => (0 0 1 10 6 3980 2 t 3600) With "GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-02-10 on keller, modified by Debian". (time-to-days) returns the number of days since 0001-12-31bce, which (days-to-time) converts into a time value. That time value is relative to 0001-12-31bce, _not_ relative to 1970-01-01, which is what (decode-time) is expecting. Hence you end up 1970 years out.