| DWORD WINAPI ConvertSystemTime(
|
| |
LPSYSTEMTIME lpSystemTime |
|
| );
|
The ConvertSystemTime function converts the specified
system time to network time. The network time value is a 32-bit
number, represented as the number of seconds since midnight, 1
January 1900 UTC.
Parameters
- lpSystemTime
- A pointer to a SYSTEMTIME
structure which will be modified for the specified network
time.
Return Value
If the system time could be converted, the function returns the
number of seconds since midnight, 1 January 1900 UTC. If the
pointer to the SYSTEMTIME structure is invalid, or the structure
contains invalid data, the function will return zero.
Remarks
The network time value can represent a date and time up to the
year 2036.
Requirements
Client: Requires Windows 7, Windows Vista or Windows
XP.
Server: Requires Windows Server 2008 or Windows Server
2003.
Header: Include cstools7.h.
Library: Use cstimav7.lib.
Unicode: Implemented as Unicode and ANSI versions.
See Also
ConvertNetworkTime,
UpdateLocalTime
|