36 |
|
Stamp(const ext::String& when); |
37 |
|
ext::String get822() const; |
38 |
|
ext::String getW3() const; |
39 |
+ |
ext::String get8601() const; |
40 |
|
ext::String getDate() const; |
41 |
|
ext::String getTime() const; |
42 |
|
void setSeconds(int seconds); |
45 |
|
Stamp operator+(std::time_t seconds) const { return when + seconds; } |
46 |
|
Stamp operator-(std::time_t seconds) const { return when - seconds; } |
47 |
|
bool operator<(const Stamp& stamp) const { return when < stamp.when; } |
48 |
+ |
bool operator>(const Stamp& stamp) const { return when > stamp.when; } |
49 |
|
}; |
50 |
|
|
51 |
|
inline std::ostream& operator<<(std::ostream& sout, const Stamp& stamp) |