os.Path.getModificationTime

Returns the last time the file was modified.

Syntax

os.Path.getModificationTime(
     path STRING)
  RETURNS DATETIME YEAR TO FRACTION(5)
  1. path is the name of the file.

Usage

This method returns the last modification time of a file as a DATETIME value.

Depending on the platform, the fraction of seconds may not be supported. Linux, Microsoft® Windows® and Apple® macOS™ support fraction of seconds.

If the function fails, it returns NULL.