Skip to Content
gnux

--time-style

Time/date format with -l, TIME_STYLE: full-iso, long-iso, iso, locale, or +FORMAT.

An option of lsx.

Usage

lsx --time-style=TIME_STYLE [FILE]...

Details

ShortLongValueDefaultMeaning
--time-styleTIME_STYLEtime/date format with -l, TIME_STYLE: full-iso, long-iso, iso, locale, or +FORMAT

Examples

List a directory itself rather than its contents, with ISO timestamps

lsx -ld --time-style=long-iso ~/projects

Show complete timestamps, or a custom format

lsx --full-time notes.txt && lsx -l --time-style=+%Y-%m-%d notes.txt

Help in the terminal

gnux help lsx --time-style

On this page