[ACCEPTED]-How do I get the modified date/time of a file in Python?-file
Accepted answer
os.path.getmtime(filepath)
or
os.stat(filepath).st_mtime
0
Formated:
import time
print time.strftime("%m/%d/%Y %I:%M:%S %p",time.localtime(os.path.getmtime(fname)))
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.