FileAge

Description:

baFileAge returns the date of a file in seconds.

Platforms:

Windows and Macintosh

Usage:

Result = baFileAge( FileName )

Arguments:

String.
FileName is the file to get the age of.

Returns:

Integer.
Returns the age of the file in seconds.

Examples:

Director:
Age = baFileAge( "c:\data\student.dat" )

Authorware:
Age := baFileAge( "c:\\data\\student.dat" )
 

Notes:

The number returned is the number of seconds since an arbitrary date. The number means little by itself, but can be used to compare the dates of two files. The file with higher number is the newer file. For example:

if baFileAge( "c:\\data\\student.dat"" ) > baFileAge( "a:\\student.dat" ) then
   -- file on "C" drive is newer than the one on "A" drive.
 

See also:

baFileDate
baFileDateEx
baFileVersion