如何使用命令行上的 'date' 打印 ISO8601 日期
使用这些命令之一通过大多数 Linux 发行版中包含的 date 工具打印 ISO8601 时间。
date-iso8601-examples.sh
date -I # 2019-04-06
date -Iseconds # 2019-04-06T17:22:49+02:00
date -Ins # 2019-04-06T17:23:08,505995625+02:00供参考请参见 date 手册页。
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow