Skip to content

Instantly share code, notes, and snippets.

@bgulla
Created January 6, 2015 18:20
Show Gist options
  • Save bgulla/13c1ac561b319b57c874 to your computer and use it in GitHub Desktop.
Save bgulla/13c1ac561b319b57c874 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import os.path, time, sys
if len(sys.argv) < 2:
print "Error: No file argument provided"
exit()
file = sys.argv[1]
print "last modified: %s" % time.ctime(os.path.getmtime(file))
print "created: %s" % time.ctime(os.path.getctime(file))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment