Share via


Obtaining and Modifying File Times

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

Windows Embedded CE provides the GetFileTime function, which returns the file creation time, the last time that the file was accessed, and the last time that the file was written to. Windows Embedded CE creates file times in coordinated universal time (UTC) format. Use the FileTimeToLocalFileTime and the FileTimeToSystemTime functions to translate UTC time into the appropriate time-zone format.

You can also set file times by using the SetFileTime function. Depending on the file system, before using SetFileTime, you might need to gain access to the file by using CreateFile to open the file.

See Also

Concepts

Obtaining and Setting File Information
File System Operations