Lsd: Feature request: date time format option

Created on 28 Jun 2019  ·  5Comments  ·  Source: Peltoche/lsd

It would be better if we can set an option like --date-format='%Y-%m-%d %a %H:%M:%S'
Thank you!

kinenhancement

Most helpful comment

@Peltoche feature merged in #302. please close this issue

All 5 comments

Seconding this; ogham/exa supports --time-style=<iso, long-iso, full-iso> which I find extremely useful. Example with --time-style=iso:

Permissions Size User     Date Modified Name
.rw-r--r--  4.1k username 07-12 10:52   .zshrc

There is apparently no --time-style=ciso option that I can find for exa, and to my eyes they get the actual formatting wrong in each of the styles they offer. I understand using spaces to provide easy column definitions that can be parsed, but separating the timezone from the time by a space character really isn't a good idea.

I would definitely like to see some configurability here. Allowing strformat() options would seem to be the easy solution, and you could provide some good defaults.

302

The full request that contains the feature.

@Peltoche feature merged in #302. please close this issue

You can now pass datetime format to --date as of #302, thanks to @dvvvvvv .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Koovu picture Koovu  ·  7Comments

lez picture lez  ·  3Comments

ghost picture ghost  ·  3Comments

jfernandz picture jfernandz  ·  6Comments

ABSphreak picture ABSphreak  ·  8Comments