all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Cc: Bastien Guerry <bzg@altern.org>
Subject: Time not representable
Date: Fri, 11 Mar 2011 14:01:07 +0100	[thread overview]
Message-ID: <1B714A80-0584-499D-BB28-A7970FE60C28@gmail.com> (raw)

Hi everyone,

in the Org-mode mailing list, an old issue just came up again:
Some dates are not representable in Emacs when using functions
like encode-time.

The problem has to do with integer representations.

From the past I know that only times between 1970 and 2038 were
representable (that may have been Emacs 20 or something like this).

Recently I have noticed that my system now *can* represent dates
past 2038

   (encode-time 0 0 0 1 1 2040) => (33706 28784)

attesting to the fact that time is represented now with more than
32 bits.

Another data point is that on a different system, Bastien has found
that he can get times before 1970 represented, but not after 2038.
So apparently his system is using something else to represent time.

I can look up all the details about the systems if needed, but the
question I have is more general:

Why is it that these things are different on different systems?  Is
this under the control of Emacs, or does this depend on system
libraries which are being used?

Are there plans to use a time representation which will consistently
allow dates past 2038 and, if possible also before 1970?

Any pointers to educate me about these issues would be appreciated.

Thanks!

- Carsten


             reply	other threads:[~2011-03-11 13:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 13:01 Carsten Dominik [this message]
2011-03-11 13:19 ` Time not representable Andreas Schwab
2011-03-11 17:46 ` Paul Eggert
2011-03-12 22:13   ` Carsten Dominik
2011-03-12 23:22     ` Paul Eggert
2011-03-13  7:05     ` Paul Eggert
2011-03-13 17:52       ` Eli Zaretskii
2011-03-14 16:57       ` carsten Dominik

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1B714A80-0584-499D-BB28-A7970FE60C28@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=bzg@altern.org \
    --cc=emacs-devel@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.