GNU bug report logs - #14545
date --iso-8601 should use colon in time zone offset

Previous Next

Package: coreutils;

Reported by: Jordon Kalilich <jordon <at> theworldofstuff.com>

Date: Mon, 3 Jun 2013 05:39:01 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jordon Kalilich <jordon <at> theworldofstuff.com>
Cc: 14545 <at> debbugs.gnu.org
Subject: bug#14545: date --iso-8601 should use colon in time zone offset
Date: Tue, 04 Jun 2013 00:10:12 -0700
On 06/02/2013 09:13 PM, Jordon Kalilich wrote:
> The output mostly follows the ISO 8601:2004 extended format but fails to include
> a colon in the time zone offset, as required by section 4.3.2 "Complete
> representations" and section 4.3.3 "Representations other than complete."

If memory serves the --iso-8601 option conformed to ISO 8601
a while ago, but the ISO standard changed.  At any rate, the
--iso-8601 option has been deprecated since 2005.  Hmm, I
see that this has not been reflected in the documentation, so
perhaps that's the next step to take for this option, on its
way out the door.

You can get the effect you want, with the command

date +'%Y-%m-%dT%H:%M:%S.%N%:z'




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

Previous Next


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