Partager via


FileTimeToLocalFileTime (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

Time Functions
LocalFileTimeToFileTime
FILETIME

Other Resources

Timer Driver Reference