emacs-devel
[Top][All Lists]
Advanced

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

Re: Support for sub-second time in decoded time


From: Stefan Monnier
Subject: Re: Support for sub-second time in decoded time
Date: Mon, 29 Jul 2019 10:03:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> `current-time' returns its data as (HIGH LOW USEC PSEC), but now that we
> have bignum support, perhaps we don't need to do it this way.  What
> about just having a field in decoded times that's the fraction of a
> second?  So 34.5603 seconds would be represented as
>
> (34 ... 5603)

`encode-time` uses a fraction-representation (NOM . DENOM), which is
probably easier to manipulate.

[ Note: I find `encode-time` vs `decode-time` very confusing.  ]


        Stefan




reply via email to

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