[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What do I use if not `float-time'?
From: |
Stephen J. Turnbull |
Subject: |
Re: What do I use if not `float-time'? |
Date: |
Thu, 07 Jan 2010 10:08:06 +0900 |
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.