FileYmdHms

Returns a file time in the YmdHms datetime format.

Syntax:

FileYmdHms(filename)

Parameters:

(s) filename filename.

Returns:

(s) file time in the YmdHms datetime format.

 

Use this function to retrieve a file time in the YmdHms format.

IntControl 41 can be used to control YmdHms format returned by time functions.

This function converts a file time to local time using the users current settings for the time zone and daylight saving time. You must take care when using file times if the user has set the system to automatically adjust for daylight saving time. See FileCompare.

This function supports extended-length path names.

Example:


b=FileYmdHms("C:\CONFIG.SYS")
Message("File Time is", b)
See Also:

FileTimeGet, FileTimeGetEx, TimeDate, TimeAdd, TimeDiffDays, TimeYmdHms, TimeDelay, TimeWait, IntControl 41