Re: [art] Predictable Internet Time

Joe Touch <touch@isi.edu> Wed, 29 March 2017 16:16 UTC

Return-Path: <touch@isi.edu>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A33011243F3 for <art@ietfa.amsl.com>; Wed, 29 Mar 2017 09:16:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level:
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=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 ONbkhjjfdJQo for <art@ietfa.amsl.com>; Wed, 29 Mar 2017 09:16:49 -0700 (PDT)
Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) (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 0FFB612778E for <art@ietf.org>; Wed, 29 Mar 2017 09:16:47 -0700 (PDT)
Received: from [192.168.1.189] (cpe-172-250-240-132.socal.res.rr.com [172.250.240.132]) (authenticated bits=0) by boreas.isi.edu (8.13.8/8.13.8) with ESMTP id v2TGGMf0029797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 29 Mar 2017 09:16:23 -0700 (PDT)
To: Philip Homburg <pch-ietf-art@u-1.phicoh.com>, art@ietf.org
References: <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> <f9429571-b9d5-75d4-9b46-b877a189a7bf@gmail.com> <20170328173916.GE7490@localhost> <e73d5c15-1ba3-8162-f7df-555e2e8588a6@isi.edu> <20170328224041.GJ7490@localhost> <9ddcde60-a915-a03d-dfc3-2c2c451c398c@isi.edu> <20170329000601.GK7490@localhost> <96ad09b7-7dc2-20e8-2aa4-793310d184f6@isi.edu> <20170329015811.GL7490@localhost> <111c86bc-c2c5-5050-edc0-82e40d36c570@isi.edu> <m1ctEy7-0000G9C@stereo.hq.phicoh.net> <70bae467-8636-379c-7452-21cacf03215f@isi.edu> <m1ctFHX-0000HSC@stereo.hq.phicoh.net> <37dae716-fb6b-a933-d1fa-0a875ab66408@isi.edu> <m1ctGC5-0000HWC@stereo.hq.phicoh.net>
From: Joe Touch <touch@isi.edu>
Message-ID: <3182b82f-66e6-26c9-026f-af008e3080e0@isi.edu>
Date: Wed, 29 Mar 2017 09:16:21 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <m1ctGC5-0000HWC@stereo.hq.phicoh.net>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
X-ISI-4-43-8-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/ar0NeyhlYBKvoGmrqn0rmgcSHAg>
Subject: Re: [art] Predictable Internet Time
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Mar 2017 16:16:51 -0000


On 3/29/2017 9:11 AM, Philip Homburg wrote:
>>> Every time_t value has a specific interpretation as a UTC timestamp.
>> There is an intended correlation between Unix dates and UTC dates, but
>> it isn't exact - the equation is indicated as approximate.
> Quoting the opengroup docs, and this is the last thing I will say
> about POSIX time:

We've all been referring to this.

The problem is that POSIX never defines second, and that this entire
paragraph starts with "a value that approximates".
It also refers to "a Coordinated Universal Time name", that's a data
structure, not an assurance that seconds since epoch actually
synchronizes to UTC.

Joe

> "4.16 Seconds Since the Epoch
> "
> "A value that approximates the number of seconds that have elapsed since the Epoch. A Coordinated Universal Time name (specified in terms of seconds (tm_sec), minutes (tm_min), hours (tm_hour), days since January 1 of the year (tm_yday), and calendar year minus 1900 (tm_year)) is related to a time represented as seconds since the Epoch, according to the expression below.
> "
> "If the year is <1970 or the value is negative, the relationship is undefined. If the year is >=1970 and the value is non-negative, the value is related to a Coordinated Universal Time name according to the C-language expression, where tm_sec, tm_min, tm_hour, tm_yday, and tm_year are all integer types:
> "
> "tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 +
> "    (tm_year-70)*31536000 + ((tm_year-69)/4)*86400 -
> "    ((tm_year-1)/100)*86400 + ((tm_year+299)/400)*86400
>
> Feel free to define POSIX time as you wish. This what the opengroup says
> about it.
>