Export (0) Print
Expand All
Expand Minimize

InternetTimeFromSystemTime function

Formats a date and time according to the HTTP version 1.0 specification.

Syntax


BOOL InternetTimeFromSystemTime(
  _In_  const SYSTEMTIME *pst,
  _In_        DWORD      dwRFC,
  _Out_       LPTSTR     lpszTime,
  _In_        DWORD      cbTime
);

Parameters

pst [in]

Pointer to a SYSTEMTIME structure that contains the date and time to format.

dwRFC [in]

RFC format used. Currently, the only valid format is INTERNET_RFC1123_FORMAT.

lpszTime [out]

Pointer to a string buffer that receives the formatted date and time. The buffer should be of size INTERNET_RFC1123_BUFSIZE.

cbTime [in]

Size of the lpszTime buffer, in bytes.

Return value

Returns TRUE if the function succeeds, or FALSE otherwise. To get extended error information, call GetLastError.

Remarks

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

InternetTimeFromSystemTimeW (Unicode) and InternetTimeFromSystemTimeA (ANSI)

See also

Common Functions
WinINet Functions

 

 

Show:
© 2015 Microsoft