共用方式為


InternetTimeToSystemTime

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function takes an HTTP time/date string and converts it to a SYSTEMTIME structure.

Syntax

BOOL InternetTimeToSystemTime(
  LPCTSTR lpszTime, 
  SYSTEMTIME* pst, 
  DWORD dwReserved
);

Parameters

  • lpszTime
    [in] Long pointer to a null-terminated date/time string to convert.
  • pst
    [out] Pointer to the converted time.
  • dwReserved
    [in] Reserved. Must be set to zero.

Return Value

TRUE indicates that the string was converted. FALSE indicates failure. To get extended error information, call GetLastError.

Requirements

Header wininet.h
Library wininet.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

WinInet Functions

Other Resources

SYSTEMTIME