mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									d58c26fec6
								
							
						
					
					
						commit
						93a8eacde5
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
					@ -702,9 +702,12 @@ Remove the file \var{path}.  This is the same function as
 | 
				
			||||||
Availability: Macintosh, \UNIX{}, Windows.
 | 
					Availability: Macintosh, \UNIX{}, Windows.
 | 
				
			||||||
\end{funcdesc}
 | 
					\end{funcdesc}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\begin{funcdesc}{utime}{path, (atime, mtime)}
 | 
					\begin{funcdesc}{utime}{path, times}
 | 
				
			||||||
Set the access and modified time of the file to the given values.
 | 
					Set the access and modified times of the file specified by \var{path}.
 | 
				
			||||||
(The second argument is a tuple of two items.)
 | 
					If \var{times} is \code{None}, then the file's access and modified
 | 
				
			||||||
 | 
					times are set to the current time.  Otherwise, \var{times} must be a
 | 
				
			||||||
 | 
					2-tuple of numbers, of the form \var{(atime, mtime)} which is used to
 | 
				
			||||||
 | 
					set the access and modified times, respectively.
 | 
				
			||||||
Availability: Macintosh, \UNIX{}, Windows.
 | 
					Availability: Macintosh, \UNIX{}, Windows.
 | 
				
			||||||
\end{funcdesc}
 | 
					\end{funcdesc}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue