mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
LibCore/DateTime: Add more binary operators
This commit is contained in:
parent
b657fa6f95
commit
df3e6174b6
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ public:
|
|||
static Optional<DateTime> 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue