From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: dates before 1970 Date: Mon, 14 Mar 2011 13:13:36 -0400 Message-ID: <8990.1300122816@alphaville.dokosmarshall.org> References: <87ei6en127.fsf@ucl.ac.uk> <5422.1299798393@alphaville.usa.hp.com> <87ei6ehwld.fsf@ucl.ac.uk> <4006.1299861015@alphaville.dokosmarshall.org> <3BB12915-004C-4AD3-9753-E59632B7006A@gmail.com> <25878.1300115464@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=59662 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzBLJ-0005h6-6y for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 13:14:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzBLF-0007R1-06 for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 13:14:02 -0400 Received: from vms173007pub.verizon.net ([206.46.173.7]:59823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzBLE-0007Qu-TC for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 13:14:00 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LI2009YW56O3B30@vms173007.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 12:13:42 -0500 (CDT) In-reply-to: Message from Carsten Dominik of "Mon, 14 Mar 2011 18:02:54 BST." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: nicholas.dokos@hp.com, Emacs Org mode mailing list Carsten Dominik wrote: > > Ah, OK - thanks! I looked in current-time, saw the 0xffff mask and I > > thought that the extra bits are truncated, but apparently not: I need to > > go back and look at the C rules again. > > I have no idea what you are talking about :) > You think I do? :) I was referring to the C code implementing current-time (which, btw, has been changed in latest): ,---- | DEFUN ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0, | doc: /* Return the current time, as the number of seconds since 1970-01-01 00:00:00. | The time is returned as a list of three integers. The first has the | most significant 16 bits of the seconds, while the second has the | least significant 16 bits. The third integer gives the microsecond | count. | | The microsecond count is zero on systems that do not provide | resolution finer than a second. */) | (void) | { | EMACS_TIME t; | | EMACS_GET_TIME (t); | return list3 (make_number ((EMACS_SECS (t) >> 16) & 0xffff), | make_number ((EMACS_SECS (t) >> 0) & 0xffff), | make_number (EMACS_USECS (t))); | } `---- Nick