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