1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:17:35 +00:00

LibJS: Check dates are below the time_clip threshold

This commit is contained in:
Idan Horowitz 2021-06-06 17:42:49 +03:00 committed by Linus Groh
parent c4530e95f4
commit f65cb63aab
3 changed files with 60 additions and 12 deletions

View file

@ -15,6 +15,8 @@ class Date final : public Object {
JS_OBJECT(Date, Object);
public:
static constexpr double time_clip = 8.64e15;
static Date* create(GlobalObject&, Core::DateTime, i16 milliseconds, bool is_invalid = false);
static Date* now(GlobalObject&);