Re: [Tzdist] [tzdist] #31 (service): Include leap seconds?

Tim Parenti <tim@timtimeonline.com> Sun, 11 January 2015 01:33 UTC

Return-Path: <tim@timtimeonline.com>
X-Original-To: tzdist@ietfa.amsl.com
Delivered-To: tzdist@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 54FC31A1A76 for <tzdist@ietfa.amsl.com>; Sat, 10 Jan 2015 17:33:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.198
X-Spam-Level:
X-Spam-Status: No, score=-1.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_NEUTRAL=0.779] autolearn=no
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 s_yrmp8tsPzV for <tzdist@ietfa.amsl.com>; Sat, 10 Jan 2015 17:33:33 -0800 (PST)
Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0D5BE1A1A72 for <tzdist@ietf.org>; Sat, 10 Jan 2015 17:33:33 -0800 (PST)
Received: by mail-qc0-f177.google.com with SMTP id x3so14053749qcv.8 for <tzdist@ietf.org>; Sat, 10 Jan 2015 17:33:32 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=YAgXsD4v46CW9nQKrv0zZe0rlcEStbupcb0gmf0fnHQ=; b=ZCEz2dUPjNY5N8wm8TiR7SQCX7BpK1S1gJz/OFQI9VIYytxGYZb8aZPlZou8kAqYwv JUOgEbYROIShb7v9Vj3W2lqR7C5in706V2vhIjs3bw9xS5IqnbhZnqy5TNbGvpQOLw6u VhWWbO1mpwymRhcqeoyoMtZi8YZUV5Bo4vE+rj/ToUiY97q0njUeORf1WMeUoJPEcUL6 GqNsrHWsYDqfwE6u7ShhNnMekTDIVeg3heBSoQD5sm+ZBYcygVbZSblnLzXSDcLHwWeq 5IAQ6ho8Gv8WII6VM/QdBNGOYyCK9nPF7QA9h//b/pXAf4CGtAW7Yiew25barP/uapAp mATw==
X-Gm-Message-State: ALoCoQky2rjZ86gjxUY3i4+OwDaRHlVwQctAsZjhAaTRjDxJ2Z66LcWyCN7Au2IhHL9Hto07gNqt
X-Received: by 10.140.83.163 with SMTP id j32mr36797898qgd.52.1420940012216; Sat, 10 Jan 2015 17:33:32 -0800 (PST)
Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com. [209.85.192.41]) by mx.google.com with ESMTPSA id e7sm11088167qag.49.2015.01.10.17.33.30 for <tzdist@ietf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 10 Jan 2015 17:33:30 -0800 (PST)
Received: by mail-qg0-f41.google.com with SMTP id e89so13772697qgf.0 for <tzdist@ietf.org>; Sat, 10 Jan 2015 17:33:30 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.224.114.81 with SMTP id d17mr28484193qaq.27.1420940010626; Sat, 10 Jan 2015 17:33:30 -0800 (PST)
Received: by 10.96.89.161 with HTTP; Sat, 10 Jan 2015 17:33:30 -0800 (PST)
In-Reply-To: <CADZyTkmTY4jUJeh2rWYzP6icwa8_x3GLZWmghZBcEJaOQN1=iw@mail.gmail.com>
References: <069.a9e77f1fcc6f2f4fb0da4bfcf8c8ce3e@tools.ietf.org> <084.7d365ee70e43c5dc81a46f17f2727d5f@tools.ietf.org> <5493093B.40700@andrew.cmu.edu> <CAJvZEYkRrRWTd96=LtcsY6fvsbDhaiC2YUuC=y3z-Qx0OECSYg@mail.gmail.com> <549328A4.6030209@lsces.co.uk> <CAKpxdwDFsa5=zt-TN8v1oFGmJdMp28Ocs_YDcH0NrosrSCVfGQ@mail.gmail.com> <54947499.401@cs.ucla.edu> <54953ED2.4040403@cisco.com> <CADZyTkmTY4jUJeh2rWYzP6icwa8_x3GLZWmghZBcEJaOQN1=iw@mail.gmail.com>
Date: Sat, 10 Jan 2015 20:33:30 -0500
Message-ID: <CAFpi07x+-hEwmFmvniqbOwrJ3NPwAKeDxifuRP7=G9HhL_kCKA@mail.gmail.com>
From: Tim Parenti <tim@timtimeonline.com>
To: Daniel Migault <mglt.ietf@gmail.com>, Cyrus Daboo <cyrus@daboo.name>
Content-Type: multipart/alternative; boundary=047d7bea3a3494a90b050c566054
Archived-At: <http://mailarchive.ietf.org/arch/msg/tzdist/bhjFPaReY4WuvuJSazMBMCx8j9w>
Cc: Time Zone Data Distribution Service <tzdist@ietf.org>, Matthew Bobowski <matthew.bobowski@welchallyn.com>, Eliot Lear <lear@cisco.com>, Paul Eggert <eggert@cs.ucla.edu>
Subject: Re: [Tzdist] [tzdist] #31 (service): Include leap seconds?
X-BeenThere: tzdist@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <tzdist.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tzdist>, <mailto:tzdist-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tzdist/>
List-Post: <mailto:tzdist@ietf.org>
List-Help: <mailto:tzdist-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tzdist>, <mailto:tzdist-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 11 Jan 2015 01:33:35 -0000

On 19 December 2014 at 12:23, Cyrus Daboo <cyrus@daboo.name> wrote:

> The alternative is to introduce a new JSON format for leapseconds that can
> be tailored for the exact schema we need:
>
> {
>  "start": "1972-01-01T00:00:00Z",
>  "end": "2015-06-28T00:00:01Z",
>  "changes":
>  [
>    {
>       "onset": "1972-01-01T00:00:00Z",
>       "offset": 10
>    },
>    {
>       "onset": "1972-07-01T00:00:00Z",
>       "offset": 1
>    },
>    ...
>    {
>       "onset": "2012-07-01T00:00:00Z",
>       "offset": 1,
>    }
>  ]
> }
>
> I think that is a little cleaner and it would avoid having to adapt the
> existing expand schema (and associated description). So I am going to
> propose we use a new JSON format for leapseconds (on the assumption that we
> can get quick consensus on that).
>

Has this been proposed?  On the call from 18 December 2014, I was in favor
of hanging this from /leapseconds with a new JSON format similar to our
expanded response for /zones/observances.  I don't think, however, that
offsets of ±1 are appropriate here, for two reasons:

   - /zones/observances refers to the offsets themselves and not changes in
   offset, and we should be consistent
   - truncated responses here would get a list of "1"s which doesn't
   provide the actual TAI–UTC value that might be more important to certain
   clients

So I think the values used here should be something like TAI–UTC values
instead.

On 23 December 2014 at 04:25, Daniel Migault <mglt.ietf@gmail.com> wrote:

> I am just wondering whether having a single spec for distributing leap
> seconds and tz would not require that format must be valid for leap second
> and tz. I have no idea whether it is an awful idea or not, but maybe we
> could work around this issue with a separate document for "adaptation of tz
> dist service for leap seconds", making these two services independent.  --
> of course it could also be a section in the current document.


In most cases, it seems the protocol will be far simpler if we keep zone
transitions as separate from leap second transitions as possible.  So I
think leap seconds can simply be a section of the current document,
especially if we decide we're not blocking on #34 (tz binary format).

Only because the "right" versions of the tz binary files combine these two
things will we have to decide how to handle this when addressing #34.

--
Tim Parenti