@@ -2134,18 +2134,19 @@ Files and Directories
21342134 Availability: Unix, Windows.
21352135
21362136
2137- .. function :: utime(path, times)
2137+ .. function :: utime(path[ , times] )
21382138
21392139 Set the access and modified times of the file specified by *path *. If *times *
2140- is ``None ``, then the file's access and modified times are set to the current
2141- time. (The effect is similar to running the Unix program :program: `touch ` on
2142- the path.) Otherwise, *times * must be a 2-tuple of numbers, of the form
2143- ``(atime, mtime) `` which is used to set the access and modified times,
2144- respectively. Whether a directory can be given for *path * depends on whether
2145- the operating system implements directories as files (for example, Windows
2146- does not). Note that the exact times you set here may not be returned by a
2147- subsequent :func: `~os.stat ` call, depending on the resolution with which your
2148- operating system records access and modification times; see :func: `~os.stat `.
2140+ is ``None `` or not specified, then the file's access and modified times are
2141+ set to the current time. (The effect is similar to running the Unix program
2142+ :program: `touch ` on the path.) Otherwise, *times * must be a 2-tuple of
2143+ numbers, of the form ``(atime, mtime) `` which is used to set the access and
2144+ modified times, respectively. Whether a directory can be given for *path *
2145+ depends on whether the operating system implements directories as files
2146+ (for example, Windows does not). Note that the exact times you set here may
2147+ not be returned by a subsequent :func: `~os.stat ` call, depending on the
2148+ resolution with which your operating system records access and modification
2149+ times; see :func: `~os.stat `.
21492150
21502151 Availability: Unix, Windows.
21512152
0 commit comments