mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibCore: Add a primitive comparison function to DateTime
This should go away when we get the ability to parse strings to DateTime's.
This commit is contained in:
parent
3df3ab4598
commit
d051fffe25
2 changed files with 10 additions and 0 deletions
|
@ -54,6 +54,10 @@ public:
|
|||
static DateTime now();
|
||||
static DateTime from_timestamp(time_t);
|
||||
|
||||
// FIXME: This should be replaced with a proper comparison
|
||||
// operator when we get the equivalent of strptime
|
||||
bool is_before(const String&) const;
|
||||
|
||||
private:
|
||||
time_t m_timestamp { 0 };
|
||||
unsigned m_year { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue