mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Patch #658927: Add getctime to os.path.
Document that getatime and getmtime may return floats.
This commit is contained in:
parent
24a880b499
commit
96a60e4af5
6 changed files with 30 additions and 6 deletions
|
@ -67,18 +67,28 @@ unchanged.
|
|||
|
||||
\begin{funcdesc}{getatime}{path}
|
||||
Return the time of last access of \var{filename}. The return
|
||||
value is integer giving the number of seconds since the epoch (see the
|
||||
value is a number giving the number of seconds since the epoch (see the
|
||||
\refmodule{time} module). Raise \exception{os.error} if the file does
|
||||
not exist or is inaccessible.
|
||||
\versionadded{1.5.2}
|
||||
\versionchanged[If \function{os.stat_float_times()} returns True, the result is a floating point number]{2.3}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{getmtime}{path}
|
||||
Return the time of last modification of \var{filename}. The return
|
||||
value is integer giving the number of seconds since the epoch (see the
|
||||
value is a number giving the number of seconds since the epoch (see the
|
||||
\refmodule{time} module). Raise \exception{os.error} if the file does
|
||||
not exist or is inaccessible.
|
||||
\versionadded{1.5.2}
|
||||
\versionchanged[If \function{os.stat_float_times()} returns True, the result is a floating point number]{2.3}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{getctime}{path}
|
||||
Return the time of creation of \var{filename}. The return
|
||||
value is a number giving the number of seconds since the epoch (see the
|
||||
\refmodule{time} module). Raise \exception{os.error} if the file does
|
||||
not exist or is inaccessible.
|
||||
\versionadded{2.3}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{getsize}{path}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue