Skip to content

Commit 33b3bb8

Browse files
committed
Note in the docs that the UTCTimes param to SetFileTime is ignored on py3k.
1 parent 2aee7cb commit 33b3bb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

win32/src/win32file.i

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ static PyObject *PySetFileTime (PyObject *self, PyObject *args, PyObject *kwargs
737737
PyObject *obLastWriteTime = Py_None; // @pyparm <o PyTime>|LastWriteTime|None|File written time. None for no change.
738738
BOOL UTCTimes = FALSE; // @pyparm boolean|UTCTimes|False|If True, input times are treated as UTC and no conversion is done,
739739
// otherwise they are treated as local times. Defaults to False for backward compatibility.
740+
// This parameter is ignored in Python 3.x, where you should always pass datetime objects
741+
// with timezone information.
740742

741743
static char *keywords[] = {"File", "CreationTime", "LastAccessTime", "LastWriteTime", "UTCTimes", NULL};
742744
HANDLE hHandle;

0 commit comments

Comments
 (0)