unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Time not representable
@ 2011-03-11 13:01 Carsten Dominik
  2011-03-11 13:19 ` Andreas Schwab
  2011-03-11 17:46 ` Paul Eggert
  0 siblings, 2 replies; 8+ messages in thread
From: Carsten Dominik @ 2011-03-11 13:01 UTC (permalink / raw)
  To: Emacs developers; +Cc: Bastien Guerry

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-14 16:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 13:01 Time not representable Carsten Dominik
2011-03-11 13:19 ` 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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).