SQL timestamp type. More...
#include <timestamp.hpp>
Public Member Functions | |
| Timestamp (bool init=true) | |
| Timestamp (const anch::date::Date &date) | |
| Timestamp (const std::time_t &time) | |
| Timestamp (const std::tm *const time) | |
| virtual | ~Timestamp () |
| Public Member Functions inherited from anch::date::Date | |
| 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 | |
| Protected Attributes inherited from anch::date::Date | |
| 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 Protected Attributes inherited from anch::date::Date | |
| static std::mutex | _mutex |
SQL timestamp type.
SQL timestamp type.
It will take into account from year to microseconds.
| anch::sql::Timestamp::Timestamp | ( | bool | init = true | ) |
| anch::sql::Timestamp::Timestamp | ( | const anch::date::Date & | date | ) |
| anch::sql::Timestamp::Timestamp | ( | const std::time_t & | time | ) |
Timestamp constructor.
| time | The time to set |
| anch::sql::Timestamp::Timestamp | ( | const std::tm *const | time | ) |
Timestamp constructor.
| time | The time to set |
|
virtual |
Timestamp destructor