lf icon indicating copy to clipboard operation
lf copied to clipboard

Use `set info size:time` with different time format

Open john-soda opened this issue 3 years ago • 2 comments

Is it somehow possible to use the time info in the format 2022-05-14 18:59 instead of May 14 18:59 ?

Thanks and regards john-soda

john-soda avatar Jul 18 '22 19:07 john-soda

Found an answer in somebody else lfrc

set infotimefmtnew "2006-01-02 15:04:05"
set infotimefmtold "2006-01-02 15:04:05"

But to have somewhere a link about the possibilities with some examples would be really helpful. Because for me it's still not clear what I can do and what not? For e.g. if I change in my lfrc the line set infotimefmtnew "2006-01-02 15:04:05" to set infotimefmtnew "2022-07-18 15:04:05" I get a totally weird timestamp like 181818+02-78 Is this link somehow relevant https://go.dev/src/time/format.go?

john-soda avatar Jul 18 '22 20:07 john-soda

Correct, time formatting in lf is done with Go's native time library. So any examples for that would work here https://yourbasic.org/golang/format-parse-string-time-date-example/

Limero avatar Aug 06 '22 13:08 Limero