comparison src/include/date.h @ 6:1d82f6e04d7d

Update: add first parts to the settings dialog
author Paper <mrpapersonic@gmail.com>
date Wed, 16 Aug 2023 00:49:17 -0400
parents 23d0d9319a00
children
comparison
equal deleted inserted replaced
5:51ae25154b70 6:1d82f6e04d7d
8 Date(int32_t y); 8 Date(int32_t y);
9 Date(int32_t y, int8_t m, int8_t d); 9 Date(int32_t y, int8_t m, int8_t d);
10 void SetYear(int32_t y); 10 void SetYear(int32_t y);
11 void SetMonth(int8_t m); 11 void SetMonth(int8_t m);
12 void SetDay(int8_t d); 12 void SetDay(int8_t d);
13 int32_t GetYear(); 13 int32_t GetYear() const;
14 int8_t GetMonth(); 14 int8_t GetMonth() const;
15 int8_t GetDay(); 15 int8_t GetDay() const;
16 QDate GetAsQDate(); 16 QDate GetAsQDate();
17 bool operator< (const Date& other) const;
18 bool operator> (const Date& other) const;
19 bool operator<= (const Date& other) const;
20 bool operator>= (const Date& other) const;
17 21
18 private: 22 private:
19 int32_t year = -1; 23 int32_t year = -1;
20 int8_t month = -1; 24 int8_t month = -1;
21 int8_t day = -1; 25 int8_t day = -1;