Mercurial > minori
comparison src/core/date.cc @ 413:192da585a0a8 default tip
*: fix formatting
the clang-format file was broken andjust using LLVM defaults.
now it's fixed and is more in line with what I actually prefer my
code to look like -- esp. with regards to tabulators
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sat, 25 Jul 2026 14:54:32 -0400 |
| parents | e561b7542b7b |
| children |
comparison
equal
deleted
inserted
replaced
| 412:05aed03e0111 | 413:192da585a0a8 |
|---|---|
| 4 | 4 |
| 5 #include <QDate> | 5 #include <QDate> |
| 6 #include <QDebug> | 6 #include <QDebug> |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <cstdio> | |
| 9 #include <sstream> | 10 #include <sstream> |
| 10 #include <cstdio> | |
| 11 | 11 |
| 12 /* An implementation of AniList's "fuzzy date" */ | 12 /* An implementation of AniList's "fuzzy date" */ |
| 13 | 13 |
| 14 Date::Date() | 14 Date::Date() |
| 15 { | 15 { |
| 137 } | 137 } |
| 138 | 138 |
| 139 nlohmann::json Date::GetAsAniListJson() const | 139 nlohmann::json Date::GetAsAniListJson() const |
| 140 { | 140 { |
| 141 nlohmann::json json = { | 141 nlohmann::json json = { |
| 142 {"year", nullptr}, | 142 {"year", nullptr}, |
| 143 {"month", nullptr}, | 143 {"month", nullptr}, |
| 144 {"day", nullptr} | 144 {"day", nullptr} |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 if (year) | 147 if (year) |
