← Back to context

Comment by oneeyedpigeon

4 days ago

I know this is a joke, but as soon as I saw:

    06/22/2025

I backed away very quickly. I assume actual Windows uses the locale, so my eyeballs wouldn't be assaulted with this abomination.

For Linux/Mac users who are happy to stick with ls, but want a slash-formatted date, you can get something that is sane for you (whether or not it is sane for the rest of us) by running:

    ls -l -D '%x'

Where -D specifies a custom date format and %x means 'the date in your locale'.