InternetTimeFromSystemTime function (wininet.h)
Formats a date and time according to the HTTP version 1.0 specification.
BOOL InternetTimeFromSystemTime(
[in] const SYSTEMTIME *pst,
[in] DWORD dwRFC,
[out] LPSTR lpszTime,
[in] DWORD cbTime
);
[in] pst
Pointer to a SYSTEMTIME structure that contains the date and time to format.
[in] dwRFC
RFC format used. Currently, the only valid format is INTERNET_RFC1123_FORMAT.
[out] lpszTime
Pointer to a string buffer that receives the formatted date and time. The buffer should be of size INTERNET_RFC1123_BUFSIZE.
[in] cbTime
Size of the lpszTime buffer, in bytes.
Returns TRUE if the function succeeds, or FALSE otherwise. To get extended error information, call GetLastError.
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 |