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

LibJS: Port format_time_zone_offset_string() to String

This commit is contained in:
Linus Groh 2023-01-26 16:08:10 +00:00
parent 5a2dfc52f8
commit c2656f4ee7
2 changed files with 7 additions and 6 deletions

View file

@ -42,7 +42,7 @@ ThrowCompletionOr<TimeZone*> create_temporal_time_zone(VM&, StringView identifie
ISODateTime get_iso_parts_from_epoch(VM&, Crypto::SignedBigInteger const& epoch_nanoseconds);
BigInt* get_named_time_zone_next_transition(VM&, StringView time_zone_identifier, BigInt const& epoch_nanoseconds);
BigInt* get_named_time_zone_previous_transition(VM&, StringView time_zone_identifier, BigInt const& epoch_nanoseconds);
DeprecatedString format_time_zone_offset_string(double offset_nanoseconds);
ThrowCompletionOr<String> format_time_zone_offset_string(VM&, double offset_nanoseconds);
DeprecatedString format_iso_time_zone_offset_string(double offset_nanoseconds);
ThrowCompletionOr<Object*> to_temporal_time_zone(VM&, Value temporal_time_zone_like);
ThrowCompletionOr<double> get_offset_nanoseconds_for(VM&, Value time_zone, Instant&);