Share via


InternetTimeFromSystemTime

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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 Value

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

Remarks

The cbTime parameter refers to the count of characters.

Requirements

Header wininet.h
Library wininet.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

WinInet Functions

Other Resources

SYSTEMTIME