7 #ifndef _MIMETIC_RFC822_DATETIME_H
8 #define _MIMETIC_RFC822_DATETIME_H
11 #include <mimetic/strutils.h>
12 #include <mimetic/rfc822/fieldvalue.h>
22 enum DayName { mnShort = 0, mnLong = 1 };
23 DayOfWeek(
int iDayOfWeek);
24 DayOfWeek(
const std::string&);
25 bool operator==(
const std::string&);
26 bool operator==(
int iDayOfWeek);
27 std::string name(
bool longName =
false)
const;
28 short ordinal()
const;
30 static const char *ms_label[][2];
34 enum MonthName { mnShort = 0, mnLong = 1 };
36 Month(
const std::string& );
37 bool operator==(
const std::string& )
const;
38 bool operator==(
int iMonth)
const;
39 std::string name(
bool longName =
false)
const;
40 short ordinal()
const;
42 static const char *ms_label[][2];
47 Zone(
const std::string& );
48 bool operator==(
const std::string&);
49 bool operator==(
int iZone);
50 std::string name()
const;
51 short ordinal()
const;
53 static int ms_offset[];
54 static const char *ms_label[];
55 short m_iZone, m_iZoneIdx;
61 Jan = 1, Feb, Mar, Apr, May, Jun, Jul,
62 Aug, Sep, Oct, Nov, Dec
65 Mon = 1, Tue, Wed, Thu, Fri, Sat, Sun
91 DayOfWeek dayOfWeek()
const;
99 std::string str()
const;
100 friend std::ostream& operator<<(std::ostream&,
const DateTime&);
104 void set(
const std::string&);
105 mutable int m_iDayOfWeek;
106 int m_iDay, m_iMonth, m_iYear;
107 int m_iHour, m_iMinute, m_iSecond;
RFC822 DateTime field representation.
Definition: datetime.h:19
Value of an header field (base class)
Definition: fieldvalue.h:17