I am needing help with figuring something out.
I have a python script that reads a directory and gives me the last modified date. However, the output is not what I am looking for.
I get the time to be 24-hour format as opposed to US standard 12-hour format. What modifications do I need to make?
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")))