#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 | |
| static time_t | now () |
| static std::string | form (const std::string &format, time_t tval_r) |
| static time_t | fromSECONDS (const std::string &str_r) |
| static 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). |
1.4.4