Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2018 22:14:17 -0700
From:      Eitan Adler <lists@eitanadler.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Garrett Wollman <wollman@csail.mit.edu>,  FreeBSD Standards <freebsd-standards@freebsd.org>
Subject:   Re: gmtime is not POSIX compliant due to leap seconds
Message-ID:  <CAF6rxgndr7AGeuZFSGf%2BS4anYD_izwWDLT=U=TNHJkfGJDKkXQ@mail.gmail.com>
In-Reply-To: <CANCZdfqHDU%2BKm7hTqZoUQr%2BRC50Z2x2wARgqQvE4kseXqcB_wQ@mail.gmail.com>
References:  <CAF6rxgk5LKy8%2BXFc2yUY-ROmW=XZ500EStf-B9qi5qdGZ=Eh8g@mail.gmail.com> <091FB496-1C89-4146-8EFB-8D43FD0F7C0F@csail.mit.edu> <CANCZdfqHDU%2BKm7hTqZoUQr%2BRC50Z2x2wARgqQvE4kseXqcB_wQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20 May 2018 at 11:14, Warner Losh <imp@bsdimp.com> wrote:
> On Sun, May 20, 2018 at 11:18 AM, Garrett Wollman <wollman@csail.mit.edu>
> wrote:
>
>> On May 20, 2018 1:08:13 PM EDT, Eitan Adler <lists@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.



-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgndr7AGeuZFSGf%2BS4anYD_izwWDLT=U=TNHJkfGJDKkXQ>