Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function converts a file time based on the UTC to a local file time.
Syntax
BOOL FileTimeToLocalFileTime( const FILETIME* lpFileTime, LPFILETIME lpLocalFileTime ); |
Parameters
- lpFileTime
-
[in] Pointer to a FILETIMEstructure containing the UTC-based file time to be converted into a local file time.
- lpLocalFileTime
-
[out] Pointer to a FILETIMEstructure to receive the converted local file time.
This parameter cannot be the same as the lpFileTimeparameter.
Return Value
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
This function uses the current settings for the time zone and daylight saving time. Therefore, if it is daylight saving time, this function takes daylight saving time into account, even if you are converting standard time.
Requirements
Header | winbase.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |