class Core::Date
Overview
Date data structure expressed in year, month, day. More…
#include <coredatetime.h> class Date { public: // construction Date(int _year = 1900, int _month = 1, int _day = 1); // methods int getYear() const; int getMonth() const; int getDay() const; void setYear(int _year); void setMonth(int _month); void setDay(int _day); int64 toOrdinal() const; Date& operator () (int _year, int _month = 1, int _day = 1); bool operator == (const Date& d) const; bool operator != (const Date& d) const; bool operator > (const Date& d) const; bool operator < (const Date& d) const; bool operator >= (const Date& d) const; bool operator <= (const Date& d) const; };
Detailed Documentation
Date data structure expressed in year, month, day.
Construction
Date(int _year = 1900, int _month = 1, int _day = 1)
Construct date.
Methods
int64 toOrdinal() const
Convert to ordinal number for comparison.