Notch Notch
Manual 1.0 Manual 0.9.23
 Light | Dark
GetFileModifiedDate()

GetFileModifiedDate()

Updated: 4 Dec 2023

Purpose #

Returns the modified time of a file.

Syntax #

double GetFileModifiedDate(String path_to_file);

Parameters

path_to_fileThe path to the file to obtain the modified time.

Example #

LastModifiedTime = 0;
function Update()
{
    newModifiedTime = GetFileModifiedDate("c:\\myFolder\\myFile.csv");
    if(newModifiedTime != null)
    {
        if(newModifiedTime > LastModifiedTime)
        {
            // Do something here
            LastModifiedTime = newModifiedTime;
        }
    }
}