diff --git a/Userland/Libraries/LibCore/DateTime.h b/Userland/Libraries/LibCore/DateTime.h index 63d053777b..8d52c968c4 100644 --- a/Userland/Libraries/LibCore/DateTime.h +++ b/Userland/Libraries/LibCore/DateTime.h @@ -42,6 +42,9 @@ public: static Optional parse(StringView format, StringView string); bool operator<(DateTime const& other) const { return m_timestamp < other.m_timestamp; } + bool operator>(DateTime const& other) const { return m_timestamp > other.m_timestamp; } + bool operator<=(DateTime const& other) const { return m_timestamp <= other.m_timestamp; } + bool operator>=(DateTime const& other) const { return m_timestamp >= other.m_timestamp; } bool operator==(DateTime const& other) const { return m_timestamp == other.m_timestamp; } private: