Group: Internet Functions (WinInet) - Library: wininet
Converting an HTTP time/date string to a SYSTEMTIME structure
How to retrieve information about a cache entry (Internet Explorer)
BOOL InternetTimeFromSystemTime( const SYSTEMTIME* pst,
DWORD dwRFC,
LPTSTR lpszTime,
DWORD cbTime
);
DECLARE INTEGER InternetTimeFromSystemTime IN wininet;
STRING @ pst,;
INTEGER dwRFC,;
STRING @ lpszTime,;
INTEGER cbTime
pst [in] Pointer to a SYSTEMTIME structure that contains the date and time to format.
dwRFC [in] Unsigned long integer value that contains the RFC format used. Currently, the only valid format is INTERNET_RFC1123_FORMAT.
lpszTime [out] Pointer to a string buffer that receives the formatted date and time. The buffer should be of size INTERNET_RFC1123_BUFSIZE.
cbTime [in] Unsigned long integer value that contains the size, in bytes, of the lpszTime buffer.
Returns TRUE if the function succeeds, or FALSE otherwise.