73 Date(
const std::string &
date_str,
const std::string & format );
79 { return ::time( 0 ); }
113 {
return form(
format_r, TB_LOCALTIME ); }
115 std::string form(
const std::string &
format_r, TimeBase
base_r )
const;
121 {
return form(
"%c" ); }
127 {
return form(
"%s" ); }
187 {
return print( DateFormat::calendar, TimeFormat::seconds, TimeZoneFormat::name,
base_r ); }
196 {
return printDate( DateFormat::calendar,
base_r ); }
211 {
return printTime( TimeFormat::seconds, TimeZoneFormat::name,
base_r ); }
233 {
return printISO( DateFormat::calendar,
timeFormat_r, TimeZoneFormat::name,
base_r ); }
236 {
return printISO(
dateFormat_r, TimeFormat::seconds, TimeZoneFormat::name,
base_r ); }
239 {
return printISO( DateFormat::calendar, TimeFormat::seconds, TimeZoneFormat::name,
base_r ); }
253 {
return str <<
obj.asString(); }
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Store and operate on date (time_t).
ValueType _date
Calendar time.
Date & operator+=(const time_t rhs)
std::string printTime(TimeZoneFormat timeZoneFormat_r, TimeBase base_r=TB_LOCALTIME) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string printTime(TimeFormat timeFormat_r, TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Date & operator*=(const time_t rhs)
std::string printISO(TimeZoneFormat timeZoneFormat_r, TimeBase base_r=TB_LOCALTIME) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Date operator+(const time_t rhs) const
std::string printISO(DateFormat dateFormat_r, TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string printISO(TimeFormat timeFormat_r, TimeZoneFormat timeZoneFormat_r=TimeZoneFormat::name, TimeBase base_r=TB_LOCALTIME) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Date operator/(const time_t rhs) const
std::string print(TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string printISO(TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string print(TimeFormat timeFormat_r, TimeZoneFormat timeZoneFormat_r=TimeZoneFormat::name, TimeBase base_r=TB_LOCALTIME) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string print(DateFormat dateFormat_r, TimeFormat timeFormat_r, TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
base::EnumClass< EDateFormatDef > DateFormat
'enum class DateFormat'
std::string printISO(TimeFormat timeFormat_r, TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Date operator-(const time_t rhs) const
Date & operator-=(const time_t rhs)
std::string print(TimeFormat timeFormat_r, TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string printTime(TimeFormat timeFormat_r=TimeFormat::seconds, TimeZoneFormat timeZoneFormat_r=TimeZoneFormat::name, TimeBase base_r=TB_LOCALTIME) const
Convenience for printing the time only ['07:06:41 CET'] The default is DateFormat::calendar and TB_LO...
base::EnumClass< ETimeZoneFormatDef > TimeZoneFormat
'enum class TimeZoneFormat'
std::string asString() const
Default string representation of Date.
std::string print(DateFormat dateFormat_r, TimeZoneFormat timeZoneFormat_r, TimeBase base_r=TB_LOCALTIME) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string form(const std::string &format_r) const
Return string representation according to format as localtime.
std::string printISO(DateFormat dateFormat_r, TimeFormat timeFormat_r, TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Date(ValueType date_r)
Ctor taking time_t value.
base::EnumClass< ETimeFormatDef > TimeFormat
'enum class TimeFormat'
std::string asSeconds() const
Convert to string representation of calendar time in numeric form (like "1029255142").
Date & operator/=(const time_t rhs)
friend std::ostream & operator<<(std::ostream &str, const Date &obj)
static Date now()
Return the current time.
std::string print(TimeZoneFormat timeZoneFormat_r, TimeBase base_r=TB_LOCALTIME) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string printDate(TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string printTime(TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Date operator*(const time_t rhs) const
std::string printISO(DateFormat dateFormat_r, TimeZoneFormat timeZoneFormat_r, TimeBase base_r=TB_LOCALTIME) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string print(DateFormat dateFormat_r, TimeBase base_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string printDate(DateFormat dateFormat_r=DateFormat::calendar, TimeBase base_r=TB_LOCALTIME) const
Convenience for printing the date only ['2014-02-07'] The default is DateFormat::calendar and TB_LOCA...
Base class for Exception.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API