From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: Timestamps for a whole year, or a year and month Date: Mon, 30 Dec 2013 16:49:34 -0800 Message-ID: <87zjnhn8td.wl%egh@e6h.org> References: <87txdrthy3.wl%egh@e6h.org> <87bnzy6qvu.fsf@darkstar.op> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxnWi-0006BG-85 for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 19:49:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxnWd-0005Fp-QG for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 19:49:44 -0500 Received: from mail-pb0-x22a.google.com ([2607:f8b0:400e:c01::22a]:36165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxnWd-0005FT-Im for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 19:49:39 -0500 Received: by mail-pb0-f42.google.com with SMTP id uo5so12118389pbc.15 for ; Mon, 30 Dec 2013 16:49:38 -0800 (PST) In-Reply-To: <87bnzy6qvu.fsf@darkstar.op> 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: Eric S Fraga , emacs-orgmode@gnu.org At Mon, 30 Dec 2013 20:11:17 +0000, Eric S Fraga wrote: >=20 > Erik, >=20 > I am not sure but I remember having a discussion about the problems with > dates that precede time 0 in Unix which corresponds to 1 January > 1970. See man page for ctime(3) for instance. >=20 > I am currently offline (in the tunnel under the North Sea :-) so cannot > find out what the conclusions of our discussion may have been. Please > search the mailing list on Worg. Hi Eric, This looks to be the main thread on the issue: http://thread.gmane.org/gmane.emacs.orgmode/39206 I have set org-read-date-force-compatible-dates to nil and tested on two different emacs, one 32 bit and one 64 bit: GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.4) of 2013-10-03 = on menkib, modified by Debian GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.6.4) of 2013-10-03 on= elnath, modified by Debian For the 64 bit system, I can get accurate dates back until 1583 (comparing with the calendar here: http://www.arc.id.au/Calendar.html). This is just before the Gregorian calendar was introduced. (Of course this depends on your locale :) since some countries were a little slower introducing it.) Using dates before that generates the wrong day of the week, but doesn=A2t seem to cause an error. It seems that I am also able to enter dates up until year 9999 and get the correct day of the week (as compared with the output of the cal command). On the 32 bit machine using dates before 14 Dec 1901 or after 18 Jan 2038 throws an error: Debugger entered--Lisp error: (error "Specified time is not representable= ") encode-time(0 0 0 13 12 1901 (nil nil nil)) So using 32 bit emacs does seem to be a problem. It is strange to me that dates before 1970 seem to work fine on both machines. best, Erik --=20 Sent from my free software system .