Re: [Cbor] draft-ietf-cbor-date-tag-02 - handling of time zone offsets

Thiago Macieira <thiago.macieira@intel.com> Wed, 01 July 2020 22:44 UTC

Return-Path: <thiago.macieira@intel.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 2ED353A0EA8 for <cbor@ietfa.amsl.com>; Wed, 1 Jul 2020 15:44:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 CD24AY-ggcUD for <cbor@ietfa.amsl.com>; Wed, 1 Jul 2020 15:44:29 -0700 (PDT)
Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1A3D13A0E9D for <cbor@ietf.org>; Wed, 1 Jul 2020 15:44:28 -0700 (PDT)
IronPort-SDR: qeDUOoFUqMATDIr6HXzP8eIPS2GnR1IJ/vl2cj3m92bL012n+tXYvx/Hl3TD19ddXZJMMNJP9T NHltLt4kfrfA==
X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="164772186"
X-IronPort-AV: E=Sophos;i="5.75,302,1589266800"; d="scan'208";a="164772186"
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 15:44:28 -0700
IronPort-SDR: iapR//izinrjnUEFH3+UGi9Bl6/2M9VnD2rv3HPBBaWQqLldRfpJpYkq5bfUar3hNHzjKk5PuZ NzXYWWnNi4yw==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.75,302,1589266800"; d="scan'208";a="425742291"
Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by orsmga004.jf.intel.com with ESMTP; 01 Jul 2020 15:44:27 -0700
Received: from tjmaciei-mobl1.localnet (10.255.231.158) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Jul 2020 15:44:27 -0700
From: Thiago Macieira <thiago.macieira@intel.com>
To: cbor@ietf.org
Date: Wed, 01 Jul 2020 15:44:21 -0700
Message-ID: <1706672.Z9AvMLu6bI@tjmaciei-mobl1>
Organization: Intel Corporation
In-Reply-To: <04FEC6E5-F8E9-472D-A4D6-71C6C00D79E6@tzi.org>
References: <20200701072123.hnyhzemagtotnuyl@anna.jacobs.jacobs-university.de> <5244.1593618673@localhost> <04FEC6E5-F8E9-472D-A4D6-71C6C00D79E6@tzi.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Originating-IP: [10.255.231.158]
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/HiN5EhHTf530J7SQ90nKJX5_7Tw>
Subject: Re: [Cbor] draft-ietf-cbor-date-tag-02 - handling of time zone offsets
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: Wed, 01 Jul 2020 22:44:30 -0000

On Wednesday, 1 July 2020 09:23:30 PDT Carsten Bormann wrote:
> I’m citing this as an example where a calendar date was chosen entirely by
> fiat, not based on the exact time of the actual event as adjusted for a
> specific place/time zone.  It does make sense to separate calendar dates
> from day-length periods anchored on a time scale, and this document is
> about representing calendar dates in CBOR.

What we need is a way to represent dates with and without a timezone 
information. If a timezone is absent, it needs to be inferred from context, 
such as birthdays as discussed, and is usually interpreted as local time.

Unix Timestamps have implied UTC (suitably un-corrected for leap seconds, 
whatever) and RFC 3339 or ISO 8601 timestamps have a way of representing a 
timezone or its absence, including dates without time.

Can you explain why we need these two new tags? Why doesn't it suffice to use 
tags 0 and 1? It is possible to use a date without a time with tag 0, after 
all.

I also question assigning a low tag number for the number-of-days-since-1970. 
That's not standardising existing practice, it's inventing a new format.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products