InternetTimeToSystemTimeW function (wininet.h)

Converts an HTTP time/date string to a SYSTEMTIME structure.

Syntax

BOOL InternetTimeToSystemTimeW(
  [in]  LPCWSTR    lpszTime,
  [out] SYSTEMTIME *pst,
  [in]  DWORD      dwReserved
);

Parameters

[in] lpszTime

Pointer to a null-terminated string that specifies the date/time to be converted.

[out] pst

Pointer to a SYSTEMTIME structure that receives the converted time.

[in] dwReserved

This parameter is reserved and must be 0.

Return value

Returns TRUE if the string was converted, or FALSE otherwise. To get extended error information, call GetLastError.

Remarks

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
 

Note

The wininet.h header defines InternetTimeToSystemTime as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wininet.h
Library Wininet.lib
DLL Wininet.dll

See also

Common Functions

WinINet Functions