Skip to Content
gnux

-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

ShortLongValueDefaultMeaning
-I--iso-8601FMT (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 -I

Stamp a log line with a precise, sortable time

datex -Iseconds

Help in the terminal

gnux help datex --iso-8601

On this page