mirror of https://github.com/CrimsonTome/tldr.git
date: add Chinese translation
parent
0633a7e99e
commit
de606c8e87
|
@ -0,0 +1,19 @@
|
||||||
|
# date
|
||||||
|
|
||||||
|
> 设置或显示系统日期
|
||||||
|
|
||||||
|
- 使用默认区域设置的格式显示当前日期 :
|
||||||
|
|
||||||
|
`date +"%c"`
|
||||||
|
|
||||||
|
- 以 UTC 和 ISO 8601 格式显示当前日期:
|
||||||
|
|
||||||
|
`date -u +"%Y-%m-%dT%H:%M:%SZ"`
|
||||||
|
|
||||||
|
- 将当前日期显示为unix时间戳(自1970-01-01 00:00:00以来的秒数)
|
||||||
|
|
||||||
|
`date +%s`
|
||||||
|
|
||||||
|
- 使用默认格式显示特定日期(格式化指定UNIX时间戳):
|
||||||
|
|
||||||
|
`date -r 1473305798`
|
Loading…
Reference in New Issue