LibTimeZone: Begin parsing and generating DaylightSavings rules

This commit is contained in:
Timothy Flynn 2022-01-18 11:20:43 -05:00 committed by Linus Groh
commit 0e58b04b5c
Notes: sideshowbarker 2024-07-17 20:37:55 +09:00
4 changed files with 95 additions and 9 deletions

View file

@ -20,6 +20,9 @@ Optional<TimeZone> time_zone_from_string(StringView time_zone);
StringView time_zone_to_string(TimeZone time_zone);
Optional<StringView> canonicalize_time_zone(StringView time_zone);
Optional<DaylightSavingsRule> daylight_savings_rule_from_string(StringView daylight_savings_rule);
StringView daylight_savings_rule_to_string(DaylightSavingsRule daylight_savings_rule);
Optional<i64> get_time_zone_offset(TimeZone time_zone, AK::Time time);
Optional<i64> get_time_zone_offset(StringView time_zone, AK::Time time);