SetFileTime(File, CreationTime, LastAccessTime, LastWriteTime, UTCTimes)

Sets the date and time that a file was created, last accessed, or last modified.



Previously opened handle (opened with FILE_WRITE_ATTRIBUTES access).

CreationTime=None : PyTime

File created time. None for no change.

LastAccessTime=None : PyTime

File access time. None for no change.

LastWriteTime=None : PyTime

File written time. None for no change.

UTCTimes=False : boolean

If True, input times are treated as UTC and no conversion is done, otherwise they are treated as local times. Defaults to False for backward compatibility.