SQL time type. More...
#include <time.hpp>
Public Member Functions | |
Time (bool init=true) | |
Time (const anch::date::Date &date) | |
Time (const std::time_t &time) | |
Time (const std::tm *const time) | |
virtual | ~Time () |
![]() | |
Date (bool init=true) | |
Date (const std::time_t &time) | |
Date (const std::tm *const time) | |
Date (const std::timespec &time) | |
virtual | ~Date () |
bool | after (const Date &date) const noexcept |
bool | before (const Date &date) const noexcept |
bool | equals (const Date &date) const noexcept |
bool | operator> (const Date &date) const noexcept |
bool | operator>= (const Date &date) const noexcept |
bool | operator< (const Date &date) const noexcept |
bool | operator<= (const Date &date) const noexcept |
bool | operator== (const Date &date) const noexcept |
bool | operator!= (const Date &date) const noexcept |
operator std::time_t () const noexcept | |
operator std::tm () const noexcept | |
operator std::timespec () const noexcept | |
Additional Inherited Members | |
![]() | |
std::int64_t | _timestamp |
int32_t | _years = 0 |
uint16_t | _months = 0 |
uint16_t | _ydays = 0 |
uint16_t | _mdays = 0 |
uint16_t | _wdays = 0 |
uint16_t | _hours = 0 |
uint16_t | _minutes = 0 |
uint16_t | _seconds = 0 |
uint16_t | _milliseconds = 0 |
uint16_t | _microseconds = 0 |
uint16_t | _nanoseconds = 0 |
![]() | |
static std::mutex | _mutex |
SQL time type.
SQL time type.
It will only take into from hours to microseconds
anch::sql::Time::Time | ( | bool | init = true | ) |
anch::sql::Time::Time | ( | const anch::date::Date & | date | ) |
anch::sql::Time::Time | ( | const std::time_t & | time | ) |
Time constructor.
time | The time to set |
anch::sql::Time::Time | ( | const std::tm *const | time | ) |
Time constructor.
time | The time to set |
|
virtual |
Time destructor