Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-27 00:18:38 +00:00
parent 5871f35fe8
commit 9fe6559a97
123 changed files with 660 additions and 357 deletions

View File

@@ -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`):