-I, --iso-8601
Output date/time in ISO 8601 format. FMT='date' for date only (the default), 'hours', 'minutes', 'seconds', or 'ns'.
An option of datex.
Usage
datex -I [+FORMAT]
datex --iso-8601[=FMT] [+FORMAT]Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-I | --iso-8601 | FMT (optional) | output date/time in ISO 8601 format. FMT='date' for date only (the default), 'hours', 'minutes', 'seconds', or 'ns' |
Examples
Get today's date in a sortable form for a file name
datex -IStamp a log line with a precise, sortable time
datex -IsecondsHelp in the terminal
gnux help datex --iso-8601