os.Path.atime

Returns the time of the last file access.

Syntax

os.Path.atime(
   path STRING)
  RETURNS STRING
  1. path is the path to a file.

Usage

The function returns a string containing the last access time for the specified file, in the standard format 'YYYY-MM-DD HH:MM:SS'.

If the function fails, it returns NULL.

Important:

The access time of a file may not be totally reliable, depending on the platform OS type and version, and file system type. Check Wikipedia article about criticism of the atime of a file.