From unknown Sat Jun 21 05:20:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" Resent-From: =?UTF-8?Q?St=C3=A9phane?= Archer Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 13 Feb 2022 23:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53982 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 53982@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164479592631586 (code B ref -1); Sun, 13 Feb 2022 23:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2022 23:45:26 +0000 Received: from localhost ([127.0.0.1]:39141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJOYX-0008DN-Qa for submit@debbugs.gnu.org; Sun, 13 Feb 2022 18:45:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:32890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJLKy-0000s2-CY for submit@debbugs.gnu.org; Sun, 13 Feb 2022 15:19:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJLKx-0005LX-Il for bug-coreutils@gnu.org; Sun, 13 Feb 2022 15:19:12 -0500 Received: from [2a00:1450:4864:20::52f] (port=41867 helo=mail-ed1-x52f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJLKw-0007lL-4P for bug-coreutils@gnu.org; Sun, 13 Feb 2022 15:19:11 -0500 Received: by mail-ed1-x52f.google.com with SMTP id w2so5583562edc.8 for ; Sun, 13 Feb 2022 12:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=z4OHbWmKrX2dQwqGT78yAeDLiSUJho19muFLqVBLNt4=; b=lpI/A8DapXtCeci9DBPOOtJiDVTTdviOUTJIk2vNeOfJS8PrTRMhtxHvYzpctHIzx9 0KmzKqwS7kvDva5WisAizJAYhuJmS6c6w2tkMjI8rju88zo1eBQbV7a9e5A/UX7EibmL BGwGODQinNEDM6FfrIvNl7GkyH5edlU8SHGPDymhErplKpk9ypp5Y8w3jTflKyvHMFre opf/VOXYIGNibzhWsGoOhMq7sdkw+ShXUxOOnjHh92FyDY6t8H1sDdVTRCgLJnAHQxgV YJzwTafskKfarlsJ0cy4MBmygDnHw81S9g6aNFwiVQVFVNnWlyn79baXGTgrAiN8nHyp n7fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=z4OHbWmKrX2dQwqGT78yAeDLiSUJho19muFLqVBLNt4=; b=GtA7sSI+lbk5D7m1EdeZu6VeE8Z++rxvbOrulkTwoZ9rKdHel2RTEaQ1K9wjlDJe1K pMzdVdL0Iy51zElbzQSY5IEgH28OMfURA41jW5BNdSMdTeCTMFnEVr3mwDZyd8Cl2fEL 1cZrw71BkbbKcGjwW7BHeS5pFb4eOMx93oD6ox/ofKkhPoMxdkbtfDuiaC57bj73UpRU 2wUWq2j8zvhKqF89R181DVGOo+odi8hrFdRD+2nl+aeBGElwKSty6XXk3nuDzFkmDJvb x8r8Ol5+YaXjE4ceTAQ3TLyauKdKu8j35wu/KgoCQLdt0nWVgH4iEQcg6aJMFCnv+o5B kKBw== X-Gm-Message-State: AOAM532snb5wZYE7Un4Ze8l4LA+tr2SeIXDMsAFhBIwLJUJvw6eZCpYJ zzVQao+dBdyU03IU6k8kHyRAKkXWyGg0iyr+h9iIH5WfcwwDCg== X-Google-Smtp-Source: ABdhPJwUg8WwMOhLdkwsU8i9Hkbap/CB89NAy7/A1vxsSdQ18Cnxhz+VVCj4zExwKU+60YtO0taL2A0A7PDlpaxrspg= X-Received: by 2002:a05:6402:4256:: with SMTP id g22mr12295069edb.78.1644783546986; Sun, 13 Feb 2022 12:19:06 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?St=C3=A9phane?= Archer Date: Sun, 13 Feb 2022 21:18:55 +0100 Message-ID: Content-Type: multipart/alternative; boundary="0000000000000cf66a05d7ec03c1" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=archerstephane@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: 22 X-Spam_score: 2.2 X-Spam_bar: ++ X-Spam_report: (2.2 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.785, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Mailman-Approved-At: Sun, 13 Feb 2022 18:45:24 -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: -2.3 (--) --0000000000000cf66a05d7ec03c1 Content-Type: text/plain; charset="UTF-8" Hi, I hope this is the right place to do my bug report. please see the following shell input-output: ``` $ date -d "17 april 2022 + 36 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' 2022-12-25T17:00:00.0Z $ date -d "17 april 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' 2022-01-01T17:00:00.0Z $ date -d "17 april 2022 + 38 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' 2023-01-08T17:00:00.0Z ``` as you can see the input "17 april 2022 + 37 week 5pm" makes date return the wrong output for some unknown reason. Do I do something wrong? I use the following version: date (GNU coreutils) 8.30 -- Best Regards, Stephane Archer --0000000000000cf66a05d7ec03c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
I hope this is the right place to do my= bug report.
please see the following shell input-output:
```
$ date -d "17 april 2022 + 36 week 5pm" +'%G= -%m-%dT%H:%M:%S.0Z'
2022-12-25T17:00:00.0Z
$ date -d "17 apr= il 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z'
2022-01-01T1= 7:00:00.0Z
$ date -d "17 april 2022 + 38 week 5pm" +'%G-%m= -%dT%H:%M:%S.0Z'
2023-01-08T17:00:00.0Z
```
= as you can see the input=20 "17 april 2022 + 37 week 5pm" makes date return the wrong output = for some unknown reason.

