mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 07:35:24 +02:00
date.md: another attempt at clarifying the descriptions
This commit is contained in:
parent
cf55127935
commit
c9c5f9edc5
2 changed files with 8 additions and 8 deletions
|
@ -2,18 +2,18 @@
|
|||
|
||||
> Set or display the system date.
|
||||
|
||||
- Display the date using the default locale:
|
||||
- Display the current date using the default locale's format:
|
||||
|
||||
`date +"%c"`
|
||||
|
||||
- Display the date in UTC and ISO 8601 format:
|
||||
- Display the current date in UTC and ISO 8601 format:
|
||||
|
||||
`date -u +"%Y-%m-%dT%H:%M:%SZ"`
|
||||
|
||||
- Display the number of seconds since the unix epoch:
|
||||
- Display the current date as a Unix timestamp (seconds since the Unix epoch):
|
||||
|
||||
`date +%s`
|
||||
|
||||
- Convert a unix epoch timestamp to a date:
|
||||
- Display a specific date (represented as a Unix timestamp) using the default format:
|
||||
|
||||
`date -d @1473305798`
|
||||
|
|
|
@ -2,18 +2,18 @@
|
|||
|
||||
> Set or display the system date.
|
||||
|
||||
- Display the date using the default locale:
|
||||
- Display the current date using the default locale:
|
||||
|
||||
`date +"%c"`
|
||||
|
||||
- Display the date in UTC and ISO 8601 format:
|
||||
- Display the current date in UTC and ISO 8601 format:
|
||||
|
||||
`date -u +"%Y-%m-%dT%H:%M:%SZ"`
|
||||
|
||||
- Display the number of seconds since the unix epoch:
|
||||
- Display the current date as a Unix timestamp (seconds since the Unix epoch):
|
||||
|
||||
`date +%s`
|
||||
|
||||
- Perform a reverse conversion from a unix timestamp to a date:
|
||||
- Display a specific date (represented as a Unix timestamp) using the default format:
|
||||
|
||||
`date -r 1473305798`
|
||||
|
|
Loading…
Add table
Reference in a new issue