1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:08:10 +00:00

LibCore: Remove the no-longer-used Core::DateTime::is_before() function

This commit is contained in:
AnotherTest 2021-04-18 13:47:24 +04:30 committed by Andreas Kling
parent 38f4441103
commit db8f0a2fa6
2 changed files with 0 additions and 9 deletions

View file

@ -249,10 +249,4 @@ String DateTime::to_string(const String& format) const
return builder.build();
}
bool DateTime::is_before(const String& other) const
{
auto now_string = String::formatted("{:04}{:02}{:02}{:02}{:02}{:02}Z", year(), month(), weekday(), hour(), minute(), second());
return __builtin_strcasecmp(now_string.characters(), other.characters()) < 0;
}
}