18 #include "pandabase.h"
33 INLINE HTTPDate(time_t time);
34 HTTPDate(
const string &format);
35 INLINE HTTPDate(
const HTTPDate ©);
36 INLINE
void operator = (
const HTTPDate ©);
37 INLINE
static HTTPDate now();
39 INLINE
bool is_valid()
const;
41 string get_string()
const;
42 INLINE time_t get_time()
const;
44 INLINE
bool operator == (
const HTTPDate &other)
const;
45 INLINE
bool operator != (
const HTTPDate &other)
const;
46 INLINE
bool operator < (
const HTTPDate &other)
const;
47 INLINE
bool operator > (
const HTTPDate &other)
const;
48 INLINE
int compare_to(
const HTTPDate &other)
const;
50 INLINE
void operator += (
int seconds);
51 INLINE
void operator -= (
int seconds);
53 INLINE HTTPDate operator + (
int seconds)
const;
54 INLINE HTTPDate operator - (
int seconds)
const;
55 INLINE
int operator - (
const HTTPDate &other)
const;
57 bool input(istream &in);
58 void output(ostream &out)
const;
61 static string get_token(
const string &str,
size_t &pos);
66 INLINE istream &operator >> (istream &in,
HTTPDate &date);
67 INLINE ostream &operator << (ostream &out,
const HTTPDate &date);
A container for an HTTP-legal time/date indication.
An STL function object class, this is intended to be used on any ordered collection of class objects ...