GetSystemTimeAsFileTime function (sysinfoapi.h)

Retrieves the current system date and time. The information is in Coordinated Universal Time (UTC) format.

Syntax

void GetSystemTimeAsFileTime(
  [out] LPFILETIME lpSystemTimeAsFileTime
);

Parameters

[out] lpSystemTimeAsFileTime

A pointer to a FILETIME structure to receive the current system date and time in UTC format.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header sysinfoapi.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See also

FILETIME

File Times

GetSystemTime

SYSTEMTIME

System Time

SystemTimeToFileTime

Time Functions