Ray Bellis <[email protected]> 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  <[email protected]>  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
[email protected]
https://www.ietf.org/mailman/listinfo/ietf

Reply via email to