Share via


Obtaining and Modifying File Times (Windows Embedded CE 6.0)

1/6/2010

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