gmtime is not POSIX compliant due to leap seconds
lists at eitanadler.com
Wed May 23 05:14:49 UTC 2018
On 20 May 2018 at 11:14, Warner Losh <imp at bsdimp.com> wrote:
> On Sun, May 20, 2018 at 11:18 AM, Garrett Wollman <wollman at csail.mit.edu>
>> On May 20, 2018 1:08:13 PM EDT, Eitan Adler <lists at eitanadler.com> wrote:
>> > This means that gmtime ought not to be affected by leap seconds.
>> If you are getting leap-second adjustments, then you are using a
>> nonstandard build of the data files with that feature enabled. Don't do
>> that if POSIX behavior is what you want.
FWIW one thing did come out of this: the functions posix2time and its
inverse are not in any header. https://reviews.freebsd.org/D15530
fixes this, but am not certain about hiding it behind _BSD_VISIBLE.
More information about the freebsd-standards