-d, --date
Display time described by STRING, not 'now'.
An option of datex.
Usage
datex -d STRING [+FORMAT]
datex --date=STRING [+FORMAT]Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-d | --date | STRING | display time described by STRING, not 'now' |
Examples
Stamp a log line with a precise, sortable time
datex -IsecondsRead a Unix timestamp you found in a log or a database
datex -u -d @1700000000Find the date three days ago, to clean up older files
datex -d '3 days ago' +%FFind the date of next Friday for a deadline
datex -d 'next friday' +%A,%FHelp in the terminal
gnux help datex --date