From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Dominik Newsgroups: gmane.emacs.devel Subject: Time not representable Date: Fri, 11 Mar 2011 14:01:07 +0100 Message-ID: <1B714A80-0584-499D-BB28-A7970FE60C28@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299848488 29688 80.91.229.12 (11 Mar 2011 13:01:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2011 13:01:28 +0000 (UTC) Cc: Bastien Guerry To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 11 14:01:24 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Py1y7-0005lO-3L for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2011 14:01:23 +0100 Original-Received: from localhost ([127.0.0.1]:45873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Py1y6-0003KP-Eu for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2011 08:01:22 -0500 Original-Received: from [140.186.70.92] (port=42912 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Py1xw-0003Ja-Nn for emacs-devel@gnu.org; Fri, 11 Mar 2011 08:01:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Py1xv-0007TT-2S for emacs-devel@gnu.org; Fri, 11 Mar 2011 08:01:12 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:48974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Py1xu-0007T2-UN for emacs-devel@gnu.org; Fri, 11 Mar 2011 08:01:11 -0500 Original-Received: by eyh6 with SMTP id 6so941881eyh.0 for ; Fri, 11 Mar 2011 05:01:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:cc:to:mime-version:x-mailer; bh=em2OoyADEivDvnYM36dzyF8U+wOuGwVj0IhZT3eOKhk=; b=E5dJR3OQD2yNseMtYVD9Or601sh8lbmxCk+GkWd2cPzjHD4g1UjYJBL14bVDog/S5w PSMG0MS50DMRs+oWn5TReHEkGjtnhx1VHvI2YIj2BZGRoet+ARD8FxBRTqC7LMQRn9oI vMHqx5droPnA4fjDfRfwZidd2/Si7cJHRPApo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; b=DoL79YP/i92JEilOTHQJosQYZ28tXHv2LyifpOaKCTD53DPCUWd6nb8WJ+METq0CjK a+PfouuvITvfe6Z202Qe2y+qYle4jVX1z0KbIm44lNjmd40Za5KYjjs0G9Q+aUgvp7P5 QmizTTsh4ItvXITZHErBX6QvIm4MvI4OSlGi4= Original-Received: by 10.213.96.220 with SMTP id i28mr1324816ebn.123.1299848469891; Fri, 11 Mar 2011 05:01:09 -0800 (PST) Original-Received: from u016822.science.uva.nl (u016822.science.uva.nl [146.50.39.34]) by mx.google.com with ESMTPS id q53sm3443481eeh.22.2011.03.11.05.01.08 (version=SSLv3 cipher=OTHER); Fri, 11 Mar 2011 05:01:08 -0800 (PST) X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137101 Archived-At: 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. =46rom 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) =3D> (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=