diff options
author | Linus Groh <mail@linusgroh.de> | 2021-10-30 10:22:19 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-30 16:32:20 +0200 |
commit | 5fde02184d20649a7da1ba0c8792927328037a0d (patch) | |
tree | 4db7a22d0787de0ec08aa0e7ba7ac357b25018e3 /Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h | |
parent | 82792a6815ce22ebc225ade8cecfe0b2c8e71cd7 (diff) | |
download | serenity-5fde02184d20649a7da1ba0c8792927328037a0d.zip |
LibJS: Implement Temporal.TimeZone.prototype.getPossibleInstantsFor()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h index 8923d7fc93..93537bfd1e 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h @@ -7,6 +7,7 @@ #pragma once #include <AK/Optional.h> +#include <LibJS/Runtime/MarkedValueList.h> #include <LibJS/Runtime/Object.h> #include <LibJS/Runtime/Temporal/AbstractOperations.h> @@ -38,6 +39,7 @@ String default_time_zone(); ThrowCompletionOr<String> parse_temporal_time_zone(GlobalObject&, String const&); ThrowCompletionOr<TimeZone*> create_temporal_time_zone(GlobalObject&, String const& identifier, FunctionObject const* new_target = nullptr); ISODateTime get_iso_parts_from_epoch(BigInt const& epoch_nanoseconds); +MarkedValueList get_iana_time_zone_epoch_value(GlobalObject&, StringView time_zone_identifier, i32 year, u8 month, u8 day, u8 hour, u8 minute, u8 second, u16 millisecond, u16 microsecond, u16 nanosecond); i64 get_iana_time_zone_offset_nanoseconds(BigInt const& epoch_nanoseconds, String const& time_zone_identifier); ThrowCompletionOr<double> parse_time_zone_offset_string(GlobalObject&, String const&); String format_time_zone_offset_string(double offset_nanoseconds); |