CFileTime Class
This class provides methods for managing the date and time values associated with a file.
class CFileTime :
public FILETIME
Remarks
This class provides methods for managing the date and time values associated with the creation, access and modification of files. The methods and data of this class are frequently used in conjunction with CFileTimeSpan objects, which deal with relative time values.
The date and time value is stored as a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601. This is the Coordinated Universal Time (UTC) format.
The following static const member variables are provided to simplify calculations:
Member variable |
Number of 100-nanosecond intervals |
---|---|
Millisecond |
10,000 |
Second |
Millisecond * 1,000 |
Minute |
Second * 60 |
Hour |
Minute * 60 |
Day |
Hour * 24 |
Week |
Day * 7 |
Note Not all file systems can record creation and last access time and not all file systems record them in the same manner. For example, on the Windows NT FAT file system, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and access time has a resolution of 1 day (the access date). On NTFS, access time has a resolution of 1 hour. Furthermore, FAT records times on disk in local time, but NTFS records times on disk in UTC. For more information, see File Times.
Requirements
Header: atltime.h