Skip to content

Instantly share code, notes, and snippets.

@PSJoshi
Created February 9, 2015 16:21
Show Gist options
  • Save PSJoshi/0f507d962202bd710709 to your computer and use it in GitHub Desktop.
Save PSJoshi/0f507d962202bd710709 to your computer and use it in GitHub Desktop.
python - file creation and modification times
# 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