Re: [Tzdist] Create and distribution process of events with TZ data.

Tim Parenti <tim@timtimeonline.com> Thu, 11 December 2014 19:55 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 B99AE1A1B51 for <tzdist@ietfa.amsl.com>; Thu, 11 Dec 2014 11:55:49 -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 Kow4W0CXePzQ for <tzdist@ietfa.amsl.com>; Thu, 11 Dec 2014 11:55:48 -0800 (PST)
Received: from mail-qa0-f41.google.com (mail-qa0-f41.google.com [209.85.216.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1800A1A00D1 for <tzdist@ietf.org>; Thu, 11 Dec 2014 11:55:48 -0800 (PST)
Received: by mail-qa0-f41.google.com with SMTP id f12so4197316qad.28 for <tzdist@ietf.org>; Thu, 11 Dec 2014 11:55:47 -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=XuyDD8euzuw1lF8fc+V9G8VEXCUy8PiGL//1ATVbwHE=; b=aHNv/sJUU2ImQm2dm2kas8PhYPQjXjPLj4kCJvNjGPkmqBQuCX4JTwgo/CgNWvYwb3 D3PjMZWGzlcLnddcOmHQ460+DQTNJPci9VCLrtZR22h/pAeMSalOhuXYoZ36EO/JnOW1 CBFklLhPy5URtUc/P8ZmJdVuoSoF8tGjd/bQJ9iw7812VHx7iTvFxb2C5l6q9Lqp4xDe eOeq8vwK3C8sdNFh9LtMDiPqYTYGF13TG1fmLs1MNvcwWcEqvn2y9WevVPSsvnAIPjHC PMk64p4LcA9jxbsbNF+YnMYgXTQc/yAxho+lt5OKTpmnM1MWjUMJkUoOxz9vo92adoOm X0uA==
X-Gm-Message-State: ALoCoQmuG9jf1jqWWMpqMduBxo9sclqG0HuxSmF402yQu2R5KlF+cWadFqll4bYIoau7AS0X/GeQ
X-Received: by 10.140.28.202 with SMTP id 68mr21443390qgz.63.1418327745756; Thu, 11 Dec 2014 11:55:45 -0800 (PST)
Received: from mail-qc0-f174.google.com (mail-qc0-f174.google.com. [209.85.216.174]) by mx.google.com with ESMTPSA id 9sm1959471qam.9.2014.12.11.11.55.44 for <tzdist@ietf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Dec 2014 11:55:44 -0800 (PST)
Received: by mail-qc0-f174.google.com with SMTP id c9so4437941qcz.5 for <tzdist@ietf.org>; Thu, 11 Dec 2014 11:55:44 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.140.85.104 with SMTP id m95mr21656574qgd.93.1418327744316; Thu, 11 Dec 2014 11:55:44 -0800 (PST)
Received: by 10.229.86.195 with HTTP; Thu, 11 Dec 2014 11:55:44 -0800 (PST)
In-Reply-To: <5489DB49.90309@lsces.co.uk>
References: <54888642.1030108@lsces.co.uk> <F2F4FB8F282334E543F462B5@caldav.corp.apple.com> <54889270.7040801@lsces.co.uk> <CADC+-gQTgF8HYKoO=vLrgC=5jWDQuOn9ZTrtLH4e7ABAgJqtEw@mail.gmail.com> <54889940.9000900@lsces.co.uk> <54889EC9.90500@gmail.com> <5489D56D.5010206@gmail.com> <5489DB49.90309@lsces.co.uk>
Date: Thu, 11 Dec 2014 14:55:44 -0500
Message-ID: <CAFpi07xLdvqpt=NX1Z+NTbyWzqNPm7LWH5XaB-65xo0_ZF-X+Q@mail.gmail.com>
From: Tim Parenti <tim@timtimeonline.com>
To: Lester Caine <lester@lsces.co.uk>
Content-Type: multipart/alternative; boundary="001a11c12566600e5c0509f62912"
Archived-At: http://mailarchive.ietf.org/arch/msg/tzdist/o8fIA7CRhZjQmCcJ1PbOTq-hKmw
Cc: Time Zone Data Distribution Service <tzdist@ietf.org>
Subject: Re: [Tzdist] Create and distribution process of events with TZ data.
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: Thu, 11 Dec 2014 19:55:50 -0000

On 11 December 2014 at 12:58, Lester Caine <lester@lsces.co.uk> wrote:

> one HAS to know what version was used to create the
> material being looked at.
>

If I recall correctly, it's been brought up repeatedly that one does not
have to know this specific information in order to detect changes.  At
minimum, to detect whether the timestamp you stored based on some version X
of the database is compatible with some version Y of the database (in
practice, a newer version), you, as a client, only need to store some
triple of data that both records the calculation made from version X and
allows the recalculation in version Y, so that a comparison can be made.

Mike Douglass' approach, outlined in
http://www.ietf.org/mail-archive/web/tzdist/current/msg01015.html, is for
this triple to contain UTC and local times (one calculated from the other
based on version X) and a tzid (to enable recalculation in version Y).
Another option would be to store the tzid alongside a calculated offset and
either UTC or local time.  From this information, you can determine the
rest as it was in version X, and compare it to version Y at will.

Yes, another possible triple would be to store UTC time, a tzid, and the
database version number X, but in order for the database version number to
be helpful (i.e., to calculate the local time as version X would convert
it), you also need to keep the data for version X around for any zone you
use, in addition to the current version Y that you're actually using.

Some of these approaches are more useful than others for different
applications, but I think that fits far better in a best practices document
than in the tzdist protocol.

That said, the tzdist protocol can help with these best practices in some
ways.  In particular, I think Paul's question of "I've got version tz2014a
of America/Los_Angeles; is that good enough?" is a useful one to be able to
answer.  (http://www.ietf.org/mail-archive/web/tzdist/current/msg01018.html)
 To ask this question, you only need to store one additional data point per
zone used, or ideally, one additional data point altogether.

--
Tim Parenti