Freigeben über


FileTimeToLocalFileTime

A version of this page is also available for

Windows Embedded CE 6.0 R3

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 FILETIME structure containing the UTC-based file time to be converted into a local file time.
  • lpLocalFileTime
    [out] Pointer to a FILETIME structure to receive the converted local file time.

    This parameter cannot be the same as the lpFileTime parameter.

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

See Also

Reference

Time Functions
LocalFileTimeToFileTime
FILETIME

Other Resources