The man page says:
%t File's last modification time in the format returned by
the C `ctime' function.
$ ./find README -printf %t
Sat Dec 15 19:45:11 2018
$ find README -printf %t
Sat Dec 15 19:45:11.9607922010 2018
You can't get nanoseconds from ctime() if its argument is a time_t pointer. (Why
is it a pointer? Why not just the value? Who knows?)
And amazingly, ctime_r does _not_ take a struct timespec *.
So they reimplemented basic libc functions in their command, to add a fairly
obscure sub-option.
<jazzhands />
Rob
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net