From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Agenda Bulk Scatter bug Date: Fri, 10 Jun 2011 23:32:40 +0200 Message-ID: References: <201106041254.26344.robut@iinet.net.au> <2AA642BB-5BB4-40B0-976F-1DC938C064C3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV9Jr-0004xn-2B for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 17:32:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QV9Jp-0007Ix-MG for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 17:32:42 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:63030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV9Jp-0007Ir-BC for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 17:32:41 -0400 Received: by ewy9 with SMTP id 9so1211944ewy.0 for ; Fri, 10 Jun 2011 14:32:40 -0700 (PDT) In-Reply-To: <2AA642BB-5BB4-40B0-976F-1DC938C064C3@gmail.com> 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: Carsten Dominik Cc: Org Mode Hi Carsten On Fri, Jun 10, 2011 at 10:20, Carsten Dominik wrote: > When I evaluate this form > (decode-time (days-to-time (time-to-days (current-time)))) > I get a date in the year 3980. =A0I think this used to work. > Is there anyone who has an idea what is going on here? Same here (except the "I think this used to work") on GNU Emacs 23.3.1 x86_64-apple-darwin that is 64 bit and has also the famous time_t with 64 bits. The error reported by others comes from time_t with 32 bits. decode-time checks for overflow of time_t before either passing it to the system call localtime(const time_t *), or giving the error. But since it's only a mismatch of current-time with base 1970 and time-to-days with base 1bec, is (decode-time (days-to-time (- (time-to-days (current-time)) (time-to-days '(0 0))))) what you need? Why the *days* function, for some rounding? Michael