timotheecour / Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
http://nim-lang.org/
Other
2 stars 0 forks source link

port `stat.st_birthtime` in std/os #680

Open timotheecour opened 3 years ago

timotheecour commented 3 years ago

st_atime Time when file data last accessed. Changed by the mknod(2), utimes(2) and read(2) system calls.

 st_mtime         Time when file data last modified.  Changed by the mknod(2), utimes(2) and write(2) system calls.

 st_ctime         Time when file status was last changed (inode data modification).  Changed by the chmod(2), chown(2), link(2), mknod(2), rename(2),
                  unlink(2), utimes(2) and write(2) system calls.

 st_birthtime     Time of file creation. Only set once when the file is created. This field is only available in the 64 bit inode variants. On filesystems
                  where birthtime is not available, this field is set to 0 (i.e. epoch).

links

c - How to get file creation date in Linux? - Stack Overflow

posix.stat.struct_stat has st_birthtime which doesn't exist on Linux · Issue #3024 · cython/cython

iferencik commented 9 months ago

any progress here?