1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

LibJS: Change GetISOPartsFromEpoch's return type to ISODateTime

This AO can't throw so its optional is never empty.
This commit is contained in:
Idan Horowitz 2021-09-16 01:19:37 +03:00 committed by Linus Groh
parent 1822b2938e
commit 830d484d78
2 changed files with 5 additions and 5 deletions

View file

@ -37,7 +37,7 @@ String canonicalize_time_zone_name(String const& time_zone);
String default_time_zone();
String parse_temporal_time_zone(GlobalObject&, String const&);
TimeZone* create_temporal_time_zone(GlobalObject&, String const& identifier, FunctionObject const* new_target = nullptr);
Optional<ISODateTime> get_iso_parts_from_epoch(BigInt const& epoch_nanoseconds);
ISODateTime get_iso_parts_from_epoch(BigInt const& epoch_nanoseconds);
i64 get_iana_time_zone_offset_nanoseconds(BigInt const& epoch_nanoseconds, String const& time_zone_identifier);
double parse_time_zone_offset_string(GlobalObject&, String const&);
String format_time_zone_offset_string(double offset_nanoseconds);