date

date

Show / set date time

常用参数

  • `-u``` : 使用 UTC 时区
  • --rfc-3339=<FMT> : output date/time in RFC 3339 format. FMT='date', 'seconds', or 'ns' for date and time to the indicated precision.

Example

  • date -u --rfc-3339=seconds : 2018-01-15 08:53:04+00:00
  • date -u --rfc-3339=date : 2018-01-15

Last update: 2018-01-15 09:04:30 UTC