![]() |
AnCH Framework
0.1
Another C++ Hack Framework
|
#include <date.hpp>
Public Member Functions | |
Date (bool init=true) | |
Date (const Date &date) | |
Date (const std::time_t &time) | |
Date (const std::tm *const 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 | |
Friends | |
class | formatter::IDatePartFormatter |
class | DateFormatter |
Date and time utility class.
The class implementation is thread safe (when using this class).
POSIX time management is not thread safe. This class uses POSIX implementation.
Be aware that if you use the POSIX API, you will loose the thread safe support provided in this implementation.
Date::Date | ( | bool | init = true | ) |
Date::Date | ( | const std::time_t & | time | ) |
Date constructor.
time | The time to set |
Date::Date | ( | const std::tm *const | time | ) |
Date constructor.
time | The time to set |
|
virtual |
Date destructor
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Cast operator to std::time_t definition.
|
inlinenoexcept |
Cast operator to std::tm definition.
|
inlinenoexcept |
'!=' operator definition. Calls equals method
date | The date to compare to |
|
inlinenoexcept |
'<' operator definition. Calls before method
date | The date to compare to |
|
inlinenoexcept |
'<=' operator definition. Calls before and equals methods
date | The date to compare to |
|
inlinenoexcept |
'==' operator definition. Calls equals method
date | The date to compare to |
|
inlinenoexcept |
'>' operator definition. Calls after method
date | The date to compare to |
|
inlinenoexcept |
'>=' operator definition. Calls after and equals methods
date | The date to compare to |