summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-07-11 21:00:04 +0300
committerLinus Groh <mail@linusgroh.de>2021-07-12 19:05:17 +0100
commit141c46feda1c91f3b50948749463ecf7c380aa1a (patch)
treee2d379aa146d9fef5c6b2432e99923f7cc040b15 /Userland/Libraries
parent39a9cf4bb49751b49c63fa8b1c65555afc73d0e7 (diff)
downloadserenity-141c46feda1c91f3b50948749463ecf7c380aa1a.zip
AK: Add a DateTimeLexer
This is an AK::GenericLexer that exposes helper methods for parsing date and time related literals (years, months, days, hours, minutes, seconds, fractional seconds & more)
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp21
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h17
2 files changed, 0 insertions, 38 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp
deleted file mode 100644
index 737228becd..0000000000
--- a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#include <AK/String.h>
-#include <LibJS/Runtime/Temporal/ISO8601.h>
-
-namespace JS::Temporal {
-
-// 13.33 ISO 8601 grammar, https://tc39.es/proposal-temporal/#sec-temporal-iso8601grammar
-
-// TimeZoneNumericUTCOffset, https://tc39.es/proposal-temporal/#prod-TimeZoneNumericUTCOffset
-bool is_valid_time_zone_numeric_utc_offset(String const&)
-{
- // TODO: Implement me :^)
- return false;
-}
-
-}
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h
deleted file mode 100644
index a800773d17..0000000000
--- a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#pragma once
-
-#include <LibJS/Forward.h>
-
-namespace JS::Temporal {
-
-// 13.33 ISO 8601 grammar, https://tc39.es/proposal-temporal/#sec-temporal-iso8601grammar
-
-bool is_valid_time_zone_numeric_utc_offset(String const&);
-
-}