os.Path.mtime

Returns the time of the last file modification.

Syntax

os.Path.mtime(
   fname STRING)
  RETURNING result STRING
  1. fname is the name of the file.
  2. result is the last modification time.

Usage

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

If the function fails, it returns NULL.