How To Convert a UNIX time_t to a Win32 FILETIME or SYSTEMTIME (167296)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- the operating system: Microsoft Windows NT 3.51
- the operating system: Microsoft Windows NT 4.0
- the operating system: Microsoft Windows 2000
- the operating system: Microsoft Windows XP
This article was previously published under Q167296 SUMMARY
Under UNIX platforms, file times are maintained in the form of a ANSI C runtime arithmetic type named 'time_t', which represents seconds since
midnight January 1, 1970 UTC (coordinated universal time).
Under Win32 platforms, file times are maintained primarily in the form of a
64-bit FILETIME structure, which represents the number of 100-nanosecond
intervals since January 1, 1601 UTC (coordinate universal time).
This article shows how to convert UNIX time to other Win32 time formats.
Modification Type: | Minor | Last Reviewed: | 9/27/2004 |
---|
Keywords: | kbDateTime kbhowto kbKernBase kbProgramming KB167296 |
---|
|