Mercurial > minori
comparison include/core/date.h @ 197:c4ca035c565d
*: misc. patches
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Fri, 08 Dec 2023 11:19:54 -0500 |
| parents | f0ff06a45c42 |
| children | 862d0d8619f6 |
comparison
equal
deleted
inserted
replaced
| 196:f0ff06a45c42 | 197:c4ca035c565d |
|---|---|
| 19 void SetMonth(unsigned int m); | 19 void SetMonth(unsigned int m); |
| 20 void SetDay(unsigned int d); | 20 void SetDay(unsigned int d); |
| 21 void VoidYear(); | 21 void VoidYear(); |
| 22 void VoidMonth(); | 22 void VoidMonth(); |
| 23 void VoidDay(); | 23 void VoidDay(); |
| 24 unsigned int GetYear() const; | 24 std::optional<unsigned int> GetYear() const; |
| 25 unsigned int GetMonth() const; | 25 std::optional<unsigned int> GetMonth() const; |
| 26 unsigned int GetDay() const; | 26 std::optional<unsigned int> GetDay() const; |
| 27 QDate GetAsQDate() const; | 27 QDate GetAsQDate() const; |
| 28 nlohmann::json GetAsAniListJson() const; | 28 nlohmann::json GetAsAniListJson() const; |
| 29 bool operator<(const Date& other) const; | |
| 30 bool operator>(const Date& other) const; | |
| 31 bool operator<=(const Date& other) const; | |
| 32 bool operator>=(const Date& other) const; | |
| 33 | 29 |
| 34 private: | 30 private: |
| 35 std::optional<unsigned int> year; | 31 std::optional<unsigned int> year; |
| 36 std::optional<unsigned int> month; | 32 std::optional<unsigned int> month; |
| 37 std::optional<unsigned int> day; | 33 std::optional<unsigned int> day; |
