GNU bug report logs -
#14545
date --iso-8601 should use colon in time zone offset
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14545 in the body.
You can then email your comments to 14545 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#14545
; Package
coreutils
.
(Mon, 03 Jun 2013 05:39:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jordon Kalilich <jordon <at> theworldofstuff.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 03 Jun 2013 05:39:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
date uses an inconsistent format when the options
--iso-8601=[hours|minutes|seconds|ns] are specified. Example:
$ date --iso-8601=seconds
2013-06-02T20:07:03-0700
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."
In this example, date should print the date as 2013-06-02T20:07:03-07:00 and
should likewise include a colon in the time zone offset with the "hours,"
"minutes," and "ns" options.
This is based on my use of date 8.20, as packaged with Ubuntu 13.04. I didn't
see anything about this in the shortlog of changes in coreutils 8.21.
Jordon Kalilich
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#14545
; Package
coreutils
.
(Tue, 04 Jun 2013 07:13:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 14545 <at> debbugs.gnu.org (full text, mbox):
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'
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#14545
; Package
coreutils
.
(Tue, 04 Jun 2013 15:58:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 14545 <at> debbugs.gnu.org (full text, mbox):
Thus spake Paul Eggert on 06/04/2013 12:10 AM:
> At any rate, the --iso-8601 option has been deprecated since 2005.
Why is it deprecated? I don't recall seeing it in the man page until recently,
and I've noticed an increase in the use of ISO 8601 over the past few years.
This option seems like it could be useful for a lot of people.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#14545
; Package
coreutils
.
(Tue, 04 Jun 2013 16:15:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 14545 <at> debbugs.gnu.org (full text, mbox):
Paul Eggert wrote:
> 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'
It was undocumented until late 2011's v8.14-17-g2f1384b,
when I undeprecated it. Here's the commit log entry:
date: reinstate the --iso-8601 (-I) option
We deprecated and undocumented the --iso-8601 (-I) option mostly
because date could not parse that particular format. Now that
it can, it's time to restore the documentation.
* src/date.c (usage): Document it.
* doc/coreutils.texi (Options for date):
Reinstate documentation.
Reported by Hubert Depesz Lubaczewski in http://bugs.gnu.org/7444.
Now that we know the standard has evolved, I'm inclined to conform.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#14545
; Package
coreutils
.
(Tue, 04 Jun 2013 16:16:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 14545 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 06/04/2013 09:55 AM, Jordon Kalilich wrote:
> Thus spake Paul Eggert on 06/04/2013 12:10 AM:
>> At any rate, the --iso-8601 option has been deprecated since 2005.
>
> Why is it deprecated? I don't recall seeing it in the man page until recently,
> and I've noticed an increase in the use of ISO 8601 over the past few years.
> This option seems like it could be useful for a lot of people.
It was undeprecated in Oct 2011 with commit 2f1384b:
date: reinstate the --iso-8601 (-I) option
We deprecated and undocumented the --iso-8601 (-I) option mostly
because date could not parse that particular format. Now that
it can, it's time to restore the documentation.
* src/date.c (usage): Document it.
* doc/coreutils.texi (Options for date): Reinstate documentation.
Reported by Hubert Depesz Lubaczewski in http://bugs.gnu.org/7444.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#14545
; Package
coreutils
.
(Fri, 19 Oct 2018 00:45:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 14545 <at> debbugs.gnu.org (full text, mbox):
tags 14545 fixed
close 14545
stop
(triaging old bugs)
This was fixed in:
https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=17bbf6ce44eb543a95695fa9d2cbd70fb52c6f42
Marking as "fixed" and closing.
-assaf
Added tag(s) fixed.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 19 Oct 2018 00:45:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
14545 <at> debbugs.gnu.org and Jordon Kalilich <jordon <at> theworldofstuff.com>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 19 Oct 2018 00:45:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 16 Nov 2018 12:24:06 GMT)
Full text and
rfc822 format available.
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.