On this page
posixpath.getatime
Prev: posixpath.expandvars | Up: posixpath | Next: posixpath.getctime
Rel: posixpath.abspath, posixpath.basename, posixpath.commonpath, posixpath.commonprefix
Ref: docs.python.org — posixpath.getatime
Tags: #public #python3 #stdlib #posixpath
Import
import posixpath
from posixpath import getatime
Signature & Overview
posixpath.getatime(filename)
Return the last access time of a file, reported by os.stat().
Usage
import posixpath
assert posixpath.getatime('.') > 0
Gotchas
- Returns last access time (epoch float); prefer
os.path.getatime().
REPL Inspect
from posixpath import getatime
help(getatime)
Linked from
Related notes
- tuts/python3/stdlib_module/posixpath/expandvars Linked here; links to this page; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/getctime Linked here; links to this page; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posixpath/abspath Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/basename Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/commonpath Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/commonprefix Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/dirname shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/exists shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/expanduser shared tags: #posixpath, #stdlib