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


Message #10 received at 32288-done <at> debbugs.gnu.org (full text, mbox):

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.