Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Embedded
Windows Embedded CE
Windows CE 5.0
Windows CE Features
WinInet Reference
WinInet Functions
 InternetTimeFromSystemTime
Platform Builder for Microsoft Windows CE 5.0
InternetTimeFromSystemTime
Send Feedback

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
[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 Values

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

Remarks

The cbTime parameter refers to the count of characters.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Wininet.h.
Link Library: Wininet.lib.

See Also

SYSTEMTIME | WinInet Functions


Send Feedback on this topic to the authors

Feedback FAQs


© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker