9 #ifndef anna_core_util_Second_hpp 10 #define anna_core_util_Second_hpp 50 explicit Second(
const type_t value) : a_value(value) {;}
74 operator type_t ()
const {
return a_value; }
138 std::string
asDateTime(
const char* format =
"%d/%0m/%Y %T")
const ;
149 const char*
asDateTime(
char* result,
const char* format =
"%d/%0m/%Y %T")
const ;
186 friend class Second operator / (const
Second& left,
const int right) ;
187 friend class Second operator / (const
Second& left,
const unsigned int right) ;
192 return Second(left.a_value + right.a_value);
197 return Second(left.a_value - right.a_value);
202 return Second(left.a_value / right.a_value);
207 return Second(left.a_value / right);
212 return Second(left.a_value / right);
bool operator>=(const Second &other) const
Definition: Second.hpp:113
Definition: Millisecond.hpp:24
friend class Second operator/(const Second &left, const Second &right)
Definition: Second.hpp:200
static Second getLocalTime()
bool operator<(const Second &other) const
Definition: Second.hpp:107
std::string asDateTime(const char *format="%d/%0m/%Y %T") const
static const int DateTimeSizeString
Definition: Second.hpp:39
Definition: Second.hpp:25
std::string asString() const
int64_t S64
Definition: defines.hpp:84
friend class Second operator+(const Second &left, const Second &right)
Definition: Second.hpp:190
type_t & refValue()
Definition: Second.hpp:79
Second & operator=(const type_t other)
Definition: Second.hpp:81
bool operator>(const Second &other) const
Definition: Second.hpp:101
Second()
Definition: Second.hpp:44
static Second fromString(const std::string &value) noexcept(false)
bool operator!=(const Second &other) const
Definition: Second.hpp:95
friend class Second operator-(const Second &left, const Second &right)
Definition: Second.hpp:195
Second(const type_t value)
Definition: Second.hpp:50
int type_t
Definition: Second.hpp:30
type_t getValue() const
Definition: Second.hpp:129
bool operator<=(const Second &other) const
Definition: Second.hpp:119
Second(const Second &other)
Definition: Second.hpp:56
Definition: Microsecond.hpp:22
bool operator==(const Second &other) const
Definition: Second.hpp:89