11const int DAYS_EACH_MONTH[]={0,31,59,90,120,151,181,212,243,273,304,334,365};
14const int DAY_EACH_MONTH[]={31,28,31,30,31,30,31,31,30,31,30,31};
25 Date(
int m_year,
int m_month,
int m_day);
41 bool isLeap(
int m_year)
const;
int getDay() const
Definition: date.cpp:41
int getMonth() const
Definition: date.cpp:35
bool operator<(const Date &m_date) const
Definition: date.cpp:135
int year
Definition: date.h:19
Date()
Definition: date.cpp:11
int month
Definition: date.h:20
bool operator<=(const Date &m_date) const
Definition: date.cpp:145
int day
Definition: date.h:21
void setDate(QDate &m_qdate)
Definition: date.cpp:155
int getMaxDay() const
Definition: date.cpp:89
bool isValid()
Definition: date.cpp:46
int getYear() const
Definition: date.cpp:29
void resetDate(QDate m_qdate)
Definition: date.cpp:161
static Date read()
Definition: date.cpp:20
bool isLeap(int m_year) const
Definition: date.cpp:78
int distance(const Date &m_date) const
Definition: date.cpp:129
void show()
Definition: date.cpp:14
int date_trans() const
Definition: date.cpp:109
const int DAY_EACH_MONTH[]
Definition: date.h:14
const int DAYS_EACH_MONTH[]
Definition: date.h:11