#include <Date.h>
Public Types | |
| typedef time_t | ValueType |
Public Member Functions | |
| Date () | |
| Default ctor: 0. | |
| Date (ValueType date_r) | |
| Ctor taking time_t value. | |
| operator ValueType () const | |
| Conversion to time_t. | |
| std::string | form (const std::string &format_r) const |
| Return string representation according to format. | |
| std::string | asString () const |
| Default string representation of Date. | |
| std::string | asSeconds () const |
| Convert to string representation of calendar time in numeric form (like "1029255142"). | |
Arithmetic operations. | |
+ - * / are provided via conversion to time_t. | |
| 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) |
Static Public Member Functions | |
| static Date | now () |
| Return the current time. | |
Private Attributes | |
| ValueType | _date |
| Calendar time. | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const Date &obj) |
Definition at line 29 of file Date.h.
|
|
|
|
|
Default ctor: 0.
|
|
|
Ctor taking time_t value.
|
|
|
Return the current time.
Definition at line 48 of file Date.h. Referenced by zypp::base::LogControl::LineFormater::format(), zypp::target::rpm::RpmDb::Logfile::operator()(), and zypp::source::SourceImpl::timestamp(). |
|
|
Conversion to time_t.
Definition at line 53 of file Date.h. References _date. |
|
|
Definition at line 60 of file Date.h. References _date. |
|
|
Definition at line 61 of file Date.h. References _date. |
|
|
Definition at line 62 of file Date.h. References _date. |
|
|
Definition at line 63 of file Date.h. References _date. |
|
|
Definition at line 65 of file Date.h. References _date. |
|
|
Definition at line 66 of file Date.h. References _date. |
|
|
Definition at line 68 of file Date.h. References _date. |
|
|
Definition at line 69 of file Date.h. References _date. |
|
|
Return string representation according to format.
Definition at line 28 of file Date.cc. References _date. Referenced by asSeconds(), and asString(). |
|
|
Default string representation of Date. The preferred date and time representation for the current locale. Definition at line 84 of file Date.h. References form(). |
|
|
Convert to string representation of calendar time in numeric form (like "1029255142").
Definition at line 90 of file Date.h. References form(). |
|
||||||||||||
|
Stream output |
|
|
Calendar time. The number of seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC). Definition at line 98 of file Date.h. Referenced by form(), operator *=(), operator ValueType(), operator++(), operator+=(), operator--(), operator-=(), and operator/=(). |
1.4.6