Ray Bellis <ray.bel...@nominet.org.uk> wrote:

>     day = (now - now % 86400)
>
> where "now" is the output of "gmtime()" of equivalent to calculate the
> number of days since the epoch.
>
> How is this affected (or not) by the presence of leap seconds, and/or
> any proposal to remove them.

It is not affected because it is guaranteed to work by POSIX's definition
of "seconds since the epoch", which ignores leap seconds.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_15

Tony.
-- 
f.anthony.n.finch  <d...@dotat.at>  http://dotat.at/
Shannon, South Rockall: Variable 4, becoming cyclonic, then southwesterly, 5
to 7, perhaps gale 8 later in south Rockall. Rough. Occasional rain. Moderate
or good.
_______________________________________________
Ietf mailing list
Ietf@ietf.org
https://www.ietf.org/mailman/listinfo/ietf

Reply via email to