Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/include/core/date.h Wed Jun 12 05:25:41 2024 -0400 +++ b/include/core/date.h Wed Jun 12 17:52:26 2024 -0400 @@ -3,6 +3,8 @@ #include "json/json_fwd.hpp" +#include "core/time.h" + #include <optional> #include <string> @@ -37,6 +39,7 @@ Date(const std::string& str); Date(const QDate& date); Date(const nlohmann::json& json); + Date(Time::Timestamp timestamp); bool IsValid() const; void SetYear(Year y); void SetMonth(Month m);