AceTime  2.2.0
Date and time classes for Arduino that support timezones from the TZ Database.
zone_registry.cpp
1 // This file was generated by the following script:
2 //
3 // $ /home/brian/src/AceTimeTools/src/acetimetools/tzcompiler.py
4 // --input_dir /home/brian/src/AceTime/src/tzonedb/tzfiles
5 // --output_dir /home/brian/src/AceTime/src/tzonedb
6 // --tz_version 2022g
7 // --action zonedb
8 // --language arduino
9 // --scope basic
10 // --db_namespace tzonedb
11 // --generate_int16_years
12 // --include_list include_list.txt
13 // --nocompress
14 // --start_year 1980
15 // --until_year 10000
16 //
17 // using the TZ Database files
18 //
19 // africa
20 // antarctica
21 // asia
22 // australasia
23 // backward
24 // etcetera
25 // europe
26 // northamerica
27 // southamerica
28 //
29 // from https://github.com/eggert/tz/releases/tag/2022g
30 //
31 // Supported Zones: 12 (11 zones, 1 links)
32 // Unsupported Zones: 584 (340 zones, 244 links)
33 //
34 // Original Years: [1844,2087]
35 // Generated Years: [1945,2007]
36 // Estimator Years: [1945,2009]
37 // Max Buffer Size: 6
38 //
39 // Records:
40 // Infos: 12
41 // Eras: 15
42 // Policies: 8
43 // Rules: 32
44 //
45 // Memory (8-bits):
46 // Rules: 352
47 // Policies: 24
48 // Eras: 180
49 // Zones: 143
50 // Links: 13
51 // Registry: 24
52 // Formats: 38
53 // Letters: 11
54 // Fragments: 0
55 // Names: 202 (original: 202)
56 // TOTAL: 987
57 //
58 // Memory (32-bits):
59 // Rules: 384
60 // Policies: 64
61 // Eras: 240
62 // Zones: 264
63 // Links: 24
64 // Registry: 48
65 // Formats: 38
66 // Letters: 17
67 // Fragments: 0
68 // Names: 202 (original: 202)
69 // TOTAL: 1281
70 //
71 // DO NOT EDIT
72 
73 #include <zoneinfo/compat.h>
74 #include "zone_infos.h"
75 #include "zone_registry.h"
76 
77 namespace ace_time {
78 namespace tzonedb {
79 
80 //---------------------------------------------------------------------------
81 // Zone Info registry. Sorted by zoneId.
82 //---------------------------------------------------------------------------
83 const basic::ZoneInfo* const kZoneRegistry[11] ACE_TIME_PROGMEM = {
84  &kZoneAmerica_New_York, // 0x1e2a7654, America/New_York
85  &kZoneAustralia_Darwin, // 0x2876bdff, Australia/Darwin
86  &kZoneAmerica_Vancouver, // 0x2c6f6b1f, America/Vancouver
87  &kZoneAmerica_Chicago, // 0x4b92b5d4, America/Chicago
88  &kZoneAmerica_Edmonton, // 0x6cb9484a, America/Edmonton
89  &kZoneAmerica_Toronto, // 0x792e851b, America/Toronto
90  &kZoneAmerica_Winnipeg, // 0x8c7dafc7, America/Winnipeg
91  &kZoneAmerica_Denver, // 0x97d10b2a, America/Denver
92  &kZonePacific_Galapagos, // 0xa952f752, Pacific/Galapagos
93  &kZoneAmerica_Los_Angeles, // 0xb7f7e8f2, America/Los_Angeles
94  &kZoneAfrica_Johannesburg, // 0xd5d157a0, Africa/Johannesburg
95 
96 };
97 
98 //---------------------------------------------------------------------------
99 // Zone and Link (fat) Info registry. Sorted by zoneId. Links act like Zones.
100 //---------------------------------------------------------------------------
101 const basic::ZoneInfo* const kZoneAndLinkRegistry[12] ACE_TIME_PROGMEM = {
102  &kZoneAmerica_New_York, // 0x1e2a7654, America/New_York
103  &kZoneAustralia_Darwin, // 0x2876bdff, Australia/Darwin
104  &kZoneAmerica_Vancouver, // 0x2c6f6b1f, America/Vancouver
105  &kZoneAmerica_Chicago, // 0x4b92b5d4, America/Chicago
106  &kZoneAmerica_Edmonton, // 0x6cb9484a, America/Edmonton
107  &kZoneAmerica_Toronto, // 0x792e851b, America/Toronto
108  &kZoneAmerica_Winnipeg, // 0x8c7dafc7, America/Winnipeg
109  &kZoneAmerica_Denver, // 0x97d10b2a, America/Denver
110  &kZoneUS_Pacific, // 0xa950f6ab, US/Pacific -> America/Los_Angeles
111  &kZonePacific_Galapagos, // 0xa952f752, Pacific/Galapagos
112  &kZoneAmerica_Los_Angeles, // 0xb7f7e8f2, America/Los_Angeles
113  &kZoneAfrica_Johannesburg, // 0xd5d157a0, Africa/Johannesburg
114 
115 };
116 
117 }
118 }
Macros and definitions that provide a consistency layer among the various Arduino boards for compatib...