Package: coreutils
Version: 8.28-1
Severity: normal
manpage for "date" is as follows:
-I[FMT], --iso-8601[=FMT]
output date/time in ISO 8601 format. FMT='date' for date only
(the default), 'hours', 'minutes', 'seconds', or 'ns' for date
and time to the indicated precision. Example:
2006-08-14T02:34:56-06:00
...
--rfc-3339=FMT
output date/time in RFC 3339 format. FMT='date', 'seconds', or
'ns' for date and time to the indicated precision. Example:
2006-08-14 02:34:56-06:00
Here is the actual results:
$ date -Iseconds -d@0
1970-01-01T09:00:00+09:00
$ date --iso-8601=seconds -d@0
1970-01-01T09:00:00+09:00
$ date --rfc-3339=seconds -d@0
1970-01-01 09:00:00+09:00
Clearly, -I, --iso-8601= examples are wrong. So this is a bug.
Osamu
PS: The use of @ is not explicitly defined but is captured in the
EXAMPLES in the manpage as "$ date --date='@2147483647'". So wishlist
bugs #590455 and #696115 is valid request to be forwarded to the
upstream.
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages coreutils depends on:
ii libacl1 2.2.52-3+b1
ii libattr1 1:2.4.47-2+b2
ii libc6 2.24-17
ii libselinux1 2.7-2
coreutils recommends no packages.
coreutils suggests no packages.
-- no debconf information