10.GetLocalTime
原文:
The
GetLocalTime function retrieves the current local date and time.
VOID GetLocalTime(
LPSYSTEMTIME
lpSystemTime
// address of system time structure
);
Parameters
lpSystemTime
Pointer to a
SYSTEMTIME structure to receive the current local date and time.
Return Values
This function does not return a value.
QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
See Also
翻译:
GetLocalTime获得当前当地的时间和日期。
VOID GetLocalTime(
LPSYSTEMTIME lpSystemTime //
系统时间结构体的地址
);
参数:指向用来接收本地当前日期和时间的系统时间结构体的指针。
返回值:无。