Article ID: 167296 - Last Review: November 21, 2006 - Revision: 3.3 How To Convert a UNIX time_t to a Win32 FILETIME or SYSTEMTIME
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. MORE INFORMATION
The following function converts a filetime in the UNIX time_t format to a
Win32 FILETIME format. Note that time_t is a 32-bit value and FILETIME is a
64-bit structure, so the Win32 function, Int32x32To64() is used in the
following function:
APPLIES TO
| Other Resources Other Support Sites
CommunityArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top