Timothy Flynn
70f49d0696
LibJS+LibTimeZone+LibUnicode: Indicate whether a time zone is in DST
...
Return whether the time zone is in DST during the provided time from
TimeZone::get_time_zone_offset,
2022-01-19 21:20:41 +00:00
Timothy Flynn
0e58b04b5c
LibTimeZone: Begin parsing and generating DaylightSavings rules
2022-01-19 21:20:41 +00:00
Timothy Flynn
8a4ac9c387
LibTimeZone: Add an API to retrieve the system's current time zone
...
This is a wrapper API around the POSIX tzset / tzname information. It
is to help ensure that tzset is invoked before accessing tzname.
2022-01-12 15:43:12 +01:00
Timothy Flynn
09c0324880
LibTimeZone: Begin generating GMT offset rules for each time zone
...
This is a rather naive implementation, but serves as a first pass at
determining the GMT offset for a time zone at a particular point in
time. This implementation ignores DST (because we are not parsing any
RULE entries yet), and ignores any offset patterns of the form "Mon>4"
or "lastSun".
2022-01-11 00:36:45 +01:00
Timothy Flynn
e9c42d0bc5
LibTimeZone: Add methods to canonicalize a time zone name
2022-01-11 00:36:45 +01:00
Timothy Flynn
1c2c98ac5d
LibTimeZone: Add method to convert a time zone to a string
2022-01-11 00:36:45 +01:00
Timothy Flynn
9253e695d1
LibTimeZone: Parse ZONE entries from the TZDB and generate their names
2022-01-08 12:45:34 +01:00