From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: dates before 1970 Date: Mon, 14 Mar 2011 19:12:50 +0100 Message-ID: <874o75a7vh.fsf@Rainer.invalid> 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> <8990.1300122816@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=36110 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzCGS-0005Eo-Hs for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 14:13:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzCGP-0006tA-Ur for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 14:13:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:36026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzCGP-0006sg-HX for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 14:13:05 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PzCGO-0003JU-26 for emacs-orgmode@gnu.org; Mon, 14 Mar 2011 19:13:04 +0100 Received: from p57aad652.dip.t-dialin.net ([87.170.214.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2011 19:13:04 +0100 Received: from Stromeko by p57aad652.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2011 19:13:04 +0100 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: emacs-orgmode@gnu.org Nick Dokos writes: > 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))); > | } > `---- I can't see how this code works correctly unless it is guaranteed that EMACS_TIME is 32bit unsigned... Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs