file_date

file_date — gives the file modification date.

Syntax

file_date (filename)

		

Arguments

filename

A filename as defined by the operating system.

Returns

The modification date of the file as an integer if the file exists and is readable, else nil.

Example

Gamma> fd =(file_date("myfile.dat"));
936977583
Gamma> date_of(fd);
"Fri Sep 10 11:33:03 1999"
Gamma> file_date("nonexistent.file");
nil
Gamma> file_date("unreadable.file");
nil
Gamma> 
		

See Also

clock, date_of