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

@ -63,6 +63,9 @@ Optional<StringView> canonicalize_time_zone(StringView time_zone)
return canonical_time_zone;
}
Optional<DaylightSavingsRule> __attribute__((weak)) daylight_savings_rule_from_string(StringView) { return {}; }
StringView __attribute__((weak)) daylight_savings_rule_to_string(DaylightSavingsRule) { return {}; }
Optional<i64> __attribute__((weak)) get_time_zone_offset([[maybe_unused]] TimeZone time_zone, AK::Time)
{
#if !ENABLE_TIME_ZONE_DATA