Does ls have a literal timestamp format specifier other than pre-defined ISO, for milliseconds?

I tried xxx, fff, but they do not work. Is there a specifier for milliseconds? I cannot use ISO etc pre-defined formats.

Have you tried using a date style format like this:

ls -l --time-style=+%3N  

If you want the full date time with milliseconds you could use something like this:

ls -l --time-style=+"%F %T.%3N"
2 Likes

No, I did not know they exist.
The latter is perfrect!
Is there a manual for these format strings?

Check the manpage for the date command.

1 Like

You know what’s funny? I had! But since the word ‘millisecond’ is not mentioned, I did not realize that nanosecond format could have been helpful.

1 Like