From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: What do I use if not `float-time'? Date: Thu, 07 Jan 2010 10:08:06 +0900 Message-ID: <87aawqlo21.fsf@uwakimon.sk.tsukuba.ac.jp> References: <7b501d5c1001060715j6a9bf132y93d6c55d5af4c511@mail.gmail.com> <41805.130.55.118.19.1262791780.squirrel@webmail.lanl.gov> <877hrv6u2q.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262826140 15219 80.91.229.12 (7 Jan 2010 01:02:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jan 2010 01:02:20 +0000 (UTC) Cc: Deniz Dogan , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 07 02:02:13 2010 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.50) id 1NSglP-0007zW-Gv for ged-emacs-devel@m.gmane.org; Thu, 07 Jan 2010 02:02:11 +0100 Original-Received: from localhost ([127.0.0.1]:39112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSgiH-0005j8-95 for ged-emacs-devel@m.gmane.org; Wed, 06 Jan 2010 19:58:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSgi9-0005ho-Qy for emacs-devel@gnu.org; Wed, 06 Jan 2010 19:58:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSgi5-0005eB-4x for emacs-devel@gnu.org; Wed, 06 Jan 2010 19:58:49 -0500 Original-Received: from [199.232.76.173] (port=46025 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSgi5-0005e2-25 for emacs-devel@gnu.org; Wed, 06 Jan 2010 19:58:45 -0500 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:35898) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSgi4-0005Gf-FM for emacs-devel@gnu.org; Wed, 06 Jan 2010 19:58:44 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id 073A71535AF; Thu, 7 Jan 2010 09:58:38 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 6A5B41A2C00; Thu, 7 Jan 2010 10:08:06 +0900 (JST) In-Reply-To: <877hrv6u2q.fsf@mail.jurta.org> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" 1444e28f1a3d XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:119552 Archived-At: Juri Linkov writes: > >> Okay, so what do I use instead? I just want a "UNIX timestamp" as an > >> integer or string. What's the idiomatic way to get that? > > > > Use `current-time'. The trick is that you then have to deal with multiple > > integers (because Emacs ints are (often) shorter than 32 bits). > > Is a list of integers still necessary for 64-bit machines where > most-positive-fixnum is greater than the number of microseconds > since January 1, 1970. Yes, because the API is defined that way. You could rewrite callers to check whether it's just an integer or a list, but why bother? This is not called that often.