Microsoft Windows CE 3.0  

InternetTimeFromSystemTime

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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
Pointer to a SYSTEMTIMEstructure that contains the date and time to format.
dwRFC
Specifies the RFC format used. Currently, the only valid format is INTERNET_RFC1123_FORMAT.
lpszTime
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
Size, in bytes, of the lpszTimebuffer.

Return Values

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.

Remarks

The cbTimeparameter refers to the count of characters.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Wininet.h   Wininet.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetLastError, SYSTEMTIME