AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::sql::Time Class Reference

SQL time type. More...

#include <time.hpp>

+ Inheritance diagram for anch::sql::Time:
+ Collaboration diagram for anch::sql::Time:

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 ()
 
- 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
 

Detailed Description

SQL time type.

SQL time type.
It will only take into from hours to microseconds

Since
0.1
Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ Time() [1/4]

anch::sql::Time::Time ( bool init = true)

Time default constructor.

Parameters
initInitialize the Time to now (default true)

◆ Time() [2/4]

anch::sql::Time::Time ( const anch::date::Date & date)

Time private copy constructor

Parameters
dateThe Date to copy

◆ Time() [3/4]

anch::sql::Time::Time ( const std::time_t & time)

Time constructor.

Parameters
timeThe time to set

◆ Time() [4/4]

anch::sql::Time::Time ( const std::tm *const time)

Time constructor.

Parameters
timeThe time to set

◆ ~Time()

virtual anch::sql::Time::~Time ( )
virtual

Time destructor


The documentation for this class was generated from the following file: