Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python os module

import os.path, time

file = pathlib.Path('abc.py')
print("Last modification time: %s" % time.ctime(os.path.getmtime(file)))
print("Last metadata change time or path creation time: %s" % time.ctime(os.path.getctime(file)))
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #os #module
ADD COMMENT
Topic
Name
4+8 =