On this page
genericpath.getctime
Prev: genericpath.getatime | Up: genericpath | Next: genericpath.getmtime
Rel: genericpath.commonprefix, genericpath.exists, genericpath.getatime, genericpath.getmtime
Ref: docs.python.org — genericpath.getctime
Tags: #public #python3 #stdlib #genericpath
Import
import genericpath
from genericpath import getctime
Signature & Overview
genericpath.getctime(filename)
Return the metadata change time of a file, reported by os.stat().
Usage
import os
assert os.path.getctime(".") > 0
Gotchas
- OS-dependent meaning: Metadata change time (
ctime) on Unix, creation time on Windows.
REPL Inspect
from genericpath import getctime
help(getctime)
Linked from
- tuts/python3/stdlib_module/genericpath
- tuts/python3/stdlib_module/genericpath/commonprefix
- tuts/python3/stdlib_module/genericpath/exists
- tuts/python3/stdlib_module/genericpath/getatime
- tuts/python3/stdlib_module/genericpath/getmtime
- tuts/python3/stdlib_module/genericpath/getsize
- tuts/python3/stdlib_module/genericpath/isdevdrive
- tuts/python3/stdlib_module/genericpath/isdir
- tuts/python3/stdlib_module/genericpath/isfile
- tuts/python3/stdlib_module/genericpath/isjunction
- tuts/python3/stdlib_module/genericpath/islink
- tuts/python3/stdlib_module/genericpath/lexists
- tuts/python3/stdlib_module/genericpath/samefile
- tuts/python3/stdlib_module/genericpath/sameopenfile
- tuts/python3/stdlib_module/genericpath/samestat
Related notes
- tuts/python3/stdlib_module/genericpath/commonprefix Linked here; links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/exists Linked here; links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/getatime Linked here; links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/getmtime Linked here; links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/genericpath/getsize links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/isdevdrive links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/isdir links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/isfile links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/isjunction links to this page; shared tags: #genericpath, #stdlib