Created
February 9, 2015 16:21
-
-
Save PSJoshi/0f507d962202bd710709 to your computer and use it in GitHub Desktop.
python - file creation and modification times
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file creation and modification times | |
import os.path, time | |
print "last modified: %s" % time.ctime(os.path.getmtime(file_name)) | |
print "created: %s" % time.ctime(os.path.getctime(file_name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment