From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Juri Linkov <juri@jurta.org>
Cc: Deniz Dogan <deniz.a.m.dogan@gmail.com>, emacs-devel@gnu.org
Subject: Re: What do I use if not `float-time'?
Date: Thu, 07 Jan 2010 10:08:06 +0900 [thread overview]
Message-ID: <87aawqlo21.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <877hrv6u2q.fsf@mail.jurta.org>
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.
next prev parent reply other threads:[~2010-01-07 1:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-06 15:15 What do I use if not `float-time'? Deniz Dogan
2010-01-06 15:29 ` Davis Herring
2010-01-06 20:27 ` Juri Linkov
2010-01-07 1:08 ` Stephen J. Turnbull [this message]
2010-01-06 20:40 ` Deniz Dogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aawqlo21.fsf@uwakimon.sk.tsukuba.ac.jp \
--to=stephen@xemacs.org \
--cc=deniz.a.m.dogan@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.