herald  2.0.0
Public Member Functions | List of all members
herald::datatype::Date Class Reference

Public Member Functions

 Date (std::uint64_t secondsSinceEpochOrRestart)
 
 Date (const Date &from)
 
 Date (Date &&from)
 
Dateoperator= (const Date &other) noexcept
 
Dateoperator= (Date &&other) noexcept
 
void setToNow () noexcept
 Sets the value to now without any temporaries being created/destroyed.
 
std::string iso8601DateTime () const noexcept
 
 operator std::string () const noexcept
 
std::uint64_t secondsSinceUnixEpoch () const noexcept
 
bool operator== (const Date &other) const noexcept
 
bool operator!= (const Date &other) const noexcept
 
bool operator< (const Date &other) const noexcept
 
bool operator> (const Date &other) const noexcept
 
bool operator<= (const Date &other) const noexcept
 
bool operator>= (const Date &other) const noexcept
 
Date operator- (const TimeInterval &other) noexcept
 
Dateoperator-= (const TimeInterval &other) noexcept
 
Date operator+ (const TimeInterval &other) noexcept
 
Dateoperator+= (const TimeInterval &other) noexcept
 
 operator long () const noexcept
 

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