win32file.SetFileTime

None = SetFileTime(handle, CreatedTime , AccessTime , WrittenTime )

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

Parameters

handle : PyHANDLE/int

Previously opened handle (opened with GENERIC_WRITE access).

CreatedTime : PyTime

File created time. None for no change.

AccessTime : PyTime

File access time. None for no change.

WrittenTime : PyTime

File written time. None for no change.