How can I generate an RFC1123 Date string, from C code (Win32)
Posted
by Cheeso
on Stack Overflow
See other posts from Stack Overflow
or by Cheeso
Published on 2010-04-28T05:13:41Z
Indexed on
2010/04/28
5:33 UTC
Read the original article
Hit count: 181
RFC1123 defines a number of things, among them, the format of Dates to be used in internet protocols. HTTP (RFC2616) specifies that date formats must be generated in conformance with RFC1123.
It looks like this:
Date: Wed, 28 Apr 2010 02:31:05 GMT
How can I generate an RFC1123 time string from C code, running on Windows? I don't have the use of C# and DateTime.ToString().
I know I could write the code myself, to emit timezones and day abbreviations, but I'm hoping this already exists in the Windows API.
Thanks.
© Stack Overflow or respective owner