From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Time not representable Date: Sat, 12 Mar 2011 15:22:27 -0800 Organization: UCLA Computer Science Department Message-ID: <4D7C0033.6000404@cs.ucla.edu> References: <1B714A80-0584-499D-BB28-A7970FE60C28@gmail.com> <4D7A5FE1.5000400@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299972160 24683 80.91.229.12 (12 Mar 2011 23:22:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Mar 2011 23:22:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Carsten Dominik Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 13 00:22:36 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 1PyY8q-0005Ej-Aq for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2011 00:22:36 +0100 Original-Received: from localhost ([127.0.0.1]:47749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyY8p-00013x-PG for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2011 18:22:35 -0500 Original-Received: from [140.186.70.92] (port=44239 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyY8k-00013i-G0 for emacs-devel@gnu.org; Sat, 12 Mar 2011 18:22:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyY8j-0004UE-DH for emacs-devel@gnu.org; Sat, 12 Mar 2011 18:22:30 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:52677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyY8j-0004U2-6M for emacs-devel@gnu.org; Sat, 12 Mar 2011 18:22:29 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 100B739E80DF; Sat, 12 Mar 2011 15:22:28 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZZFpOCo74EpW; Sat, 12 Mar 2011 15:22:27 -0800 (PST) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id A2A1C39E80DB; Sat, 12 Mar 2011 15:22:27 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:137179 Archived-At: On 03/12/2011 02:13 PM, Carsten Dominik wrote: > So if a system uses a signed 64 bit integer, then the representation > problems will be fixed automatically, without further changes in > Emacs? Sorry, no. Perhaps my explanation wasn't clear? > Is there anyone here who has a 64 bit system and con confirm that > encode-time can handle times both before 1970 and after 2040 without > any problems? I have one (RHEL 5.5, x86-64), and can verify that it can handle times well outside the 1970-2038 range; but there are problems, as mentioned in my previous message. For example, (decode-time (encode-time 0 0 0 1 1 2147485548)) returns (0 0 0 1 1 -2147481748 4 nil -28378) on my host, and this is obviously bogus.