ID EN
OS Path

getatime

Python 3.11

Return the time of last access of path. The return value is a floating point number giving the number of seconds since the epoch (see the time module). Raise OSError if the file does not exist or is inaccessible.

Syntax

PYTHON
os.path.getatime(path)

See Also

time OSError