Re: [art] [saag] Date formats: RFC3339 vs. RFC 5322

Nico Williams <nico@cryptonector.com> Tue, 13 April 2021 19:05 UTC

Return-Path: <nico@cryptonector.com>
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 5E5E73A2369; Tue, 13 Apr 2021 12:05:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.118
X-Spam-Level:
X-Spam-Status: No, score=-2.118 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, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 (1024-bit key) header.d=cryptonector.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 0xzrtxg6UyQd; Tue, 13 Apr 2021 12:05:22 -0700 (PDT)
Received: from flamingo.apple.relay.mailchannels.net (flamingo.apple.relay.mailchannels.net [23.83.208.60]) (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 6B0A23A2422; Tue, 13 Apr 2021 12:05:11 -0700 (PDT)
X-Sender-Id: dreamhost|x-authsender|nico@cryptonector.com
Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8DD26781F3F; Tue, 13 Apr 2021 19:05:09 +0000 (UTC)
Received: from pdx1-sub0-mail-a57.g.dreamhost.com (100-96-16-43.trex.outbound.svc.cluster.local [100.96.16.43]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 08016781D38; Tue, 13 Apr 2021 19:05:09 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|nico@cryptonector.com
Received: from pdx1-sub0-mail-a57.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.43 (trex/6.1.1); Tue, 13 Apr 2021 19:05:09 +0000
X-MC-Relay: Good
X-MailChannels-SenderId: dreamhost|x-authsender|nico@cryptonector.com
X-MailChannels-Auth-Id: dreamhost
X-Decisive-Lonely: 339d62ba5c2fdf5e_1618340709335_1749551692
X-MC-Loop-Signature: 1618340709335:650591063
X-MC-Ingress-Time: 1618340709334
Received: from pdx1-sub0-mail-a57.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a57.g.dreamhost.com (Postfix) with ESMTP id AC3E388834; Tue, 13 Apr 2021 12:05:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=ZKSojTMm/PHOi9 /kqdwWk+GTITQ=; b=WY9XpCOcDbmwVJVUo/hRIpGGQl0ZgqZAyON6LgghVkteCM 6lmGQI2+ELxpTE5YWfPtYvcZtpYrqWDFF/rKi7E2I0383UHprs3HZO9qshZrSGGr PYI+8trsH0gTCp3SrKReY9IjRZgqY/MaG3VpgFK2HgKudzkTdzwe326dvCuIE=
Received: from localhost (unknown [24.28.108.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by pdx1-sub0-mail-a57.g.dreamhost.com (Postfix) with ESMTPSA id 1075B88849; Tue, 13 Apr 2021 12:05:06 -0700 (PDT)
Date: Tue, 13 Apr 2021 14:05:04 -0500
X-DH-BACKEND: pdx1-sub0-mail-a57
From: Nico Williams <nico@cryptonector.com>
To: Yakov Shafranovich <yakov@nightwatchcybersecurity.com>
Cc: saag@ietf.org, art@ietf.org
Message-ID: <20210413190503.GJ9612@localhost>
References: <CAAyEnSMBdXCA0EvgR79P_1gi15pAPfeyu_HgGqgMjWxRP8sxKg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CAAyEnSMBdXCA0EvgR79P_1gi15pAPfeyu_HgGqgMjWxRP8sxKg@mail.gmail.com>
User-Agent: Mutt/1.9.4 (2018-02-28)
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/bcE2E_y6cIFVY-EItNBOascdQMY>
Subject: Re: [art] [saag] Date formats: RFC3339 vs. RFC 5322
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 13 Apr 2021 19:05:27 -0000

On Tue, Apr 13, 2021 at 02:43:36PM -0400, Yakov Shafranovich wrote:
> Is there a preference for Internet drafts/RFCs regarding the specific
> data/time format to be used?
> 
> Right now we are referencing RFC 5322, but there has been feedback
> from multiple people that the ISO 8601 format is easier to parse. This
> is in regards to the section 3.5.5 of "draft-foudil-securitytxt-11"
> that I am working on:
> https://tools.ietf.org/html/draft-foudil-securitytxt-11#section-3.5.4
> 
> The options I am asking about are the following:
> - RFC 3339 (a profile of ISO 8601)
> Example: 2021-04-13T06:50:53-07:00
> 
> - RFC 5322, section 3.3
> Example: Tue, 13 Apr 2021 06:50:53 -0700

My very strong preference is for ISO 8601 format dates on account of:

 - it sorts semantically correctly when sorting alphabetically (when
   using Zulu time)

 - anyone can read and write ISO 8601 format dates, and it's easy to
   memorize -- this is not true of any other format

I would further suggest that timezone information for this purpose is
not very useful in this context, and that always using Zulu time would
be best.

Nico
--