Do I do something wrong?<= /div>
I use the following version: date (GNU coreutils) 8.30
=
--
Best Regards,

=
Stephane Archer
--0000000000000cf66a05d7ec03c1-- From unknown Sat Jun 21 05:20:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 14 Feb 2022 08:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53982 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?St=C3=A9phane?= Archer Cc: 53982@debbugs.gnu.org Received: via spool by 53982-submit@debbugs.gnu.org id=B53982.164482667716986 (code B ref 53982); Mon, 14 Feb 2022 08:18:01 +0000 Received: (at 53982) by debbugs.gnu.org; 14 Feb 2022 08:17:57 +0000 Received: from localhost ([127.0.0.1]:39655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJWYW-0004Pu-O3 for submit@debbugs.gnu.org; Mon, 14 Feb 2022 03:17:56 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:52917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJWYU-0004Pk-Hu for 53982@debbugs.gnu.org; Mon, 14 Feb 2022 03:17:55 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Jxxt91TQLz1r5SQ; Mon, 14 Feb 2022 09:17:53 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Jxxt870R2z1qqkC; Mon, 14 Feb 2022 09:17:52 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id c_plxNm66xhc; Mon, 14 Feb 2022 09:17:52 +0100 (CET) X-Auth-Info: KJFkkJU3b4hWqKAYh5tdpVD5uRzzKsWwhPL2qrWZ5lEmJXO9qG+3DOf95WBKuKQd Received: from igel.home (ppp-46-244-178-131.dynamic.mnet-online.de [46.244.178.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 14 Feb 2022 09:17:52 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id A261C2C3837; Mon, 14 Feb 2022 09:17:51 +0100 (CET) From: Andreas Schwab References: X-Yow: Yow!! It's LIBERACE and TUESDAY WELD!! High on a HILL... driving a LITTLE CAR... I wanna be in that LITTLE CAR, too!! I wanna drive off with LIBBY and TUESDAY! Date: Mon, 14 Feb 2022 09:17:51 +0100 In-Reply-To: ("=?UTF-8?Q?St=C3=A9phane?= Archer"'s message of "Sun, 13 Feb 2022 21:18:55 +0100") Message-ID: <87czjpx3o0.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.5 (/) 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.5 (-) On Feb 13 2022, Stéphane Archer wrote: > $ date -d "17 april 2022 + 36 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' > 2022-12-25T17:00:00.0Z > $ date -d "17 april 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' > 2022-01-01T17:00:00.0Z > $ date -d "17 april 2022 + 38 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' > 2023-01-08T17:00:00.0Z > ``` > as you can see the input "17 april 2022 + 37 week 5pm" makes date return > the wrong output for some unknown reason. It doesn't make sense to use %G without %V, or to use it in place of %Y. $ date -d "17 april 2022 + 37 week 5pm" +'%G/%V %Y-%m-%dT%H:%M:%S.0Z' 2022/52 2023-01-01T17:00:00.0Z -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Sat Jun 21 05:20:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" Resent-From: =?UTF-8?Q?St=C3=A9phane?= Archer Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 14 Feb 2022 09:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53982 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Andreas Schwab Cc: 53982@debbugs.gnu.org Received: via spool by 53982-submit@debbugs.gnu.org id=B53982.164483172525718 (code B ref 53982); Mon, 14 Feb 2022 09:43:01 +0000 Received: (at 53982) by debbugs.gnu.org; 14 Feb 2022 09:42:05 +0000 Received: from localhost ([127.0.0.1]:39785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJXrx-0006gk-FU for submit@debbugs.gnu.org; Mon, 14 Feb 2022 04:42:05 -0500 Received: from mail-ej1-f41.google.com ([209.85.218.41]:46775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJXrv-0006gG-R5 for 53982@debbugs.gnu.org; Mon, 14 Feb 2022 04:42:04 -0500 Received: by mail-ej1-f41.google.com with SMTP id e7so32033094ejn.13 for <53982@debbugs.gnu.org>; Mon, 14 Feb 2022 01:42:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TMd4t+zyuvHsxA6i4qiGkJcF/BDnl/k16db3XA50cJc=; b=PGnb05prRxZxi+OVnlWxkVNvr2xfjiaKcFS1Kgmg89kZGVN4YHxbZFzSEVUDOtaK1C B9WqWHZsdwlWz7PiK7I2pxj+CsVnGEOQ1+DrDcDuRW4KbGGvvzuBGOVLvyiYpwiPxaJw m6OJ/eWwBj5uNH2JC6obXqXnIDCmnUlAL9r9wUR5tdv9RF9M1KtuxLUY3lobV9E/Esyr qB7bHEPIX8ZuLymgARJHfXsa+E8EyjsVLGr9CfwcDC7miu10h6YcJmJTSfP6AsU1NP5k w2yx9ksFfJ9lDJFkneLtsiewI1sZgbzH+l3Alu6F7Rz8V0FUTwTNLgYjWoYX0ZG8xb/G A4WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TMd4t+zyuvHsxA6i4qiGkJcF/BDnl/k16db3XA50cJc=; b=Ydhtt6RQH5o6ZQ9xxoyqjMGJrAm5G16wCtdh3tCZhzjWpuqxPphVNN34vkE3R9gl5e GbgAKR1XnJi6DhA7DFRZTZN6muWKirebaSSPJgY+EeBEXn3qI81Qtqhi7gHYdR6p1PF6 C3+Cz/sULg79tQ43UJ4Y7LN3ny0AwRb0IfEUmjIEAd71laKK+NnkAJJdRBng8fWIyj5+ +P2mN1tbU8cM01UGLL2Y8BZ4MZjnEKBxBCfRVDxq06rmhAmr/Sx4DcdoVD64yXj5/Xlz 070MUICojpFIQR9M9DfglOFZjtbbNHfhw7Rw3Ka+Jm2oJGScb9nAD+T339FXNnP8d1fs ooRA== X-Gm-Message-State: AOAM5323IN6VOZ1VU1DxhoZBIF0gC7nu9DEnv9LjnxYbkbVQfcaMK4ZK b6LAE/011NGh6mQSVci+jvHaDGOqrUzXyVg0O4o= X-Google-Smtp-Source: ABdhPJyhnr3Ap4yEK3nfh+u+2aLAJoJmbs85MWOTaVsPZl0q40nDgdMqNBaZOJhyhhhKG6KqEboYRh3HFUGtN5vme/Y= X-Received: by 2002:a17:906:4789:: with SMTP id cw9mr10943790ejc.97.1644831717837; Mon, 14 Feb 2022 01:41:57 -0800 (PST) MIME-Version: 1.0 References: <87czjpx3o0.fsf@igel.home> In-Reply-To: <87czjpx3o0.fsf@igel.home> From: =?UTF-8?Q?St=C3=A9phane?= Archer Date: Mon, 14 Feb 2022 10:41:45 +0100 Message-ID: Content-Type: multipart/alternative; boundary="00000000000041cfe405d7f73a7b" 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 (-) --00000000000041cfe405d7f73a7b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Andreas, thank you for your help, I didn't realize I was using the wrong format for what I wanted. I don't have much experience with the project. The format I wanted was: YYYY-MM-DDThh:mm:ss.sZ is +'%Y-%m-%dT%H:%M:%S.0Z' do what I want or are there still some mistakes there? Thank you again and sorry for the bug report, it was late and I was sure to have found a bug ^^" Best regards St=C3=A9phane Archer On Mon, Feb 14, 2022 at 9:17 AM Andreas Schwab wrote: > On Feb 13 2022, St=C3=A9phane Archer wrote: > > > $ date -d "17 april 2022 + 36 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' > > 2022-12-25T17:00:00.0Z > > $ date -d "17 april 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' > > 2022-01-01T17:00:00.0Z > > $ date -d "17 april 2022 + 38 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' > > 2023-01-08T17:00:00.0Z > > ``` > > as you can see the input "17 april 2022 + 37 week 5pm" makes date retur= n > > the wrong output for some unknown reason. > > It doesn't make sense to use %G without %V, or to use it in place of %Y. > > $ date -d "17 april 2022 + 37 week 5pm" +'%G/%V %Y-%m-%dT%H:%M:%S.0Z' > 2022/52 2023-01-01T17:00:00.0Z > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC= 1 > "And now for something completely different." > --=20 Best Regards, Stephane Archer --00000000000041cfe405d7f73a7b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Andreas,

thank you for yo= ur help, I didn't realize I was using the wrong format for what I wante= d.
I don't have much experience with the project.
T= he format I wanted was: YYYY-MM-DDThh:mm:ss.sZ
is +'%Y-%m-%dT= %H:%M:%S.0Z' do what I want or are there still some mistakes there?

Thank you again and sorry for the bug report, it was = late and I was sure to have found a bug ^^"

B= est regards

St=C3=A9phane Archer

On Mon, Feb 14, 2022 at 9:17 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
On Feb 13 2022, St=C3=A9phane A= rcher wrote:

> $ date -d "17 april 2022 + 36 week 5pm" +'%G-%m-%dT%H:%M= :%S.0Z'
> 2022-12-25T17:00:00.0Z
> $ date -d "17 april 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M= :%S.0Z'
> 2022-01-01T17:00:00.0Z
> $ date -d "17 april 2022 + 38 week 5pm" +'%G-%m-%dT%H:%M= :%S.0Z'
> 2023-01-08T17:00:00.0Z
> ```
> as you can see the input "17 april 2022 + 37 week 5pm" makes= date return
> the wrong output for some unknown reason.

It doesn't make sense to use %G without %V, or to use it in place of %Y= .

$ date -d "17 april 2022 + 37 week 5pm" +'%G/%V %Y-%m-%dT%H:%= M:%S.0Z'
2022/52 2023-01-01T17:00:00.0Z

--
Andreas Schwab, = schwab@linux-m68k.org
GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510=C2=A0 2552 DF73 E780 A9DA = AEC1
"And now for something completely different."


--
Best Regards,

Stephane Archer
--00000000000041cfe405d7f73a7b-- From unknown Sat Jun 21 05:20:24 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: =?UTF-8?Q?St=C3=A9phane?= Archer Subject: bug#53982: closed (Re: bug#53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm") Message-ID: References: <995b0d1e-7df5-2cf4-d90f-4d326313ebb9@cs.ucla.edu> X-Gnu-PR-Message: they-closed 53982 X-Gnu-PR-Package: coreutils Reply-To: 53982@debbugs.gnu.org Date: Mon, 14 Feb 2022 19:03:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1644865381-12885-1" This is a multi-part message in MIME format... ------------=_1644865381-12885-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" 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 53982@debbugs.gnu.org. --=20 53982: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53982 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1644865381-12885-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 53982-done) by debbugs.gnu.org; 14 Feb 2022 19:02:39 +0000 Received: from localhost ([127.0.0.1]:42575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJgcR-0003LE-9o for submit@debbugs.gnu.org; Mon, 14 Feb 2022 14:02:39 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJgcO-0003L0-3r for 53982-done@debbugs.gnu.org; Mon, 14 Feb 2022 14:02:37 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0C66D160068; Mon, 14 Feb 2022 11:02:30 -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 yM-sWcfR6Fbr; Mon, 14 Feb 2022 11:02:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5E2A416006C; Mon, 14 Feb 2022 11:02:29 -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 Q-Pyx3ZBPnVj; Mon, 14 Feb 2022 11:02:29 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 3852C16005C; Mon, 14 Feb 2022 11:02:29 -0800 (PST) Message-ID: <995b0d1e-7df5-2cf4-d90f-4d326313ebb9@cs.ucla.edu> Date: Mon, 14 Feb 2022 11:02:27 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: bug#53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" Content-Language: en-US To: =?UTF-8?Q?St=c3=a9phane_Archer?= References: <87czjpx3o0.fsf@igel.home> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53982-done Cc: 53982-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 (---) On 2/14/22 01:41, St=C3=A9phane Archer wrote: > is +'%Y-%m-%dT%H:%M:%S.0Z' do what I want To format an arbitrary timestamp you want "+%Y-%m-%dT%H:%M:%S.%1NZ",=20 unless you always want a zero after the period. Closing the bug report as there's no bug here. ------------=_1644865381-12885-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 13 Feb 2022 23:45:26 +0000 Received: from localhost ([127.0.0.1]:39141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJOYX-0008DN-Qa for submit@debbugs.gnu.org; Sun, 13 Feb 2022 18:45:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:32890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJLKy-0000s2-CY for submit@debbugs.gnu.org; Sun, 13 Feb 2022 15:19:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJLKx-0005LX-Il for bug-coreutils@gnu.org; Sun, 13 Feb 2022 15:19:12 -0500 Received: from [2a00:1450:4864:20::52f] (port=41867 helo=mail-ed1-x52f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJLKw-0007lL-4P for bug-coreutils@gnu.org; Sun, 13 Feb 2022 15:19:11 -0500 Received: by mail-ed1-x52f.google.com with SMTP id w2so5583562edc.8 for ; Sun, 13 Feb 2022 12:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=z4OHbWmKrX2dQwqGT78yAeDLiSUJho19muFLqVBLNt4=; b=lpI/A8DapXtCeci9DBPOOtJiDVTTdviOUTJIk2vNeOfJS8PrTRMhtxHvYzpctHIzx9 0KmzKqwS7kvDva5WisAizJAYhuJmS6c6w2tkMjI8rju88zo1eBQbV7a9e5A/UX7EibmL BGwGODQinNEDM6FfrIvNl7GkyH5edlU8SHGPDymhErplKpk9ypp5Y8w3jTflKyvHMFre opf/VOXYIGNibzhWsGoOhMq7sdkw+ShXUxOOnjHh92FyDY6t8H1sDdVTRCgLJnAHQxgV YJzwTafskKfarlsJ0cy4MBmygDnHw81S9g6aNFwiVQVFVNnWlyn79baXGTgrAiN8nHyp n7fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=z4OHbWmKrX2dQwqGT78yAeDLiSUJho19muFLqVBLNt4=; b=GtA7sSI+lbk5D7m1EdeZu6VeE8Z++rxvbOrulkTwoZ9rKdHel2RTEaQ1K9wjlDJe1K pMzdVdL0Iy51zElbzQSY5IEgH28OMfURA41jW5BNdSMdTeCTMFnEVr3mwDZyd8Cl2fEL 1cZrw71BkbbKcGjwW7BHeS5pFb4eOMx93oD6ox/ofKkhPoMxdkbtfDuiaC57bj73UpRU 2wUWq2j8zvhKqF89R181DVGOo+odi8hrFdRD+2nl+aeBGElwKSty6XXk3nuDzFkmDJvb x8r8Ol5+YaXjE4ceTAQ3TLyauKdKu8j35wu/KgoCQLdt0nWVgH4iEQcg6aJMFCnv+o5B kKBw== X-Gm-Message-State: AOAM532snb5wZYE7Un4Ze8l4LA+tr2SeIXDMsAFhBIwLJUJvw6eZCpYJ zzVQao+dBdyU03IU6k8kHyRAKkXWyGg0iyr+h9iIH5WfcwwDCg== X-Google-Smtp-Source: ABdhPJwUg8WwMOhLdkwsU8i9Hkbap/CB89NAy7/A1vxsSdQ18Cnxhz+VVCj4zExwKU+60YtO0taL2A0A7PDlpaxrspg= X-Received: by 2002:a05:6402:4256:: with SMTP id g22mr12295069edb.78.1644783546986; Sun, 13 Feb 2022 12:19:06 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?St=C3=A9phane_Archer?= Date: Sun, 13 Feb 2022 21:18:55 +0100 Message-ID: Subject: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="0000000000000cf66a05d7ec03c1" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=archerstephane@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: 22 X-Spam_score: 2.2 X-Spam_bar: ++ X-Spam_report: (2.2 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.785, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 13 Feb 2022 18:45:24 -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: -2.3 (--) --0000000000000cf66a05d7ec03c1 Content-Type: text/plain; charset="UTF-8" Hi, I hope this is the right place to do my bug report. please see the following shell input-output: ``` $ date -d "17 april 2022 + 36 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' 2022-12-25T17:00:00.0Z $ date -d "17 april 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' 2022-01-01T17:00:00.0Z $ date -d "17 april 2022 + 38 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z' 2023-01-08T17:00:00.0Z ``` as you can see the input "17 april 2022 + 37 week 5pm" makes date return the wrong output for some unknown reason. Do I do something wrong? I use the following version: date (GNU coreutils) 8.30 -- Best Regards, Stephane Archer --0000000000000cf66a05d7ec03c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
I hope this is the right place to do my= bug report.
please see the following shell input-output:
```
$ date -d "17 april 2022 + 36 week 5pm" +'%G= -%m-%dT%H:%M:%S.0Z'
2022-12-25T17:00:00.0Z
$ date -d "17 apr= il 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z'
2022-01-01T1= 7:00:00.0Z
$ date -d "17 april 2022 + 38 week 5pm" +'%G-%m= -%dT%H:%M:%S.0Z'
2023-01-08T17:00:00.0Z
```
= as you can see the input=20 "17 april 2022 + 37 week 5pm" makes date return the wrong output = for some unknown reason.

Do I do something wrong?<= /div>
I use the following version: date (GNU coreutils) 8.30
=
--
Best Regards,

=
Stephane Archer
--0000000000000cf66a05d7ec03c1-- ------------=_1644865381-12885-1--