Package: coreutils
Version: 8.23-4
Severity: minor

The manual page for 'date' says --iso-8601 will "output date/time in ISO
8601 format", but I don't believe the format actually complies with that
standard when a time is included.

ยง4.3.3d says (http://dotat.at/tmp/ISO_8601-2004_E.pdf#):
"the expression shall either be completely in basic format, in which
case the minimum number of separators necessary for the required
expression is used, or completely in extended format, in which case
additional separators shall be used in accordance with 4.1 and 4.2."

But --iso-8601=m uses extended format for the date and time, and basic
format for the timezone.  Since making the option actually use ISO 8601
format could break scripts, a note in the manual page is probably the
best fix.  E.g.,
  "output date/time in ISO 8601 extended format, except for the time
  zone which will be output in basic format when a time is included and
  omitted otherwise"

- Michael


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 4.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages coreutils depends on:
ii  libacl1      2.2.52-2
ii  libattr1     1:2.4.47-2
ii  libc6        2.19-20
ii  libselinux1  2.3-2+b1

coreutils recommends no packages.

coreutils suggests no packages.

-- debconf-show failed

Attachment: signature.asc
Description: Digital signature

Reply via email to