1

Python's getctime() method returns the value only in seconds. Is there a more accurate way?

2
  • Note: it's not necessarily the creation time: stackoverflow.com/questions/237079/… Commented Feb 16, 2016 at 10:35
  • Thank you for you comment. Yeah, I know the differences on Windows and *nix. :) Commented Feb 16, 2016 at 10:59

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.