Re: coreutils: bug in date --iso-8601={seconds,ns}?
From:
Philip Rowlands
Subject:
Re: coreutils: bug in date --iso-8601={seconds,ns}?
Date:
Fri, 22 Aug 2008 13:50:34 +0100 (BST)
User-agent:
Alpine 1.00 (DEB 882 2007-12-20)
On Fri, 22 Aug 2008, Johannes Truschnigg wrote:
in thre process of writing an Atom-feed-generator in bash, I discovered
what MIGHT be a bug/documentation misinterpretation in GNU date's
--iso-8601 switch when invoked with "ns" or "seconds" as a parameter.
--iso-8601 is deprecated since coreutils 5.90.
RFC3339 and some documents regarding ISO 8601 I could find on the web quickly
seem to suggest that the time-offset component of the output should match the
regex /\d\d:\d\d/; date, however, matches /\d\d\d\d/.
I think --rfc-3339=seconds will do what you want.
Cheers,
Phil