Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1cd6e4dc
Commit
1cd6e4dc
authored
May 12, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix various descriptions of "ctime"
(closes SF patch #870287)
parent
043fff08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
Doc/lib/libos.tex
Doc/lib/libos.tex
+2
-1
Doc/lib/libstat.tex
Doc/lib/libstat.tex
+4
-1
Lib/posixpath.py
Lib/posixpath.py
+1
-1
No files found.
Doc/lib/libos.tex
View file @
1cd6e4dc
...
...
@@ -909,7 +909,8 @@ the \ctype{stat} structure, namely:
\member
{
st
_
atime
}
(time of most recent access),
\member
{
st
_
mtime
}
(time of most recent content modification),
\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
values are floats, measuring seconds. Fractions of a second may be
...
...
Doc/lib/libstat.tex
View file @
1cd6e4dc
...
...
@@ -110,7 +110,10 @@ Time of last modification.
\end{datadesc}
\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}
The interpretation of ``file size'' changes according to the file
...
...
Lib/posixpath.py
View file @
1cd6e4dc
...
...
@@ -146,7 +146,7 @@ def getatime(filename):
return
os
.
stat
(
filename
).
st_atime
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
# Is a path a symbolic link?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment