machine:epoch_nanoseconds(Secs,Nanosecs)
This one actually works in windows, but windoze resolution is 100ns, while linux mac is 1 ns. This is a windoze limitation for some reason.
file_io:file_time_ns(file,secs,nanosecs)
This one only works in linux and mac. In windows, nanosecs=0.
If somebody has the patience to figure the windoze way for getting nanosecs here, it'd be great.
I tried but could not get the full picture and gave up.
There is this thing: https://docs.microsoft.com/en-us/windows/win32/sysinfo/retrieving-the-last-write-time
but unclear how to get from there to sec/nsec since epoch (1970). For some reason, some funcs in windows use 1601 as epoch and some 1970.