Python's getctime() method returns the value only in seconds. Is there a more accurate way?
-
Note: it's not necessarily the creation time: stackoverflow.com/questions/237079/…Karoly Horvath– Karoly Horvath2016-02-16 10:35:55 +00:00Commented Feb 16, 2016 at 10:35
-
Thank you for you comment. Yeah, I know the differences on Windows and *nix. :)gabesz– gabesz2016-02-16 10:59:27 +00:00Commented Feb 16, 2016 at 10:59
Add a comment
|
1 Answer
The time is stored in the underlying filesystem.
Using ext2 as an example the ctime is stored as "32bit value representing the number of seconds since january 1st 1970, of when the inode was created" (http://www.nongnu.org/ext2-doc/ext2.html#I-CTIME)
If it is not storing the exact time to a millisecond so it is not possible to read it