diff --git a/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp b/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp index 27e304af358..773160fbc26 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp @@ -4,6 +4,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include "../LibUnicode/GeneratorUtil.h" // FIXME: Move this somewhere common. +#include #include #include #include @@ -11,25 +13,218 @@ #include #include -static void generate_time_zone_data_header(Core::File& file) +struct Time { + i8 hour { 0 }; + u8 minute { 0 }; + u8 second { 0 }; +}; + +struct DateTime { + u16 year { 0 }; + Optional month; + Optional last_weekday; + Optional after_weekday; + Optional day; + Optional