Kernel32GetLocalTime Method
Retrieves the current local date and time.
To retrieve the current date and time in Coordinated Universal Time (UTC) format,
use the
GetLocalTime(SystemTime) function.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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 GetLocalTime(
ref SystemTime refTime
)
<DllImportAttribute("Kernel32.dll">]
Public Shared Sub GetLocalTime (
ByRef refTime As SystemTime
)
Dim refTime As SystemTime
Kernel32.GetLocalTime(refTime)
public:
[DllImportAttribute(L"Kernel32.dll")]
static void GetLocalTime(
SystemTime% refTime
)
[<DllImportAttribute("Kernel32.dll")>]
static member GetLocalTime :
refTime : SystemTime byref -> unit
No code example is currently available or this language may not be supported.
Parameters
- refTime SystemTime
-
A pointer to a SystemTime structure that receives the current local date and time.