Procedure DataFileGetTime(datafile, time)


With the procedure DataFileGetTime you can obtain the time on which the data of a specific case or dataset was last modified (saved).

        datafile,      ! (input) element in the set AllDataFiles
        time           ! (output) scalar string parameter



An element in the set AllDataFiles.


A scalar string valued parameter. On return this parameter will contain a string representation of the modification time, using AIMMS’ standard date and time format: “YYYY-MM-DD hh:mm:ss”.

Return Value

The procedure returns 1 if the given datafile exists and contains saved data. If the datafile does not exist, or if no data has yet been saved in the datafile, then the procedure returns 0.


  • This function is only applicable if the project option Data_Management_style is set to Single_Data_Manager_file.

See also

The procedures DataFileExists, FileTime.