From: Erik Hetzner <egh@e6h.org>
To: Eric S Fraga <e.fraga@ucl.ac.uk>, emacs-orgmode@gnu.org
Subject: Re: Timestamps for a whole year, or a year and month
Date: Mon, 30 Dec 2013 16:49:34 -0800 [thread overview]
Message-ID: <87zjnhn8td.wl%egh@e6h.org> (raw)
In-Reply-To: <87bnzy6qvu.fsf@darkstar.op>
At Mon, 30 Dec 2013 20:11:17 +0000,
Eric S Fraga wrote:
>
> Erik,
>
> 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.
>
> 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’t 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
--
Sent from my free software system <http://fsf.org/>.
next prev parent reply other threads:[~2013-12-31 0:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-29 22:23 Timestamps for a whole year, or a year and month Erik Hetzner
2013-12-30 18:29 ` Erik Hetzner
2013-12-30 20:11 ` Eric S Fraga
2013-12-31 0:49 ` Erik Hetzner [this message]
2014-01-02 9:54 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjnhn8td.wl%egh@e6h.org \
--to=egh@e6h.org \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).