Re: [Cbor] draft-bormann-cbor-time-tag: POSIX and UTC are not the same

Emile Cormier <emile.cormier.jr@gmail.com> Sat, 03 April 2021 19:16 UTC

Return-Path: <emile.cormier.jr@gmail.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A30C63A10AA for <cbor@ietfa.amsl.com>; Sat, 3 Apr 2021 12:16:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, 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 hYQPyQVkFI_R for <cbor@ietfa.amsl.com>; Sat, 3 Apr 2021 12:16:27 -0700 (PDT)
Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (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 619823A10B7 for <cbor@ietf.org>; Sat, 3 Apr 2021 12:16:25 -0700 (PDT)
Received: by mail-pj1-x1034.google.com with SMTP id s21so4169908pjq.1 for <cbor@ietf.org>; Sat, 03 Apr 2021 12:16:25 -0700 (PDT)
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=LwzLjCUxAn/lr6Mt3trSO24RBsysaVFFHMsRU+eC7yY=; b=iTTc68ZiY13nyjaAyu0rSAxHyvS1PTMXsGE/K3U76MJxrK60SwqL/sNdamAr5k1jXp A/v7uG5YgVixl6TkKawdZ1MTHZsdAmAnazMvb56szngi3SYr1zUCs9+asCYiuIV1gPtk EdFGVsqh62aJd3iafW3/26ciJc0aOeOKJKOBvu/U3JcitwfT8pGN9/Q0BkcgoPvHCsem vHrsdpRoaB0EdSVrFC5zNEa1U6Fzhgz/xitg/CdnVoqsS1XevJWxfHIe5FbuWi1cJe1T qbZvYVU3nP8SH9I7lqkwLAbJAxPQLONzWqsy2iGuhjO3UPIYSgkI/nU+bwOGyepyy5TD Itzg==
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=LwzLjCUxAn/lr6Mt3trSO24RBsysaVFFHMsRU+eC7yY=; b=o1cPeZjK+KWF6oIfGZvrvdUNiHdu51B0RkSHu3HVvF77FIpm42nt7uEWwcsFghB7VC 0QLGxCkyqnlseEv7l8VIzizBgBcnhiRKORHVVCi0w3h7O0EAs40xt/KwkpRa8LyvACQP 5kyU+tP8nyBcpHwK9Yhin9Ec9W3uVs8nsLrZqb1hMFNNz2hMdjPUatmXC2jryE51uBKf JpdayqeG6g1d6GYMZIR9b41JAS9Yt7b7aXTx5PuxRdAnv/jyeYWQyQkcAb/7ZrkUe3vo A1lR9XNrxLQpBHfM1a+2RL4kX8PYrV6GZFNpDe0nxh8A/VHv3sFpzxKQA/1Wj0C4cokb E9Ww==
X-Gm-Message-State: AOAM532b2dH0tuJHtXSnNvAY+jxzEfUSOOgeiq5bQaUUFGX1YkRBKQKF UTsxfxgcRMU7EC24S5fwhMONAOmkXlOi95/gQrVme3GwdoSMvA==
X-Google-Smtp-Source: ABdhPJwT92FcvkfjTeCzAssrIcSwIRs0meUXvMuGKI9SBv1+NNAEhOmJaw3v+2HrPYsc+qcyAK1jJ+aocZgCMaZAgUM=
X-Received: by 2002:a17:902:c104:b029:e7:3268:6eb9 with SMTP id 4-20020a170902c104b02900e732686eb9mr17832033pli.32.1617477384021; Sat, 03 Apr 2021 12:16:24 -0700 (PDT)
MIME-Version: 1.0
References: <CAM70yxBO8Rr4Fd2GBD4-K=8DY7oCefYLL=61_piLwJ8Wj=Dxww@mail.gmail.com> <DDDC5DCF-A757-43BB-BD0C-E38617320601@tzi.org>
In-Reply-To: <DDDC5DCF-A757-43BB-BD0C-E38617320601@tzi.org>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Sat, 03 Apr 2021 16:16:13 -0300
Message-ID: <CAM70yxA80BBGDR=Rf_rrLPNEvX9BsjhKvp2JZPE-J_aGY54c_w@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000e828ae05bf164c78"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/yHVIbI22D2twB85mfZ_Zv5sFTbw>
Subject: Re: [Cbor] draft-bormann-cbor-time-tag: POSIX and UTC are not the same
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Apr 2021 19:16:38 -0000

On Sat, Apr 3, 2021 at 4:34 AM Carsten Bormann <cabo@tzi.org> wrote:

>
> TAI, GPS are true monotonic time scales.  Leap seconds have no influence
> on them (what cppreference calls “including leap seconds”).
> As C++ utc_clock "includes leap seconds”, it appears to be a TAI
> referenced time scale (with a constant offset of 10 seconds from TAI).
>
>
Ah yes, the C++ utc_clock having a constant offset from TAI makes sense to
me now. This was the piece of the puzzle that my brain was missing. :-)

The C++ tai_clock ticks do indeed have a constant 10 second offset from
utc_clock ticks (ignoring epoch starting moments) as shown here:
https://github.com/HowardHinnant/date/blob/77bd6b92a4f7f6a1bbbc44952e6502a3448376b0/include/date/tz.h#L2084

Note that HowardHinnant/date was the incubator project that lead to the
enhanced date/time facilities in C++20.

Thank you bearing with me as I grappled to understand this.