20 lines
318 B
Markdown
20 lines
318 B
Markdown
# date
|
|
|
|
> Set or display the system date.
|
|
|
|
- Display the date using the default locale:
|
|
|
|
`date +"%c"`
|
|
|
|
- Display the date in UTC and ISO 8601 format:
|
|
|
|
`date -u +"%Y-%m-%dT%H:%M:%SZ"`
|
|
|
|
- Display the number of seconds since the unix epoch:
|
|
|
|
`date +%s`
|
|
|
|
- Convert a unix epoch timestamp to a date:
|
|
|
|
`date -d @1473305798`
|