From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: What do I use if not `float-time'? Date: Wed, 06 Jan 2010 22:27:09 +0200 Organization: JURTA Message-ID: <877hrv6u2q.fsf@mail.jurta.org> References: <7b501d5c1001060715j6a9bf132y93d6c55d5af4c511@mail.gmail.com> <41805.130.55.118.19.1262791780.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262810130 29927 80.91.229.12 (6 Jan 2010 20:35:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2010 20:35:30 +0000 (UTC) Cc: emacs-devel@gnu.org, Deniz Dogan To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 06 21:35:22 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 1NScbA-00012o-4W for ged-emacs-devel@m.gmane.org; Wed, 06 Jan 2010 21:35:20 +0100 Original-Received: from localhost ([127.0.0.1]:47322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NScbA-0006J5-Er for ged-emacs-devel@m.gmane.org; Wed, 06 Jan 2010 15:35:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NScZ0-000366-9r for emacs-devel@gnu.org; Wed, 06 Jan 2010 15:33:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NScYt-0002rS-Bh for emacs-devel@gnu.org; Wed, 06 Jan 2010 15:33:03 -0500 Original-Received: from [199.232.76.173] (port=42787 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NScYs-0002qm-Tw for emacs-devel@gnu.org; Wed, 06 Jan 2010 15:32:58 -0500 Original-Received: from smtp-out4.starman.ee ([85.253.0.6]:56386 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NScYs-0003A2-9q for emacs-devel@gnu.org; Wed, 06 Jan 2010 15:32:58 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.53.192.cable.starman.ee [82.131.53.192]) by mx2.starman.ee (Postfix) with ESMTP id 9EB423F40E9; Wed, 6 Jan 2010 22:32:48 +0200 (EET) In-Reply-To: <41805.130.55.118.19.1262791780.squirrel@webmail.lanl.gov> (Davis Herring's message of "Wed, 6 Jan 2010 07:29:40 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (x86_64-pc-linux-gnu) 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:119544 Archived-At: >> 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. -- Juri Linkov http://www.jurta.org/emacs/