Mercurial > minori
comparison src/core/date.cpp @ 15:cde8f67a7c7d
*: update, megacommit :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 19 Sep 2023 22:36:08 -0400 |
parents | fc1bf97c528b |
children | 2743011a6042 |
comparison
equal
deleted
inserted
replaced
14:a29c9402faf0 | 15:cde8f67a7c7d |
---|---|
104 | 104 |
105 QDate Date::GetAsQDate() const { | 105 QDate Date::GetAsQDate() const { |
106 /* QDates don't (yet) support "missing" values */ | 106 /* QDates don't (yet) support "missing" values */ |
107 if (year.get() && month.get() && day.get()) | 107 if (year.get() && month.get() && day.get()) |
108 return QDate(*year, *month, *day); | 108 return QDate(*year, *month, *day); |
109 else return QDate(); | 109 else |
110 return QDate(); | |
110 } | 111 } |
111 | 112 |
112 nlohmann::json Date::GetAsAniListJson() const { | 113 nlohmann::json Date::GetAsAniListJson() const { |
113 nlohmann::json result; | 114 nlohmann::json result; |
114 if (year.get()) | 115 if (year.get()) |