ietf
[Top] [All Lists]

Re: ITC copped out on UTC again

2012-01-23 07:32:32
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.

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

Tony.
-- 
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
or good.
_______________________________________________
Ietf mailing list
Ietf(_at_)ietf(_dot_)org
https://www.ietf.org/mailman/listinfo/ietf