I need to set a file creation date to "2005/01/01 13:00:00 PM". The date format is (YYYY/MM/DD).
Any help or example will be greatly appreciated.
Thank you
Gavin
Any help or example will be greatly appreciated.
Thank you
Gavin
import os import time fn = "test.txt" os.utime(fn, (time.time(), 1038848567))
>>> import time >>> time.time() 1269625312.171 >>> time.ctime(1038848567) 'Mon Dec 02 11:02:47 2002' >>>
Comment