Calendar for handling and comparing dates using the common epoches of the storyline. More...
#include <irdya_datetime.hpp>
Public Member Functions | |
irdya_date ()=default | |
irdya_date (wesnoth_epoch::type epoch, unsigned year) | |
wesnoth_epoch::type | get_epoch () const |
unsigned int | get_year () const |
bool | is_valid () const |
std::string | to_string () const |
Static Public Member Functions | |
static irdya_date | read_date (const std::string &date) |
Private Attributes | |
wesnoth_epoch::type | epoch |
unsigned int | year = 0 |
Calendar for handling and comparing dates using the common epoches of the storyline.
Definition at line 28 of file irdya_datetime.hpp.
|
default |
|
inline |
Definition at line 33 of file irdya_datetime.hpp.
|
inline |
Definition at line 41 of file irdya_datetime.hpp.
References epoch.
Referenced by BOOST_AUTO_TEST_CASE(), utils::operator<(), and utils::operator==().
|
inline |
Definition at line 46 of file irdya_datetime.hpp.
References year.
Referenced by BOOST_AUTO_TEST_CASE(), utils::operator<(), and utils::operator==().
|
inline |
Definition at line 52 of file irdya_datetime.hpp.
References year.
Referenced by utils::operator<().
|
static |
Definition at line 23 of file irdya_datetime.cpp.
References epoch, string_enums::enum_base< Definition >::get_enum(), utils::stoi(), and year.
Referenced by BOOST_AUTO_TEST_CASE(), and ng::campaign::campaign().
std::string irdya_date::to_string | ( | ) | const |
Definition at line 53 of file irdya_datetime.cpp.
|
private |
Definition at line 61 of file irdya_datetime.hpp.
Referenced by get_epoch(), read_date(), and to_string().
|
private |
Definition at line 63 of file irdya_datetime.hpp.
Referenced by get_year(), is_valid(), read_date(), and to_string().