From unknown Sat Jun 14 08:58:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35032: date ISO 8601 / RFC 3339 formats Resent-From: Nicolas Mailhot Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 28 Mar 2019 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35032 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 35032@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15537936536743 (code B ref -1); Thu, 28 Mar 2019 17:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Mar 2019 17:20:53 +0000 Received: from localhost ([127.0.0.1]:34599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Yhx-0001kh-CU for submit@debbugs.gnu.org; Thu, 28 Mar 2019 13:20:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Yhu-0001kU-Mh for submit@debbugs.gnu.org; Thu, 28 Mar 2019 13:20:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:34916) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h9Yhp-0003CN-Is for submit@debbugs.gnu.org; Thu, 28 Mar 2019 13:20:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9Yho-0008NN-CR for bug-coreutils@gnu.org; Thu, 28 Mar 2019 13:20:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9Yhn-0003Bi-73 for bug-coreutils@gnu.org; Thu, 28 Mar 2019 13:20:44 -0400 Received: from smtpoutz29.laposte.net ([194.117.213.104]:46466 helo=smtp.laposte.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h9Yhm-00033n-Kx for bug-coreutils@gnu.org; Thu, 28 Mar 2019 13:20:43 -0400 Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout017 (Postfix) with ESMTP id BFC48BC0462 for ; Thu, 28 Mar 2019 18:20:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1553793615; bh=hMH2F8XgJ+JV6TWZcGky+3JSv+3FoOpQF5NRcferAmQ=; h=Date:From:To:Subject; b=RKlxpxnwK1KYnf9h7NpRYs40y0+f1GnL80wgocXN2IveHXMqDefNANXdH74ORVr4z Tb97gi91a33LI+PcZuLJlFxohlAxO0k/mDZXsh9287dtbh0+XDsL1YBZpn6kigYPFC GAkL8SbqW6bBHCENXwjnXUfeDRCVZTw/w/C8563wxZY5li7A55ZiD1ltyxd4eXNh0/ 3ExCl1n+Nka+2fVLCSzKcHzAabJK8gBENX30PFBbbo/aApGd6numbfArS4ElWr/1As XkgM6ZCOYjTGxBgbmt9ntWVf8hSAiuKe1tCiNhCaFGNM7JHa5+fpfq6u1Ob70AlGOh FN5m9QlwnA0mg== Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout017 (Postfix) with ESMTP id B3515BC0471 for ; Thu, 28 Mar 2019 18:20:15 +0100 (CET) Received: from lpn-prd-vrin003 (lpn-prd-vrin003.laposte [10.128.63.4]) by lpn-prd-vrout017 (Postfix) with ESMTP id B18B3BC0462 for ; Thu, 28 Mar 2019 18:20:15 +0100 (CET) Received: from lpn-prd-vrin003 (localhost [127.0.0.1]) by lpn-prd-vrin003 (Postfix) with ESMTP id A1D214A7203 for ; Thu, 28 Mar 2019 18:20:15 +0100 (CET) Received: from arekh.ddns.net (82-64-49-105.subs.proxad.net [82.64.49.105]) by lpn-prd-vrin003 (Postfix) with ESMTPA id 8CECE4A720C for ; Thu, 28 Mar 2019 18:20:15 +0100 (CET) Received: from arekh.ddns.net (arekh.okg [192.168.0.4]) by arekh.ddns.net (Postfix) with ESMTPSA id 5A9FE220259 for ; Thu, 28 Mar 2019 18:20:14 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Thu, 28 Mar 2019 18:20:14 +0100 From: Nicolas Mailhot User-Agent: Roundcube Webmail/1.4-rc1 Message-ID: <768e80ffa047c0145a5326cee2e6da5d@laposte.net> X-Sender: nicolas.mailhot@laposte.net X-VR-FullState: 0 X-VR-Score: 0 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrgedutddrkeeggddutddvucetufdoteggodetrfdotffvucfrrhho X-VR-Cause-2: fhhilhgvmecunfetrffquffvgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpeggtgfgfffh X-VR-Cause-3: vffufgfkgiesthekjhdttderjeenucfhrhhomheppfhitgholhgrshcuofgrihhlhhhothcuoehnihgt X-VR-Cause-4: ohhlrghsrdhmrghilhhhohhtsehlrghpohhsthgvrdhnvghtqeenucffohhmrghinhepfiefrdhorhhg X-VR-Cause-5: necukfhppeekvddrieegrdegledruddtheenucfrrghrrghmpehmohguvgepshhmthhpohhuthdpihhn X-VR-Cause-6: vghtpeekvddrieegrdegledruddthedphhgvlhhopegrrhgvkhhhrdguughnshdrnhgvthdpmhgrihhl X-VR-Cause-7: fhhrohhmpehnihgtohhlrghsrdhmrghilhhhohhtsehlrghpohhsthgvrdhnvghtpdhrtghpthhtohep X-VR-Cause-8: sghughdqtghorhgvuhhtihhlshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-VR-AvState: No X-VR-State: 0 X-VR-State: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 194.117.213.104 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Hi A long, long time ago, in 1997, W3C looked at the monument ISO 8601 was,=20 and produced a simplified profile for mere mortals: https://www.w3.org/TR/NOTE-datetime It serves as formatting basis in XML, IJSON, etc Sometime later, in 2002, the IETF took this note, fleshed it out a=20 little, and produced RFC 3339 And then coreutils date took it all and grew the --iso-8601 and=20 --rfc-3339 Unfortunately, coreutils managed to make both of those incompatible with=20 the W3C iso-8601 profile lots of software languages use: 1. The W3C profile mandates T as time separator, and ":" as hour/minutes=20 separator 2. RFC 3339 makes both optional Then, logically, date removed the ":" for its --iso-8601 option, $ date --iso-8601=3Dseconds 2019-03-28T18:09:47+0100 and then removed T from its --rfc-3339 option $ date --rfc-3339=3Dseconds 2019-03-28 18:10:11+01:00 Graaa Would it be possible to make them both optional in --rfc-3339, and both=20 mandatory in --iso-8601 ? Or add a --w3c option that conforms to the W3C=20 profile? This is all so sad=E2=80=A6 Some languages like Go do no underst= and=20 neither of date's output, because they follow the W3C profile. Regards, --=20 Nicolas Mailhot From unknown Sat Jun 14 08:58:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35032: date ISO 8601 / RFC 3339 formats Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 28 Mar 2019 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35032 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Nicolas Mailhot , 35032@debbugs.gnu.org Received: via spool by 35032-submit@debbugs.gnu.org id=B35032.15537950328934 (code B ref 35032); Thu, 28 Mar 2019 17:44:02 +0000 Received: (at 35032) by debbugs.gnu.org; 28 Mar 2019 17:43:52 +0000 Received: from localhost ([127.0.0.1]:34620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Z4C-0002K2-Ex for submit@debbugs.gnu.org; Thu, 28 Mar 2019 13:43:52 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Z4A-0002Jn-C4 for 35032@debbugs.gnu.org; Thu, 28 Mar 2019 13:43:51 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B3CBF160F17; Thu, 28 Mar 2019 10:43:43 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Y7R1QAn7W3SW; Thu, 28 Mar 2019 10:43:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EBD03160F1A; Thu, 28 Mar 2019 10:43:42 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NifQ1AYXhLzb; Thu, 28 Mar 2019 10:43:42 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D10E9160A58; Thu, 28 Mar 2019 10:43:42 -0700 (PDT) References: <768e80ffa047c0145a5326cee2e6da5d@laposte.net> From: Paul Eggert Openpgp: preference=signencrypt Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= xsFNB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Jh+te38gTcISVr0G IPplLz6YhjrbHrPRF1CN5UuL9DBGjxuN35RLNVEfta6RUFlR6NctTjvrABEBAAHCwWUEGAEC AA8FAkyAcmQCGwwFCRLMAwAACgkQ7ZfpDmKqfjSrHA/+KzAKvTxRhA9MWNLxIyJ7S5uJ16gs T3oCjZrBKGEhKMOGX4O0GA6VOEryO7QRCCYah3oxSG38IAnNeiwJXgU9Bzkk85UGbPEd7HGF /VSeHCQwWou6jqUDTSDvn9YhNTdG0KXPM74aC+xr2Zow1O2mhXihgWKD0Dw+0LYPnUOsQ0KO FxHXXYHmRrS1OZPU59BLvc+TRhIhafSHKLwbXK+6ckkxBx6h8z5ccpG0Qs4bFhdFYnFrEieD LoGmnE2YLhdV6swJ9VNCS6pLiEohT3fm7aXm15tZOIyzMZhHRSAPblXxQ0ZSWjq8oRrcYNFx c4W1URpAkBCOYJoXvQfD5L3lqAl8TCqDUzYxhH/tJhbDdHrqHH767jaDaTB1+Talp/2AMKwc XNOdiklGxbmHVG6YGl6g8Lrbsu9NZEI4yLlHzuikthJWgz+3vZhVGyNlt+HNIoF6CjDL2omu 5cEq4RDHM44QqPk6l7O0pUvN1mT4B+S1b08RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b uNcby4U= Organization: UCLA Computer Science Department Message-ID: <17ba95ae-9969-1d01-be4b-bd670bf11412@cs.ucla.edu> Date: Thu, 28 Mar 2019 10:43:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <768e80ffa047c0145a5326cee2e6da5d@laposte.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 3/28/19 10:20 AM, Nicolas Mailhot wrote: > Would it be possible to make them both optional in --rfc-3339, and > both mandatory in --iso-8601 ? Sorry, I don't understand what you're proposing, specifically. Can you say exactly what you want, with specific calls to 'date' and what you want the output to look like, and why? From unknown Sat Jun 14 08:58:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35032: date ISO 8601 / RFC 3339 formats Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 28 Mar 2019 17:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35032 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Nicolas Mailhot , 35032@debbugs.gnu.org Received: via spool by 35032-submit@debbugs.gnu.org id=B35032.15537953099477 (code B ref 35032); Thu, 28 Mar 2019 17:49:02 +0000 Received: (at 35032) by debbugs.gnu.org; 28 Mar 2019 17:48:29 +0000 Received: from localhost ([127.0.0.1]:34630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Z8e-0002Si-R3 for submit@debbugs.gnu.org; Thu, 28 Mar 2019 13:48:29 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:44037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Z8c-0002SO-0c; Thu, 28 Mar 2019 13:48:26 -0400 Received: by mail-pl1-f173.google.com with SMTP id g12so5306498pll.11; Thu, 28 Mar 2019 10:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=oZ+TuOlSvpsXA+3tYm2xF6X+8KHq2txkko/tJW0EMXg=; b=BehZXAL18ImcJYISv/ZjMNBkgcG+D/80fR2bxzqsQCAZbwOGagaLt/FMDVNdQKChI0 Sbx+Y8WJ9jl/pc04DUGlmpDFWa9oYbMEYrEbCg+DB2t32+LI5R0/6n84pgACUURHpANz HGbbNwFMW6apnnPBQP1yBUStyoZQDBVsrfWGvm2m0N/2Z/ykWzEsuga5Tafjg37+0R0p ItM/yOYxffXEp/M3flaa3+yi2U8aBFmjP/f/tZALlrf9A1vRE4Nej+slnqdbs5EA1NMv 5Rf6mcSJQFXGxLJjLNQtNGTbuLhSMuFAQHZKhsJ109oL1GKAUtCGChu4q1VZrl4wmmuK 7rWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oZ+TuOlSvpsXA+3tYm2xF6X+8KHq2txkko/tJW0EMXg=; b=lFN51EWuK7sa/E+pRhJCpSRCgIZhNE0uV0Q0U1K6TYKLGK0CZIOOVBCO/VIqI+Q0By 1WrAdNqA9vgxh+pVoth0f7J/YW7sVto4V0BypNzguGasvDXgVjhBs8jwcuPH8R0UFLA3 jJ7NlephEgNKMPrt3PFrCxK5mqO2hzs1KHg16w8AFzBE5viMDc7xeOVaAqt1YPCipR9c pW6ACeth2FAvrbFv4mdQswsNu8pKHa4hiMtwy/9aQG88OqpwejmdReGcS4nbv3nYHjKQ FuppBpAnWtlRuiuyOgBxl7+sxj0j4iUWGjcEwVQlLvWNwBHiba1AnXASO9ay3jL24gE6 0eLg== X-Gm-Message-State: APjAAAXQZxmZS2IIfqcEfgl1Fn62gW/X4LBX/MAKHVWgPHsMkbrwzOHp +Wu3qkWl0vbHfPqQpkix6FFW1mlh X-Google-Smtp-Source: APXvYqx6o3ZV8xVmqfu5Ec211vmSUA1ih7aw4WvekxN/CNuVpyPBKv+6w0RNHbadxzhjbMcrBKIkEA== X-Received: by 2002:a17:902:6a83:: with SMTP id n3mr44102308plk.313.1553795299737; Thu, 28 Mar 2019 10:48:19 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id d3sm18091810pfn.113.2019.03.28.10.48.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 10:48:18 -0700 (PDT) References: <768e80ffa047c0145a5326cee2e6da5d@laposte.net> From: Assaf Gordon Message-ID: Date: Thu, 28 Mar 2019 11:48:17 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <768e80ffa047c0145a5326cee2e6da5d@laposte.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 35032 wishlist retitle 35032 date: adjust rfc8601/3339 formats to W3C standard stop On 2019-03-28 11:20 a.m., Nicolas Mailhot wrote: > Would it be possible to make them both optional in --rfc-3339, and both > mandatory in --iso-8601 ? Or add a --w3c option that conforms to the W3C > profile? This is all so sad… Some languages like Go do no understand > neither of date's output, because they follow the W3C profile. I'm marking this as a "wishlist" item. For reference, here are previously similar requests: https://bugs.gnu.org/6132 - date: --rfc-3339=TIMESPEC option doesn't print 'T' https://bugs.gnu.org/6453 - date -- Add new options for ISO 8601 date formats (-O) https://bugs.gnu.org/14097 - date: add parsing support for ISO 8601 basic format -assaf From unknown Sat Jun 14 08:58:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35032: date ISO 8601 / RFC 3339 formats Resent-From: Erik Auerswald Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 28 Mar 2019 21:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35032 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert Cc: 35032@debbugs.gnu.org, Nicolas Mailhot Received: via spool by 35032-submit@debbugs.gnu.org id=B35032.155380727927009 (code B ref 35032); Thu, 28 Mar 2019 21:08:02 +0000 Received: (at 35032) by debbugs.gnu.org; 28 Mar 2019 21:07:59 +0000 Received: from localhost ([127.0.0.1]:34803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9cFj-00071Z-Eq for submit@debbugs.gnu.org; Thu, 28 Mar 2019 17:07:59 -0400 Received: from mailgw1.uni-kl.de ([131.246.120.220]:52194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9cFh-00071M-4j for 35032@debbugs.gnu.org; Thu, 28 Mar 2019 17:07:57 -0400 Received: from sushi.unix-ag.uni-kl.de (sushi.unix-ag.uni-kl.de [IPv6:2001:638:208:ef34:0:ff:fe00:65]) by mailgw1.uni-kl.de (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id x2SL7iLB007773 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2019 22:07:44 +0100 Received: from sushi.unix-ag.uni-kl.de (ip6-localhost [IPv6:::1]) by sushi.unix-ag.uni-kl.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id x2SL7i1A030881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 28 Mar 2019 22:07:44 +0100 Received: (from auerswal@localhost) by sushi.unix-ag.uni-kl.de (8.14.4/8.14.4/Submit) id x2SL7hTB030880; Thu, 28 Mar 2019 22:07:43 +0100 Date: Thu, 28 Mar 2019 22:07:43 +0100 From: Erik Auerswald Message-ID: <20190328210743.GB29811@unix-ag.uni-kl.de> References: <768e80ffa047c0145a5326cee2e6da5d@laposte.net> <17ba95ae-9969-1d01-be4b-bd670bf11412@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <17ba95ae-9969-1d01-be4b-bd670bf11412@cs.ucla.edu> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, hits=-1, tests=ALL_TRUSTED=-1 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, On Thu, Mar 28, 2019 at 10:43:42AM -0700, Paul Eggert wrote: > On 3/28/19 10:20 AM, Nicolas Mailhot wrote: > > Would it be possible to make them both optional in --rfc-3339, and > > both mandatory in --iso-8601 ? > > Sorry, I don't understand what you're proposing, specifically. Can you > say exactly what you want, with specific calls to 'date' and what you > want the output to look like, and why? Sadly, you stripped too much of the original mail. I'll repeat the relevant parts of that mail: On Thu, Mar 28, 2019 at 06:20:14PM +0100, Nicolas Mailhot wrote: > A long, long time ago, [...] > Unfortunately, coreutils managed to make both of those incompatible > with the W3C iso-8601 profile lots of software languages use: > > 1. The W3C profile mandates T as time separator, and ":" as > hour/minutes separator > 2. RFC 3339 makes both optional > > Then, logically, date removed the ":" for its --iso-8601 option, > $ date --iso-8601=seconds > 2019-03-28T18:09:47+0100 ^^ there should be a ':' for W3C compatibility > and then removed T from its --rfc-3339 option > $ date --rfc-3339=seconds > 2019-03-28 18:10:11+01:00 ^ there should be a 'T' for W3C compatibility > [...] Nicolas asks for an ISO 8601 compatible format using both a 'T' as separator between date and time, and a ':' as separator between hours and minutes in the timezone designator, as well as the other contents that are identical in --iso-8601 and --rfc-3339. >From looking at https://www.w3.org/TR/NOTE-datetime, the important part is using both 'T' and a TZD with ':' in the middle, the other variability (e.g. minutes, seconds, fractional seconds as decimals) can be chosen as fits. Thanks, Erik -- I do like the 24 hour a day development process. I can describe a problem, go to sleep, and have the answer in my mailbox with my first cup of coffee. -- Dave Täht From unknown Sat Jun 14 08:58:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35032: date ISO 8601 / RFC 3339 formats Resent-From: Nicolas Mailhot Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 29 Mar 2019 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35032 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Erik Auerswald , Paul Eggert Cc: 35032@debbugs.gnu.org Received: via spool by 35032-submit@debbugs.gnu.org id=B35032.155384998123271 (code B ref 35032); Fri, 29 Mar 2019 09:00:02 +0000 Received: (at 35032) by debbugs.gnu.org; 29 Mar 2019 08:59:41 +0000 Received: from localhost ([127.0.0.1]:35046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9nMT-00063H-Df for submit@debbugs.gnu.org; Fri, 29 Mar 2019 04:59:41 -0400 Received: from smtpoutz27.laposte.net ([194.117.213.102]:37854 helo=smtp.laposte.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9nMQ-000637-BH for 35032@debbugs.gnu.org; Fri, 29 Mar 2019 04:59:40 -0400 Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout015 (Postfix) with ESMTP id D3FE1276627 for <35032@debbugs.gnu.org>; Fri, 29 Mar 2019 09:59:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1553849976; bh=YayRNlHQc0qyCsyMdiATAbEe46TUMdQ0o4bhSrkv2rw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Haya7yxKGb0t8b9jWqDr3Yz1GCnvklsMMe8u+bLNhHmm8KBoe5fz2a0uwgl+Jl+KN vH2hAnIGsB8OoB3Y6v5aHEDsDflDbfLnTaeCn5Yqko/4ivCGt3oFCPSF/MxaaDKMqG zpD3/AMxE5hyYj6L0jcXIAgoWYyFqAbhmCCSQv73ekmMOa0o+0ONGfAT5vLdrjzLOf r6+2itTX8DcPOrwmNRZLCQkrNh0HE36bzW4/otb3wEBGcHDBVoYWxu5HBg6+RolyLT ETQrTDfRZxwGfnMGoqXdRXVUE0KYcXnKR8y+Tl/ybIRCCYnzsMJAJLwKtP/0rY4WRx obcHlrlAOVhZQ== Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout015 (Postfix) with ESMTP id C43DD276B28 for <35032@debbugs.gnu.org>; Fri, 29 Mar 2019 09:59:36 +0100 (CET) Received: from lpn-prd-vrin003 (lpn-prd-vrin003.prosodie [10.128.63.4]) by lpn-prd-vrout015 (Postfix) with ESMTP id BF32A276627 for <35032@debbugs.gnu.org>; Fri, 29 Mar 2019 09:59:36 +0100 (CET) Received: from lpn-prd-vrin003 (localhost [127.0.0.1]) by lpn-prd-vrin003 (Postfix) with ESMTP id B11C34A720D for <35032@debbugs.gnu.org>; Fri, 29 Mar 2019 09:59:36 +0100 (CET) Received: from arekh.ddns.net (82-64-49-105.subs.proxad.net [82.64.49.105]) by lpn-prd-vrin003 (Postfix) with ESMTPA id 739064A71EF; Fri, 29 Mar 2019 09:59:36 +0100 (CET) Received: from cerebro.okg (box.okg [192.168.0.1]) by arekh.ddns.net (Postfix) with ESMTPSA id 6583C2203AC; Fri, 29 Mar 2019 09:59:34 +0100 (CET) Message-ID: <513c33d1232cbe880cdd46c9b96b80440b4d7111.camel@laposte.net> From: Nicolas Mailhot Date: Fri, 29 Mar 2019 09:59:33 +0100 In-Reply-To: <20190328210743.GB29811@unix-ag.uni-kl.de> References: <768e80ffa047c0145a5326cee2e6da5d@laposte.net> <17ba95ae-9969-1d01-be4b-bd670bf11412@cs.ucla.edu> <20190328210743.GB29811@unix-ag.uni-kl.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.0 (3.32.0-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-VR-FullState: 0 X-VR-Score: -100 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrgedutddrkeehgdduvdduucetufdoteggodetrfdotffvucfrrhho X-VR-Cause-2: fhhilhgvmecunfetrffquffvgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhht X-VR-Cause-3: shculddquddttddmnecujfgurhepkffuhffvffgjfhgtfggggfesthekredttderjeenucfhrhhomhep X-VR-Cause-4: pfhitgholhgrshcuofgrihhlhhhothcuoehnihgtohhlrghsrdhmrghilhhhohhtsehlrghpohhsthgv X-VR-Cause-5: rdhnvghtqeenucffohhmrghinhepfiefrdhorhhgnecukfhppeekvddrieegrdegledruddtheenucfr X-VR-Cause-6: rghrrghmpehmohguvgepshhmthhpohhuthdpihhnvghtpeekvddrieegrdegledruddthedphhgvlhho X-VR-Cause-7: pegrrhgvkhhhrdguughnshdrnhgvthdpmhgrihhlfhhrohhmpehnihgtohhlrghsrdhmrghilhhhohht X-VR-Cause-8: sehlrghpohhsthgvrdhnvghtpdhrtghpthhtohepvghgghgvrhhtsegtshdruhgtlhgrrdgvughupdhr X-VR-Cause-9: tghpthhtohepfeehtdefvdesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegruhgvrhhs X-VR-Cause-10: figrlhesuhhnihigqdgrghdruhhnihdqkhhlrdguvgenucevlhhushhtvghrufhiiigvpedt X-VR-AvState: No X-VR-State: 0 X-VR-State: 0 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Le jeudi 28 mars 2019 à 22:07 +0100, Erik Auerswald a écrit : > > > 1. The W3C profile mandates T as time separator, and ":" as > > hour/minutes separator > > 2. RFC 3339 makes both optional > > > > Then, logically, date removed the ":" for its --iso-8601 option, > > $ date --iso-8601=seconds > > 2019-03-28T18:09:47+0100 > ^^ > there should be a ':' for W3C compatibility > > > and then removed T from its --rfc-3339 option > > $ date --rfc-3339=seconds > > 2019-03-28 18:10:11+01:00 > ^ > there should be a 'T' for W3C compatibility > > > [...] > > Nicolas asks for an ISO 8601 compatible format using both a 'T' as > separator between date and time, and a ':' as separator between hours > and minutes in the timezone designator, as well as the other contents > that are identical in --iso-8601 and --rfc-3339. > > From looking at https://www.w3.org/TR/NOTE-datetime, the important > part > is using both 'T' and a TZD with ':' in the middle, the other > variability > (e.g. minutes, seconds, fractional seconds as decimals) can be chosen > as fits. And, testing some more, on, a system with a more recent version of coreutils, that I had no access to yesterday: date --iso-8601=seconds had its output changed 2019-03-29T09:54:41+01:00 Which is W3C compliant. So it seems someone already reported the problem in the past, and it has already been fixed. A lot of thanks to the person who did the fix and the person who reported the problem before me, whoever they are. And thanks to Eric for clarifying my report The bug can be closed. Regards, -- Nicolas Mailhot From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 11:22:17 2020 Received: (at control) by debbugs.gnu.org; 20 Feb 2020 16:22:18 +0000 Received: from localhost ([127.0.0.1]:45689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4oaf-0004Hp-MZ for submit@debbugs.gnu.org; Thu, 20 Feb 2020 11:22:17 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4oad-0004Hb-Lk for control@debbugs.gnu.org; Thu, 20 Feb 2020 11:22:16 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3355E16008A for ; Thu, 20 Feb 2020 08:22:09 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ZUOOMkHJtkBg for ; Thu, 20 Feb 2020 08:22:08 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 98D79160091 for ; Thu, 20 Feb 2020 08:22:08 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id l3SWhsz08PSf for ; Thu, 20 Feb 2020 08:22:08 -0800 (PST) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7721716008A for ; Thu, 20 Feb 2020 08:22:08 -0800 (PST) To: control@debbugs.gnu.org From: Paul Eggert Subject: merge a couple of 'date' bugs and mark them as not bugs Organization: UCLA Computer Science Department Message-ID: <6dccb217-cd4c-9bb8-2f59-1e86252a15c8@cs.ucla.edu> Date: Thu, 20 Feb 2020 08:22:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) severity 6132 normal merge 6132 39693 tags 6132 notabug close 35032