Ray Bellis <Ray(_dot_)Bellis(_at_)nominet(_dot_)org(_dot_)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.
f.anthony.n.finch <dot(_at_)dotat(_dot_)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
Ietf mailing list