Re: [Tzdist-bis] Leap Second Support Interval Field Request - RFC8536

Arthur David Olson <arthurdavidolson@gmail.com> Fri, 06 December 2019 05:10 UTC

Return-Path: <arthurdavidolson@gmail.com>
X-Original-To: tzdist-bis@ietfa.amsl.com
Delivered-To: tzdist-bis@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E829212001A; Thu, 5 Dec 2019 21:10:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XauO8GpbwxTM; Thu, 5 Dec 2019 21:09:59 -0800 (PST)
Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EB2AF120013; Thu, 5 Dec 2019 21:09:58 -0800 (PST)
Received: by mail-oi1-x229.google.com with SMTP id x14so1517256oic.10; Thu, 05 Dec 2019 21:09:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GSnTz+IXo+u9ishbA9ia7oCamC6GOhqL0UodCG7gqj0=; b=D2RP2HdeOvzOk8diTDAoMNBYF4E/V0L1UbBWF8YajivAaklQCPoiPC1Z3TgwfIFg70 i2Z9arwl9GxnembWqBpnCUm/8+dz4SCgNhimFoZT2yZb8ZdsUiy3qmeJJnG9cs/LLuIj 2QvzVLREmYxb47bxIeQBzChDEaOevmbjkgEpS0oPxRNjcfCfm9sqTTcZt6ouwW4X2ky9 snvl06e0SQrJrjvdFjKo3VfnwLfX4rGp4IyaMZCBzuEb+8mSg9VGpkC+Kc6ZwIIImR1/ ZekKYpoE161BrrBXT+80OyV1zOxFffRbDWYC6XV+ABpkN4Z3XSF4k3qDqSCMTpVu39Gd Yuyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GSnTz+IXo+u9ishbA9ia7oCamC6GOhqL0UodCG7gqj0=; b=uE36YTi0l4Hti/Sk7COiRH5rmvLRtYTG9dkB2vQAbXGc/qWaqu1a2Gp3ddJay3uPQ0 ruxunNxl9LiB4/myuqcSkG7FhjV1yjW/KwDj4vqOt/LPvUYB8Z/4fohNg3/OwRSCuF6O 5+tYzbacH+AYA7axWnmtfrOP7addqZuxIiC0TZc43k1Pgar7ipEYyK4dm2QsGHzWrleM 91unwrFRB2WUgIg5f/c7eCrM5DeExNPMpoXUDI2JqFFAS5TyBy/ibQIRaNnA9DYIvHfu nGmcuMpatlYzTWyWIz4XmodR24aUzT3JcX6LJjldJzZjKX9MZeamjl0eoyyoIJ1rqrIG Jvbw==
X-Gm-Message-State: APjAAAWPWhzin72onKgrTpsCoqLE5aQ2Z83dMUP79RvFRo0IPnUFL8qe jz6oipyvNIwB2DTVdSAqWkHevhptQQ3ZIEr5+vA=
X-Google-Smtp-Source: APXvYqzBFfoNOz5jzvCEJSnwK04XSUv+4GkYE+LlJScqES8vSlEtr4heqJG+a/mW14efZbv9EpYs11faUQKvlP9DDYY=
X-Received: by 2002:aca:5a45:: with SMTP id o66mr10929257oib.114.1575608998234; Thu, 05 Dec 2019 21:09:58 -0800 (PST)
MIME-Version: 1.0
References: <CAM6iTuYo8wPk88XiNhiPF1_7oHEkRUpyiwJa8-g8E9teR9cZcw@mail.gmail.com> <07ffd02d-ab8b-4d9f-ab27-dd6b0691e039@cs.ucla.edu>
In-Reply-To: <07ffd02d-ab8b-4d9f-ab27-dd6b0691e039@cs.ucla.edu>
From: Arthur David Olson <arthurdavidolson@gmail.com>
Date: Fri, 06 Dec 2019 00:09:46 -0500
Message-ID: <CAJvZEYkWdUoKyLgeQVX5=o63L3wm0pu+B6siaR+GXQzpePA_zg@mail.gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Michael Veth <michael.veth@vethresearch.com>, IESG <iesg@ietf.org>, Howard Hinnant <howard.hinnant@gmail.com>, Don Venable <donald.venable@vethresearch.com>, Time Zone Mailing List <tz@iana.org>, Extensions to Time Zone Data Distribution Service <tzdist-bis@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000a50e530599020e7a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tzdist-bis/hRhuRI8IwRDT8CQ-QRqj2MbbOWE>
Subject: Re: [Tzdist-bis] Leap Second Support Interval Field Request - RFC8536
X-BeenThere: tzdist-bis@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Extensions to Time Zone Data Distribution Service <tzdist-bis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tzdist-bis>, <mailto:tzdist-bis-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tzdist-bis/>
List-Post: <mailto:tzdist-bis@ietf.org>
List-Help: <mailto:tzdist-bis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tzdist-bis>, <mailto:tzdist-bis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Dec 2019 05:10:01 -0000

One odd possibility below.

    @dashdashado

Zone    Etc/Leapendstat 0       -       PRE     2020 Jun 28
                        0       -       POST

On Thu, Dec 5, 2019 at 11:34 PM Paul Eggert <eggert@cs.ucla.edu> wrote:

> On 12/4/19 1:04 PM, Michael Veth wrote:
>
> > The NIST leapsecond bulletin includes an expiration time which serves to
> > indicate the maximum validity interval for use of UTC time.  In order to
> > safely use UTC timestamps, the user needs to be aware of this maximum
> > validity time or they could be unknowingly introducing timing errors.
> >
> > I was not able to find this field in the TZif (Feb 19) ICD.  Would it be
> > possible to add a field to the TZdb that would represent this expiration
> > time?
>
> The TZif file format does provide for truncated files (see Internet RFC
> 8536 section 5.1), and one can generate files truncated to the current
> UTC expiration time (2020-06-28 00:00:00 UTC) with a command like this:
>
> zic -r /@1593302427 -L leapseconds tzdata.zi
>
> However, it's awkward that one must count the number of seconds since
> 1970-01-01 00:00:00 UTC (including leap seconds) by hand to get the
> numeric timestamp (1593302427 in this case) to pass to zic. We could add
> support to zic to do this sort of thing in a more-natural way.
>
> A downside of the abovementioned approach is that it generates a TZif
> file that omits all DST and time zone transitions after the UTC
> expiration time. We could change the TZif format to represent UTC
> expiration time separately from the truncation time. One possibility
> would be to append a leap-second record with an "occur" value equal to
> the expiration time and a "corr" value equal to the previous record's
> "corr" value. Strictly speaking this would violate RFC 8536 section 3.2
> "leap-second records" - though I doubt whether many clients would care -
> and so I suppose we'd need to increment the TZif format version number
> from 3 to 4. On the other hand, any files generated by this method would
> continue to be "incorrect" in that they'd continue to predict timestamps
> past the maximum leap second validity, so perhaps it wouldn't be worth
> going to all this work to generate "incorrect" files.
>
> I'll cc this to tz@iana.org and tzdist-bis@ietf.org to see whether
> anybody there cares to comment.
>