InternetTimeFromSystemTime (Windows CE 5.0)
This function formats a date and time according to the specified RFC format — as specified in the Hypertext Transfer Protocol (HTTP) Specification 1.0.
BOOL WINAPI InternetTimeFromSystemTime(CONST SYSTEMTIME* pst, DWORD dwRFC, LPTSTR lpszTime, DWORD cbTime);
Parameters
- pst
[in] Pointer to a SYSTEMTIME structure that contains the date and time to format. - dwRFC
[in] Specifies the RFC format used. Currently, the only valid format is INTERNET_RFC1123_FORMAT. - lpszTime
[out] Long pointer to a buffer that receives the null-terminated string that contains the formatted date and time. The buffer should be of size INTERNET_RFC1123_BUFSIZE. - cbTime
[in] Size, in bytes, of the lpszTime buffer.
Return Values
TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.
Remarks
The cbTime parameter refers to the count of characters.
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Wininet.h.
Link Library: Wininet.lib.
See Also
SYSTEMTIME | WinInet Functions
Send Feedback on this topic to the authors