Added date command examples regarding given dates

This commit is contained in:
Michele Cereda
2023-02-14 22:03:14 +01:00
parent 0f03fa42a1
commit 9517628b74

View File

@@ -12,4 +12,8 @@ date '+%Y-%m-%d'
# Print the current date in the 'YYYY-MM-DDThh:mm:SS' format.
date '+%FT%T'
date '+%Y-%m-%dT%H:%M:%S'
# Print a specific date in a different format.
date -d '+10 days' '+%FT%T.00Z' # GNU
date -v '+10d' '+%FT%T.00Z' # BSD
```