mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
parent
043fff0881
commit
1cd6e4dc38
3 changed files with 7 additions and 3 deletions
|
@ -909,7 +909,8 @@ the \ctype{stat} structure, namely:
|
||||||
\member{st_atime} (time of most recent access),
|
\member{st_atime} (time of most recent access),
|
||||||
\member{st_mtime} (time of most recent content modification),
|
\member{st_mtime} (time of most recent content modification),
|
||||||
\member{st_ctime}
|
\member{st_ctime}
|
||||||
(time of most recent content modification or metadata change).
|
(platform dependent; time of most recent metadata change on \UNIX, or
|
||||||
|
the time of creation on Windows).
|
||||||
|
|
||||||
\versionchanged [If \function{stat_float_times} returns true, the time
|
\versionchanged [If \function{stat_float_times} returns true, the time
|
||||||
values are floats, measuring seconds. Fractions of a second may be
|
values are floats, measuring seconds. Fractions of a second may be
|
||||||
|
|
|
@ -110,7 +110,10 @@ Time of last modification.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
\begin{datadesc}{ST_CTIME}
|
\begin{datadesc}{ST_CTIME}
|
||||||
Time of last status change (see manual pages for details).
|
The ``ctime'' as reported by the operating system. On some systems
|
||||||
|
(like \UNIX) is the time of the last metadata change, and, on others
|
||||||
|
(like Windows), is the creation time (see platform documentation for
|
||||||
|
details).
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
The interpretation of ``file size'' changes according to the file
|
The interpretation of ``file size'' changes according to the file
|
||||||
|
|
|
@ -146,7 +146,7 @@ def getatime(filename):
|
||||||
return os.stat(filename).st_atime
|
return os.stat(filename).st_atime
|
||||||
|
|
||||||
def getctime(filename):
|
def getctime(filename):
|
||||||
"""Return the creation time of a file, reported by os.stat()."""
|
"""Return the metadata change time of a file, reported by os.stat()."""
|
||||||
return os.stat(filename).st_ctime
|
return os.stat(filename).st_ctime
|
||||||
|
|
||||||
# Is a path a symbolic link?
|
# Is a path a symbolic link?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue