Xbasic
FILE_GET_DATE_TIME Function
Syntax
Date_Time_String as C = file_get_date_time(C filename [,C info ])
Arguments
- filename
The full path specification of the file.
- info
Character. Optional. Default = "dt". What type of information to return. "d" = Date "t" = Time "dt" = Date and time
Description
Returns the date, or time when a file was last updated. Info: d - date, t - time, dt - date&time
Discussion
FILE_GET_DATE_TIME() returns the date and/or time on which the file specified by filename was last updated. This high level command is easier than using the low level FILEFIND.GET().
Example
? FILE_GET_DATE_TIME("C:\Databases\RoboHelper\Robohelper.Alx") = "01/23/2003 11:13:44 00 am" ? FILE_GET_DATE_TIME("C:\Databases\RoboHelper\Robohelper.Alx", "d") = "01/23/2003" ? FILE_GET_DATE_TIME("C:\Databases\RoboHelper\Robohelper.Alx", "t") = " 11:13:44 00 am"
See Also