10 #ifndef _MARIADB_TIME_SPAN_HPP_ 11 #define _MARIADB_TIME_SPAN_HPP_
bool operator>(const time_span &rhs) const
u8 seconds() const
Get number of seconds.
bool operator==(const time_span &rhs) const
bool operator<(const time_span &rhs) const
u64 total_hours() const
Converts the time_span to minutes.
std::ostream & operator<<(std::ostream &os, const date_time &ddt)
u32 days() const
Get number of days.
u16 milliseconds() const
Get number of milliseconds.
time_span & operator=(const time_span &rhs)
u64 total_milliseconds() const
Converts the time_span to milliseconds.
bool operator!=(const time_span &rhs) const
u64 total_minutes() const
Converts the time_span to minutes.
time_span(u32 days=0, u8 hours=0, u8 minutes=0, u8 seconds=0, u16 milliseconds=0, bool negative=false)
Construct time_span from given data.
int compare(const time_span &rhs) const
Compares this timespan with the given timespan.
bool operator<=(const time_span &rhs) const
bool negative() const
Indicates whether this time_span is negative.
bool operator>=(const time_span &rhs) const
u8 minutes() const
Get number of hours.
u64 total_seconds() const
Converts the time_span to seconds.
u8 hours() const
Get number of hours.
bool zero() const
Indicates whether this time_span is zero.