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

next in thread | previous in thread | raw e-mail | index | archive | help
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.
>

If you have those options enabled, the times are TAI times, not UTC times,
so the conversions are correct...

Furthermore, leap seconds must die.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqHDU%2BKm7hTqZoUQr%2BRC50Z2x2wARgqQvE4kseXqcB_wQ>