Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93a8eac

Browse files
committed
Document the new additional signature for utime(). In addition to the
previous functionality utime(path, (atime, mtime)), now allowed is utime(path, None) which sets the file's times to the current time.
1 parent d58c26f commit 93a8eac

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Doc/lib/libos.tex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,12 @@ \subsection{Files and Directories \label{os-file-dir}}
702702
Availability: Macintosh, \UNIX{}, Windows.
703703
\end{funcdesc}
704704

705-
\begin{funcdesc}{utime}{path, (atime, mtime)}
706-
Set the access and modified time of the file to the given values.
707-
(The second argument is a tuple of two items.)
705+
\begin{funcdesc}{utime}{path, times}
706+
Set the access and modified times of the file specified by \var{path}.
707+
If \var{times} is \code{None}, then the file's access and modified
708+
times are set to the current time. Otherwise, \var{times} must be a
709+
2-tuple of numbers, of the form \var{(atime, mtime)} which is used to
710+
set the access and modified times, respectively.
708711
Availability: Macintosh, \UNIX{}, Windows.
709712
\end{funcdesc}
710713

0 commit comments

Comments
 (0)