Networking Tools: Thread-hot Internet Classes (int library)
#include <rw/toolpro/httpdate.h> RWIHttpDate d; // creates date with current date and time
thr, net, int, tls (and possibly std)
RWIHttpDate maintains date and time information. It outputs the date as a string that conforms to the HTTP/1.0 date specification.
RWIHttpDate();
Constructs a default RWIHttpDate object. Internal date and time are initialized to the current date and time, respectively.
RWIHttpDate(const RWTime& t);
Constructs an RWIHttpDate object with the internal date and time set to those in t.
RWIHttpDate(const RWCString& str);
Constructs an RWIHttpDate object with the input str. The str argument must be an HTTP/1.0-compliant date string. The str is parsed for date and time information and the internals are set to the result. If str cannot be parsed, an invalid date is constructed.
RWCString asString() const;
Returns the internal date and time formatted to comply with the HTTP 1.0 specification; for example, "Thursday, 04 Jul 1996 08:22:37 GMT."
ostream& operator<<(ostream& s, const RWIHttpDate& d);
Outputs an RWIHttpDate object to an ostream.
istream& operator>>(istream& s, RWIHttpDate& d);
Restores an RWIHttpDate into d from an istream, replacing the previous contents of d.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.