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 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | InternetTimeFromSystemTimeW (Unicode) and InternetTimeFromSystemTimeA (ANSI) |
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012