GetSystemTimeAsFileTime function

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

Syntax

void GetSystemTimeAsFileTime(
  LPFILETIME lpSystemTimeAsFileTime
);

Parameters

lpSystemTimeAsFileTime

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

Return Value

This function does not return a value.

Requirements

   
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