FileTimeToLocalFileTime

Converts a file time to a local file time.

Syntax

Copy
BOOL FileTimeToLocalFileTime(
    [in]    const FILETIME* lpFileTime,
    [out]   LPFILETIME lpLocalFileTime
);

Parameters

[in] lpFileTime

A pointer to a FILETIME structure containing the UTC-based file time to be converted into a local file time.

[out] lpLocalFileTime

A pointer to a FILETIME structure to receive the converted local file time. This parameter cannot be the same as the lpFileTime parameter.

Return Value

If the function succeeds, it returns a non-zero value. If the function fails, it returns 0 (zero). Call GetLastError to get extended error information.

Remarks

FileTimeToLocalFileTime uses the current settings for the time zone and daylight-saving time. Therefore, if it is daylight-saving time, this function will take it into account, even if the time you are converting is in standard time.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

windows.h

wRTOS_rtss.lib