Re: ITC copped out on UTC again

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

 



Ray Bellis <Ray.Bellis@xxxxxxxxxxxxxx> 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@xxxxxxxx>  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@xxxxxxxx
https://www.ietf.org/mailman/listinfo/ietf


[Index of Archives]     [IETF Annoucements]     [IETF]     [IP Storage]     [Yosemite News]     [Linux SCTP]     [Linux Newbies]     [Fedora Users]