emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: current-time and GMP


From: Helmut Eller
Subject: Re: current-time and GMP
Date: Wed, 29 Aug 2018 23:10:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Wed, Aug 29 2018, Stefan Monnier wrote:

>> so that future Emacs versions can support a new
>> format where B is the timestamp resolution.
>
> Right, I think (INTEGER-TIMESTAMP . RESOLUTION) would be a nice
> representation.  We can additionally (and temporarily) signal an
> error/warning if INTEGER-TIMESTAMP (and/or RESOLUTION) is "too small"
> (indicating a very likely use of the deprecated (HOGH . LOW)
> representation).

I think it would better to finally use an opaque type.  Say a struct
that prints like #<timestamp 2018-08-29 23:05:25.325602+02> along with a
constructor like (ticks-to-timestamp TICKS TICKS-PER-SECOND TIMEZONE).

Helmut




reply via email to

[Prev in Thread] Current Thread [Next in Thread]