Mercurial > minori
comparison include/core/date.h @ 319:d928ec7b6a0d
services/kitsu: implement GetAnimeList()
it finally works!
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Wed, 12 Jun 2024 17:52:26 -0400 |
| parents | b1f4d1867ab1 |
| children | b5d6c27c308f |
comparison
equal
deleted
inserted
replaced
| 318:3b355fa948c7 | 319:d928ec7b6a0d |
|---|---|
| 1 #ifndef MINORI_CORE_DATE_H_ | 1 #ifndef MINORI_CORE_DATE_H_ |
| 2 #define MINORI_CORE_DATE_H_ | 2 #define MINORI_CORE_DATE_H_ |
| 3 | 3 |
| 4 #include "json/json_fwd.hpp" | 4 #include "json/json_fwd.hpp" |
| 5 | |
| 6 #include "core/time.h" | |
| 5 | 7 |
| 6 #include <optional> | 8 #include <optional> |
| 7 #include <string> | 9 #include <string> |
| 8 | 10 |
| 9 class QDate; | 11 class QDate; |
| 35 Date(Year y); | 37 Date(Year y); |
| 36 Date(Year y, Month m, Day d); | 38 Date(Year y, Month m, Day d); |
| 37 Date(const std::string& str); | 39 Date(const std::string& str); |
| 38 Date(const QDate& date); | 40 Date(const QDate& date); |
| 39 Date(const nlohmann::json& json); | 41 Date(const nlohmann::json& json); |
| 42 Date(Time::Timestamp timestamp); | |
| 40 bool IsValid() const; | 43 bool IsValid() const; |
| 41 void SetYear(Year y); | 44 void SetYear(Year y); |
| 42 void SetMonth(Month m); | 45 void SetMonth(Month m); |
| 43 void SetDay(Day d); | 46 void SetDay(Day d); |
| 44 void VoidYear(); | 47 void VoidYear(); |
