Re: Predictable Internet Time

Tony Finch <dot@dotat.at> Wed, 04 January 2017 00:00 UTC

Return-Path: <dot@dotat.at>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 68867129453 for <ietf@ietfa.amsl.com>; Tue, 3 Jan 2017 16:00:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.619
X-Spam-Level:
X-Spam-Status: No, score=-2.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=messagingengine.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 a1loPfU7HqRc for <ietf@ietfa.amsl.com>; Tue, 3 Jan 2017 16:00:22 -0800 (PST)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 556FB1270B4 for <ietf@ietf.org>; Tue, 3 Jan 2017 16:00:22 -0800 (PST)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9BFF420E50; Tue, 3 Jan 2017 19:00:21 -0500 (EST)
Received: from web1 ([10.202.2.211]) by compute4.internal (MEProxy); Tue, 03 Jan 2017 19:00:21 -0500
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=smtpout; bh=Nw sWEoXKXGbaA6IyCVzaA6M86j0=; b=A3Jpzn5J+awuQgHJGqYLnzAUjrOoaADVEV R8cbcKceKCUVEnJWXxGYlzDmqIPhqI9nSrRtnNU3UYUOfvtSgjr8xDTqpcZvCpEA 2BBOANgeNfQh+hRzhdOVFPlcDog9ZGwxKoR7QTBKqHz+2irQx05mgoqUMI15hfKu SF27Qp7co=
X-ME-Sender: <xms:FTtsWNfvKU3wQdepO5PYCt-gmxFDZriZJd4BoR4IBEfosWesHGQyGQ>
Received: by mailuser.nyi.internal (Postfix, from userid 99) id 666A0AA6C5; Tue, 3 Jan 2017 19:00:21 -0500 (EST)
Message-Id: <1483488021.1394874.836501673.12EE46CD@webmail.messagingengine.com>
From: Tony Finch <dot@dotat.at>
To: Joe Touch <touch@isi.edu>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: multipart/alternative; boundary="_----------=_148348802113948740"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-9c115fcf
In-Reply-To: <ad31b4f2-7104-d951-3f5b-81cbfc83b118@isi.edu>
References: <CAMm+LwgfQJ8aG5wB=d3fRbbeje3J9o7Z4_DCuP8DL88ouDeKzw@mail.gmail.com> <504e2cea0d1668c31486b05fec0a967a4446aefe@webmail.weijax.net> <CAMm+Lwi_jU6gjdtdM6a2n_9_89tUvWBNXxnMtSjTEA++h1D4Ew@mail.gmail.com> <e0a43370-751f-808c-3719-9716f9cd57d1@isi.edu> <alpine.DEB.2.11.1701031348430.7102@grey.csi.cam.ac.uk> <f94415b6-d9f7-0a03-cf5b-ce39c109aa71@isi.edu> <1483475689.1348946.836323865.09305276@webmail.messagingengine.com> <94226b19-4690-ee8e-526e-04cc54e97b8e@isi.edu> <1483482794.1375510.836410009.6D0F7910@webmail.messagingengine.com> <fef56705-3037-eb92-b804-4aa43326a654@isi.edu> <1483485260.1384841.836469129.669D4C7B@webmail.messagingengine.com> <ad31b4f2-7104-d951-3f5b-81cbfc83b118@isi.edu>
Date: Wed, 04 Jan 2017 00:00:21 +0000
Subject: Re: Predictable Internet Time
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/LFhjPrK2xk06MAzSA5FamSGjwDg>
Cc: Phillip Hallam-Baker <phill@hallambaker.com>, IETF Discussion Mailing List <ietf@ietf.org>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Jan 2017 00:00:24 -0000


Joe Touch <touch@isi.edu> wrote:

>

> The Posic spec describes how to convert seconds since epoch to UTC; it
> is that conversion where leap seconds come into play.



No, it describes the reverse, how to convert broken-down UTC time to
seconds since the epoch. It multiplies minutes by a fixed 60s, hours by
a fixed 3600s, and days by a fixed 86400s. The rest of the formula is
dealing with Gregorian dates. There is no allowance for leap seconds.


http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_16


> > But if the count of seconds includes the leap second, surely the

> > number representing the leap second could be printed properly
> > as :60 ?
>

> UTC defines it that way, so if you want to output the correct
> UTC value,
> that is the only solution.



UTC does not define a seconds count, it is specified in terms of broken-
down time only, so that doesn't really answer my question about why you
say a system can't print a :60 UTC time when you say it has a seconds
count which includes leap seconds.


There's also a relevant example in the NTP RFC



https://tools.ietf.org/html/rfc5905#page-14



1972-01-01 00:00:00 - MJD 41317 - NTP 2272060800



1999-12-31 00:00:00 - MJD 51543 - NTP 3155587200



51543 - 41317 == 10226



(3155587200 - 2272060800) / 86400 == 10226



[note integer MJD numbers are always midnight]



No leap seconds, because each one is forgotten by NTP when the leap
indicator bits are reset.


Tony.

--

f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/  -  I xn--
  zr8h punycode