Kernel32GetSystemTime Method

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

To retrieve the current system date and time in local time, use the GetLocalTime(SystemTime) function.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll")]
public static void GetSystemTime(
	ref SystemTime refTime
)

Parameters

refTime  SystemTime
A pointer to a SystemTime structure that receives the current system date and time.

Remarks

See Also