Compartilhar via


FileTimeToLocalFileTime (Compact 2013)

3/28/2014

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

See Also

Reference

Time Functions
LocalFileTimeToFileTime
FILETIME

Other Resources

Timer Driver Reference