mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 09:55:24 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the current date in UTC, using the ISO 8601 format:
|
||||
|
||||
`date -u +%Y-%m-%dT%H:%M:%S%Z`
|
||||
`date {{[-u|--utc]}} +%Y-%m-%dT%H:%M:%S%Z`
|
||||
|
||||
- Display the current date as a Unix timestamp (seconds since the Unix epoch):
|
||||
|
||||
@@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Convert a date specified as a Unix timestamp to the default format:
|
||||
|
||||
`date -d @{{1473305798}}`
|
||||
`date {{[-d|--date]}} @{{1473305798}}`
|
||||
|
||||
- Convert a given date to the Unix timestamp format:
|
||||
|
||||
`date -d "{{2018-09-01 00:00}}" +%s --utc`
|
||||
`date {{[-d|--date]}} "{{2018-09-01 00:00}}" +%s {{[-u|--utc]}}`
|
||||
|
||||
- Display the current date using the RFC-3339 format (`YYYY-MM-DD hh:mm:ss TZ`):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user