|
From: | GNU bug Tracking System |
Subject: | bug#53982: closed (date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm") |
Date: | Mon, 14 Feb 2022 19:03:01 +0000 |
Your message dated Mon, 14 Feb 2022 11:02:27 -0800 with message-id <995b0d1e-7df5-2cf4-d90f-4d326313ebb9@cs.ucla.edu> and subject line Re: bug#53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" has caused the debbugs.gnu.org bug report #53982, regarding date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 53982: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53982 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" Date: Sun, 13 Feb 2022 21:18:55 +0100 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
--- End Message ---
--- Begin Message ---Subject: Re: bug#53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm" Date: Mon, 14 Feb 2022 11:02:27 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 On 2/14/22 01:41, Stéphane Archer wrote:is +'%Y-%m-%dT%H:%M:%S.0Z' do what I wantTo format an arbitrary timestamp you want "+%Y-%m-%dT%H:%M:%S.%1NZ", unless you always want a zero after the period.Closing the bug report as there's no bug here.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |