Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python windows get file modified date

# note: test.txt can also be a file path
import os.path, time
print("Last modified: %s" % time.ctime(os.path.getmtime("test.txt")))
print("Created: %s" % time.ctime(os.path.getctime("test.txt")))
 
PREVIOUS NEXT
Tagged: #python #windows #file #modified #date
ADD COMMENT
Topic
Name
3+7 =