- 论坛徽章:
- 6
|
本帖最后由 1cpuer 于 2017-04-21 10:07 编辑
# date --iso-8601="+ %Y-%m-%d %H:%M:%S"
date: "--iso-8601" 的参数"+ %Y-%m-%d %H:%M:%S" 无效
有效的参数为:
- "hours"
- "minutes"
- "date"
- "seconds"
- "ns"
Try 'date --help' for more information.
# date --help
-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-0600
# date --iso-8601
2017-04-21
# date -I
2017-04-21
|
|