GNU bug report logs - #32288
date(1) Produces ISO 8601 it Won't Take Back.

Previous Next

Package: coreutils;

Reported by: Ralph Corderoy <ralph <at> inputplus.co.uk>

Date: Fri, 27 Jul 2018 11:35:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#32288: closed (date(1) Produces ISO 8601 it Won't Take Back.)
Date: Mon, 30 Jul 2018 02:01:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 29 Jul 2018 19:00:01 -0700
with message-id <2e1ece68-a91e-6bf9-e6f8-f04433a3ded8 <at> cs.ucla.edu>
and subject line Re: bug#32288: date(1) Produces ISO 8601 it Won't Take Back.
has caused the debbugs.gnu.org bug report #32288,
regarding date(1) Produces ISO 8601 it Won't Take Back.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
32288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32288
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ralph Corderoy <ralph <at> inputplus.co.uk>
To: bug-coreutils <at> gnu.org
Subject: date(1) Produces ISO 8601 it Won't Take Back.
Date: Fri, 27 Jul 2018 12:34:11 +0100
Hi,

coreutils 8.29-1 on Arch Linux.

    $ date -uIs -d @-62135596801
    0000-12-31T23:59:59+00:00                           
    $ date -uIs -d @0000-12-31T23:59:59+00:00
    date: invalid date ‘@0000-12-31T23:59:59+00:00’     
    $

If date thinks it's valid ISO 8601 when it outputs it,
I'd expect it to be considered valid input to take back.

Cheers, Ralph.


[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ralph Corderoy <ralph <at> inputplus.co.uk>, 32288-done <at> debbugs.gnu.org
Subject: Re: bug#32288: date(1) Produces ISO 8601 it Won't Take Back.
Date: Sun, 29 Jul 2018 19:00:01 -0700
On 07/27/2018 04:34 AM, Ralph Corderoy wrote:
>     $ date -uIs -d @-62135596801
>     0000-12-31T23:59:59+00:00                           
>     $ date -uIs -d @0000-12-31T23:59:59+00:00
>     date: invalid date ‘@0000-12-31T23:59:59+00:00’     
>     $
>
> If date thinks it's valid ISO 8601 when it outputs it,
> I'd expect it to be considered valid input to take back.

As it would have, if you had actually given back exactly what you gave
it. But you prepended '@'.



This bug report was last modified 6 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.