summaryrefslogtreecommitdiff
path: root/Lib/os2emxpath.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-31 13:11:54 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-12-31 13:11:54 +0000
commit467af24dca062ea963b973dabe71a08936180552 (patch)
treea3d68373ea9706132fba5fcc07193a5d47794fb8 /Lib/os2emxpath.py
parent3964d855c1a1cc90803cda2bd9994f3560c31393 (diff)
downloadcpython-467af24dca062ea963b973dabe71a08936180552.tar.gz
Patch #658927: Add getctime to os.path.
Document that getatime and getmtime may return floats.
Diffstat (limited to 'Lib/os2emxpath.py')
-rw-r--r--Lib/os2emxpath.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/os2emxpath.py b/Lib/os2emxpath.py
index 616d474c65..0315da027f 100644
--- a/Lib/os2emxpath.py
+++ b/Lib/os2emxpath.py
@@ -10,7 +10,7 @@ import stat
__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime",
- "getatime","islink","exists","isdir","isfile","ismount",
+ "getatime","getctime", "islink","exists","isdir","isfile","ismount",
"walk","expanduser","expandvars","normpath","abspath","splitunc",
"supports_unicode_filenames"]
@@ -186,6 +186,9 @@ def getatime(filename):
"""Return the last access time of a file, reported by os.stat()"""
return os.stat(filename).st_atime
+def getctime(filename):
+ """Return the creation time of a file, reported by os.stat()."""
+ return os.stat(filename).st_ctime
# Is a path a symbolic link?
# This will always return false on systems where posix.lstat doesn't exist.