#include <Date.h>
Public Member Functions | |
Date (time_t date_r=0) | |
Date (const std::string &seconds_r) | |
operator time_t () const | |
Date & | operator+= (const time_t rhs) |
Date & | operator-= (const time_t rhs) |
Date & | operator *= (const time_t rhs) |
Date & | operator/= (const time_t rhs) |
Date & | operator++ () |
Date & | operator-- () |
Date | operator++ (int) |
Date | operator-- (int) |
std::string | form (const std::string &format) const |
std::string | asString () const |
Static Public Member Functions | |
time_t | now () |
std::string | form (const std::string &format, time_t tval_r) |
time_t | fromSECONDS (const std::string &str_r) |
std::string | toSECONDS (time_t tval_r) |
Private Attributes | |
time_t | _date |
Friends | |
std::ostream & | operator<< (std::ostream &str, const Date &obj) |
|
Constructor |
|
|
|
Default string representation of Date. The preferred date and time representation for the current locale. |
|
Member version of 'static form'. |
|
Return string representation of date according to format. See 'man strftime' (which is used internaly) for valid conversion specifiers in format. Retruns an empty string on illegal format. |
|
Convert from string representation of calendar time in numeric form (like "1029255142"). |
|
Return the current time. |
|
|
|
Conversion to time_t |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Convert to string representation of calendar time in numeric form (like "1029255142"). |
|
Write asString. |
|
Calendar time. The number of seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC). |