InternetTimeFromSystemTime

This function formats a date and time according to the specified RFC format — as specified in the Hypertext Transfer Protocol (HTTP) Specification 1.0.

At a Glance

Header file: Wininet.h
Windows CE versions: 2.0 and later

Syntax

BOOL WINAPI InternetTimeFromSystemTime(
CONST SYSTEMTIME *
pst, DWORD dwRFC,  LPTSTR lpszTime,
DWORD
cbTime);

Parameters

pst

Pointer to a SYSTEMTIME structure 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 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.