diff 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
line wrap: on
line diff
--- a/include/core/date.h	Thu Dec 07 16:28:11 2023 -0500
+++ b/include/core/date.h	Fri Dec 08 11:19:54 2023 -0500
@@ -21,15 +21,11 @@
 		void VoidYear();
 		void VoidMonth();
 		void VoidDay();
-		unsigned int GetYear() const;
-		unsigned int GetMonth() const;
-		unsigned int GetDay() const;
+		std::optional<unsigned int> GetYear() const;
+		std::optional<unsigned int> GetMonth() const;
+		std::optional<unsigned int> GetDay() const;
 		QDate GetAsQDate() const;
 		nlohmann::json GetAsAniListJson() const;
-		bool operator<(const Date& other) const;
-		bool operator>(const Date& other) const;
-		bool operator<=(const Date& other) const;
-		bool operator>=(const Date& other) const;
 
 	private:
 		std::optional<unsigned int> year;