Patch #658927: Add getctime to os.path.

Document that getatime and getmtime may return floats.
This commit is contained in:
Martin v. Löwis 2002-12-31 13:11:54 +00:00
parent 24a880b499
commit 96a60e4af5
6 changed files with 30 additions and 6 deletions

View file

@ -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}