Lol, this is unexpected and sad 

Installed "file-attributes" library to retrieve ctime from files and got "Not implemented"

#CommonLisp #programming

BTW, SBCLs "(sb-posix:stat-ctime (sb-posix:stat filename))" somehow returns wrong ctime — I got 1956 as a file creation year, while IRL it is equal to 2026 

#CommonLisp #SBCL

@evgandr sb-posix:stat returns the linux structure, not universal-time.

You need to convert from posix time:

$ F=$(mktemp /tmp/sbcl-ctime.XXXXXX)
$ stat --format=%w $F
2026-03-05 22:18:28.153222304 +0100
$ sbcl \
--noinform \
--eval '(asdf:load-system "local-time")' \
--eval "(format t \"~A~%\" (local-time:unix-to-timestamp (sb-posix:stat-ctime (sb-posix:stat \"$F\"))))" \
--quit
2026-03-05T22:18:28.000000+01:00

EDIT: Didn't notice others had answered the same already.