From unknown Sat Aug 16 21:01:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59827: [PATCH] info date to be explicit about the date formats Resent-From: Marc Chantreux Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 04 Dec 2022 23:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59827 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: patch To: 59827@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167019586216241 (code B ref -1); Sun, 04 Dec 2022 23:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Dec 2022 23:17:42 +0000 Received: from localhost ([127.0.0.1]:60378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1yEv-0004Dn-0Q for submit@debbugs.gnu.org; Sun, 04 Dec 2022 18:17:41 -0500 Received: from lists.gnu.org ([209.51.188.17]:33564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1wCQ-0000Ov-KR for submit@debbugs.gnu.org; Sun, 04 Dec 2022 16:07:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1wCQ-0001x8-BQ for bug-coreutils@gnu.org; Sun, 04 Dec 2022 16:06:58 -0500 Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1wCN-0008Ck-Gz for bug-coreutils@gnu.org; Sun, 04 Dec 2022 16:06:58 -0500 Received: from zmtaauth02.partage.renater.fr (zmtaauth02.partage.renater.fr [194.254.241.25]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 02CECBFABE for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) Received: from zmtaauth02.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPS id EE315A0011 for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTP id DD32FA00C6 for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth02.partage.renater.fr DD32FA00C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1670188008; bh=8B1eXxtgigJ9q9kLgJmoDeZjtvZ6IFgJWbESI/Xojhw=; h=Date:From:To:Message-ID:MIME-Version; b=fwz3HvtpJGxxgUJeDHlpsBDmQr375hM9KBSPF0RNPDPHxCXoukej1ATqdTWqlZdkF EoB4E6hohqW8QPIz1jtr/8ao1hnqfYlOqdaqBFR8mBBIutQxVdb+WL482lJ/xh4sPW +TP6EkzEWbJuLCwL5FcL8erumiUHTfPglh7Ur6aFE+Z7lYS4JmGddHlW3Uu9dbkhwF xcyyXHYWXrGcwbVDLFRoD+eqJMdAI+TJM8MUzLhCrHbJ+WS+CiELXu71DIaow78JNf Yp7Ha+PLU3vldW51suwA/4AlCvWxwbG6COvTEsmPi+UKt5VPxs5IBUDaCvpwJrUil/ CxvH8ip4pXdrA== Received: from zmtaauth02.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth02.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 664OugMSLNtK for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) Received: from 82.65.50.238 (unknown [194.254.241.249]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPA id 969FDA0011 for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) Date: Sun, 4 Dec 2022 22:06:48 +0100 From: Marc Chantreux Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: clamav-milter 0.103.6 at clamav01 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: 0 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvgddugeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttddtvdenucfhrhhomhepofgrrhgtucevhhgrnhhtrhgvuhiguceomhgtsehunhhishhtrhgrrdhfrheqnecuggftrfgrthhtvghrnhepvdehudejheeuhfdtfeekgeehffetgfelgeehtdehgfetjeejjeetgefggeejleelnecukfhppeduleegrddvheegrddvgedurddvgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdegledphhgvlhhopeekvddrieehrdehtddrvdefkedpmhgrihhlfhhrohhmpeforghrtgcuvehhrghnthhrvghugicuoehmtgesuhhnihhsthhrrgdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopegsuhhgqdgtohhrvghuthhilhhssehgnhhurdhorhhg Received-SPF: pass client-ip=194.254.241.31; envelope-from=mc@unistra.fr; helo=smtpout02-ext4.partage.renater.fr X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Mailman-Approved-At: Sun, 04 Dec 2022 18:17:39 -0500 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.1 (-) hello coreutils maintainers, I would like info page of the date to be explicit about the ready to use date formats so users can pick them as example for their own ones (as example: just remove the timezone information). regards, marc --- doc/coreutils.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index c801097..8c24b52 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -16559,18 +16559,23 @@ terms of the time to include. It can be one of the following: @table @samp @item auto Print just the date. This is the default if @var{timespec} is omitted. +("%Y-%m-%d") @item hours Append the hour of the day to the date. +("%Y-%m-%dT%H%:z") @item minutes Append the hours and minutes. +("%Y-%m-%dT%H:%M%:z") @item seconds Append the hours, minutes and seconds. +("%Y-%m-%dT%H:%M:%S%:z") @item ns Append the hours, minutes, seconds and nanoseconds. +("%Y-%m-%dT%H:%M:%S,%N%:z") @end table If showing any time terms, then include the time zone using the format -- 2.34.1 From unknown Sat Aug 16 21:01:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Marc Chantreux Subject: bug#59827: closed (Re: bug#59827: [PATCH] info date to be explicit about the date formats) Message-ID: References: X-Gnu-PR-Message: they-closed 59827 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: patch Reply-To: 59827@debbugs.gnu.org Date: Tue, 06 Dec 2022 02:44:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1670294641-2693-1" This is a multi-part message in MIME format... ------------=_1670294641-2693-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #59827: [PATCH] info date to be explicit about the date formats which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 59827@debbugs.gnu.org. --=20 59827: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59827 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1670294641-2693-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 59827-done) by debbugs.gnu.org; 6 Dec 2022 02:43:55 +0000 Received: from localhost ([127.0.0.1]:39880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Nw3-0000h8-3K for submit@debbugs.gnu.org; Mon, 05 Dec 2022 21:43:55 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:53700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Nw0-0000h0-JL for 59827-done@debbugs.gnu.org; Mon, 05 Dec 2022 21:43:53 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BAF18160037; Mon, 5 Dec 2022 18:43:45 -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 JNKmmon16NnJ; Mon, 5 Dec 2022 18:43:44 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C3FB0160054; Mon, 5 Dec 2022 18:43:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu C3FB0160054 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1670294624; bh=4CIAg2US5rmc92KfcxXYurGBFazn6R4QTMyM/+Ypxeg=; h=Content-Type:Message-ID:Date:MIME-Version:Subject:To:From; b=sHnPNxZpMxj21mf9OEvWc/+DgXGaxiW1rXpEcW71lLpRmIu/QYdxfwEqKoQZw6JPT Jh1n2zUVsZni9SQFtJxLRCKxuOVKE4ZIt7Pa5JiV6rKx5P2QHAYqlnAbRRfSCPb4B3 p9Ivj+iysgc8XC8yuK1a35LbP/GMjrHLCWefSruM= 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 dEUVpH3AqAVm; Mon, 5 Dec 2022 18:43:44 -0800 (PST) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 41A9D160037; Mon, 5 Dec 2022 18:43:44 -0800 (PST) Content-Type: multipart/mixed; boundary="------------2nh9RPFjyzhvv6HagOrpAXlV" Message-ID: Date: Mon, 5 Dec 2022 18:43:43 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: bug#59827: [PATCH] info date to be explicit about the date formats Content-Language: en-US To: Marc Chantreux References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59827-done Cc: 59827-done@debbugs.gnu.org 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 (---) This is a multi-part message in MIME format. --------------2nh9RPFjyzhvv6HagOrpAXlV Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for the suggestion. I installed the attached which isn't exactly what you sent but which implements the basic idea. --------------2nh9RPFjyzhvv6HagOrpAXlV Content-Type: text/x-patch; charset=UTF-8; name="0001-doc-improve-date-I-doc.patch" Content-Disposition: attachment; filename="0001-doc-improve-date-I-doc.patch" Content-Transfer-Encoding: base64 RnJvbSA1Mzk5ZjJhYWM0ZGM4ZGQ0MzkyYTExOTRkYzliZGJiMmJjYzYyNzJjIE1vbi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vv6HagOrpAXlV-- ------------=_1670294641-2693-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Dec 2022 23:17:42 +0000 Received: from localhost ([127.0.0.1]:60378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1yEv-0004Dn-0Q for submit@debbugs.gnu.org; Sun, 04 Dec 2022 18:17:41 -0500 Received: from lists.gnu.org ([209.51.188.17]:33564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1wCQ-0000Ov-KR for submit@debbugs.gnu.org; Sun, 04 Dec 2022 16:07:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1wCQ-0001x8-BQ for bug-coreutils@gnu.org; Sun, 04 Dec 2022 16:06:58 -0500 Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1wCN-0008Ck-Gz for bug-coreutils@gnu.org; Sun, 04 Dec 2022 16:06:58 -0500 Received: from zmtaauth02.partage.renater.fr (zmtaauth02.partage.renater.fr [194.254.241.25]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 02CECBFABE for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) Received: from zmtaauth02.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPS id EE315A0011 for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTP id DD32FA00C6 for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth02.partage.renater.fr DD32FA00C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1670188008; bh=8B1eXxtgigJ9q9kLgJmoDeZjtvZ6IFgJWbESI/Xojhw=; h=Date:From:To:Message-ID:MIME-Version; b=fwz3HvtpJGxxgUJeDHlpsBDmQr375hM9KBSPF0RNPDPHxCXoukej1ATqdTWqlZdkF EoB4E6hohqW8QPIz1jtr/8ao1hnqfYlOqdaqBFR8mBBIutQxVdb+WL482lJ/xh4sPW +TP6EkzEWbJuLCwL5FcL8erumiUHTfPglh7Ur6aFE+Z7lYS4JmGddHlW3Uu9dbkhwF xcyyXHYWXrGcwbVDLFRoD+eqJMdAI+TJM8MUzLhCrHbJ+WS+CiELXu71DIaow78JNf Yp7Ha+PLU3vldW51suwA/4AlCvWxwbG6COvTEsmPi+UKt5VPxs5IBUDaCvpwJrUil/ CxvH8ip4pXdrA== Received: from zmtaauth02.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth02.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 664OugMSLNtK for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) Received: from 82.65.50.238 (unknown [194.254.241.249]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPA id 969FDA0011 for ; Sun, 4 Dec 2022 22:06:48 +0100 (CET) Date: Sun, 4 Dec 2022 22:06:48 +0100 From: Marc Chantreux To: bug-coreutils@gnu.org Subject: [PATCH] info date to be explicit about the date formats Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: clamav-milter 0.103.6 at clamav01 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: 0 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvgddugeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttddtvdenucfhrhhomhepofgrrhgtucevhhgrnhhtrhgvuhiguceomhgtsehunhhishhtrhgrrdhfrheqnecuggftrfgrthhtvghrnhepvdehudejheeuhfdtfeekgeehffetgfelgeehtdehgfetjeejjeetgefggeejleelnecukfhppeduleegrddvheegrddvgedurddvgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdegledphhgvlhhopeekvddrieehrdehtddrvdefkedpmhgrihhlfhhrohhmpeforghrtgcuvehhrghnthhrvghugicuoehmtgesuhhnihhsthhrrgdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopegsuhhgqdgtohhrvghuthhilhhssehgnhhurdhorhhg Received-SPF: pass client-ip=194.254.241.31; envelope-from=mc@unistra.fr; helo=smtpout02-ext4.partage.renater.fr X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 04 Dec 2022 18:17:39 -0500 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.1 (-) hello coreutils maintainers, I would like info page of the date to be explicit about the ready to use date formats so users can pick them as example for their own ones (as example: just remove the timezone information). regards, marc --- doc/coreutils.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index c801097..8c24b52 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -16559,18 +16559,23 @@ terms of the time to include. It can be one of the following: @table @samp @item auto Print just the date. This is the default if @var{timespec} is omitted. +("%Y-%m-%d") @item hours Append the hour of the day to the date. +("%Y-%m-%dT%H%:z") @item minutes Append the hours and minutes. +("%Y-%m-%dT%H:%M%:z") @item seconds Append the hours, minutes and seconds. +("%Y-%m-%dT%H:%M:%S%:z") @item ns Append the hours, minutes, seconds and nanoseconds. +("%Y-%m-%dT%H:%M:%S,%N%:z") @end table If showing any time terms, then include the time zone using the format -- 2.34.1 ------------=_1670294641-2693-1--