From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Agenda Bulk Scatter bug Date: Tue, 14 Jun 2011 10:41:08 +0200 Message-ID: <41EE7AE4-27D5-4925-A4AF-6B0E93C00164@gmail.com> References: <201106041254.26344.robut@iinet.net.au> <2AA642BB-5BB4-40B0-976F-1DC938C064C3@gmail.com> <87sjrivyyi.fsf@ut.hh.sledj.net> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWPBU-0004FJ-8z for emacs-orgmode@gnu.org; Tue, 14 Jun 2011 04:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWPBS-0006ps-Nn for emacs-orgmode@gnu.org; Tue, 14 Jun 2011 04:41:16 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:42432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWPBS-0006ot-9W for emacs-orgmode@gnu.org; Tue, 14 Jun 2011 04:41:14 -0400 Received: by eyd9 with SMTP id 9so2158027eyd.0 for ; Tue, 14 Jun 2011 01:41:12 -0700 (PDT) In-Reply-To: <87sjrivyyi.fsf@ut.hh.sledj.net> 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: David Edmondson Cc: emacs-orgmode@gnu.org Hi David, On Jun 10, 2011, at 11:05 AM, David Edmondson wrote: > * 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. Thank you for the analysis - the bulk scattering command should now again work as advertised. - Carsten