bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14545: date --iso-8601 should use colon in time zone offset


From: Jordon Kalilich
Subject: bug#14545: date --iso-8601 should use colon in time zone offset
Date: Sun, 02 Jun 2013 21:13:55 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]