Re: [Cbor] Encoding Arbitrary Time Ratios

Thiago Macieira <thiago.macieira@intel.com> Mon, 05 April 2021 23:49 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 CD9143A2D0B for <cbor@ietfa.amsl.com>; Mon, 5 Apr 2021 16:49:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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 sBUDIOFg9CKB for <cbor@ietfa.amsl.com>; Mon, 5 Apr 2021 16:49:01 -0700 (PDT)
Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 784113A2D19 for <cbor@ietf.org>; Mon, 5 Apr 2021 16:49:00 -0700 (PDT)
IronPort-SDR: 4NYKTozZ3ymc0QNSxVQvqlQuJSdGBN374Ev6qN/NWvpuFOXnyFplHQNwJp+fjozz6I3UVRbW1c wjMtdycdvKfg==
X-IronPort-AV: E=McAfee;i="6000,8403,9945"; a="254281422"
X-IronPort-AV: E=Sophos;i="5.81,308,1610438400"; d="scan'208";a="254281422"
Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2021 16:48:59 -0700
IronPort-SDR: XhNNxtmQkaa3m9ZmRh1CtC8XXTCsd9sryLsBf9Zp0Yo4KpsDg0hN1a82QWkojscQbFr1ikoBwz xxKnj8GWe53Q==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.81,308,1610438400"; d="scan'208";a="420940092"
Received: from irsmsx605.ger.corp.intel.com ([163.33.146.138]) by orsmga008.jf.intel.com with ESMTP; 05 Apr 2021 16:48:58 -0700
Received: from tjmaciei-mobl1.localnet (10.251.24.87) by IRSMSX605.ger.corp.intel.com (163.33.146.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 6 Apr 2021 00:48:57 +0100
From: Thiago Macieira <thiago.macieira@intel.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
CC: cbor@ietf.org
Date: Mon, 05 Apr 2021 16:48:51 -0700
Message-ID: <7356438.btiWBhuGgt@tjmaciei-mobl1>
Organization: Intel Corporation
In-Reply-To: <CAM70yxBJe32LT3dZ-NEC+-On1BEg0Sgbsa7A-1h+V0Q-jFe-Gg@mail.gmail.com>
References: <CAM70yxBF2XeewhsXOGv06kTVitz1kNHkYLHGqm3gX0Vyc2c2YA@mail.gmail.com> <2096114.vpHZ4K6Zy5@tjmaciei-mobl1> <CAM70yxBJe32LT3dZ-NEC+-On1BEg0Sgbsa7A-1h+V0Q-jFe-Gg@mail.gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
X-Originating-IP: [10.251.24.87]
X-ClientProxiedBy: orsmsx603.amr.corp.intel.com (10.22.229.16) To IRSMSX605.ger.corp.intel.com (163.33.146.138)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/GssDSkSjIjiJn7fd_HoFzian37U>
Subject: Re: [Cbor] Encoding Arbitrary Time Ratios
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: Mon, 05 Apr 2021 23:49:06 -0000

On Monday, 5 April 2021 16:39:28 PDT Emile Cormier wrote:
> Perhaps a key could be added in tag 1002 to indicate that the duration
> represents a time of day?

My motivation here is to represent the QTime class, which is a component of 
QDateTime, but not a very important motivation for me. We've been asked more 
than once to extend it to allow any duration, not just intra-day.

I'm happy with transferring QDateTime and QDate over a network.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering