これ回答コメントには私が長い間使用してきましたが、今は文書化されていないような--rfc-3339
「隠す」オプションが言及されています。--iso-8601
オプション文書はテキストからいつ削除されましたか--help
?
このオプションはすぐに消えますか?
ベストアンサー1
date
このオプションは1999年(4月8日)にcoreutils(おそらく持っているでしょう)に導入されました。
この文書は以下から削除されました。2005年提出書類には説明があまりありません。
存在する2011年、--iso-8601のヘルプは、次の説明とともに再導入されました。
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.
ヘルプはバージョン5.90から削除され、バージョン8.15(私の8.13にはありません)に再び追加されたように見えます。
バージョン 8.31 (2020 年 7 月 Solus で提供) のマニュアルページには、次の 2 つのオプションがあります。
-I[FMT], --iso-8601[=FMT]
output date/time in ISO 8601 format. FMT='date' for date only (the default), 'hours', 'minutes', 'sec‐
onds', 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