Source-Changes-D archive

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

Re: CVS commit: src/lib/libc/time



    Date:        Sat, 22 Oct 2022 20:17:57 -0600
    From:        Warner Losh <imp%bsdimp.com@localhost>
    Message-ID:  <CANCZdfqhkZ0XS7LF6LMJvEONtC5DGSoNOnS_UG6fzSf30oGiiw%mail.gmail.com@localhost>


  | On the other hand, adding a caveat that leap seconds don't exist in a POSIX
  | time_t and that's necessarily reflected in the normalization wouldn't be
  | bad.

The problem with doing that is that while we don't install it this
way, it is possible to install tzdata such that leap seconds do occur
(despite that not being posix) either unconditionally, or installing
both and leaving it up to the user by their choice of timezone to use
(which makes rather a mess).

The code works with either set of tzdata files, POSIX stretchy secs,
or UTC with leap secs - claiming that one doesn't happen, or cannot
happen, isn't really correct.

kre




Home | Main Index | Thread Index | Old Index