Skip to content

Commit f175842

Browse files
committed
Remove references to AceTimeTools and AceTimeValidation
1 parent 2e4f063 commit f175842

File tree

16 files changed

+42
-40
lines changed

16 files changed

+42
-40
lines changed

DEVELOPER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ from the client application.)
216216

217217
The AceTime library comes with 3 sets of zoneinfo files, which were
218218
programmatically generated by the scripts in
219-
[AceTimeTools](https://github.com/bxparks/AceTimeTools/) from the [IANA TZ
219+
`AceTimeSuite/compiler/tzcompiler.sh` from the [IANA TZ
220220
Data](https://www.iana.org/time-zones):
221221

222222
* `src/zonedb/*`

USER_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2811,7 +2811,7 @@ C++ code representing these custom zone registries from a list of zones.)
28112811
(**TBD**: It might also be useful for app developers to create custom datasets
28122812
with different range of years. The tools are all here, but not explicitly
28132813
documented currently. Examples of how to this do exist inside the various
2814-
`Makefile` files in the AceTimeValidation project.)
2814+
`Makefile` files under `AceTimeSuite/validation/tests/*/Makefile`.)
28152815
28162816
<a name="ZoneSorting"></a>
28172817
## Zone Sorting

src/ace_time/BasicZoneProcessor.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ inline int8_t compareYearMonth(int16_t aYear, uint8_t aMonth,
170170
* simplify the implementation of this class. The tzcompiler.py script will
171171
* remove zones which do not meet these constraints when generating the structs
172172
* defined by zonedb/zone_infos.h. The constraints are at least the following
173-
* (see AceTimeTools/transformer.py for the authoratative algorithm):
173+
* (see AceTimeSuite/compiler/src/acetimecompiler/transformer/transformer.py for
174+
* the authoratative algorithm):
174175
*
175176
* * ZoneInfo UNTIL field must contain only the full year;
176177
* cannot contain month, day, or time components
@@ -428,9 +429,9 @@ class BasicZoneProcessorTemplate: public ZoneProcessor {
428429
* support these zones, if the UTC date is 1/1, then we force the
429430
* transition cache to be generated using the *previous* year. This
430431
* workaround will fail for zones which have DST transitions on 1/1.
431-
* Therefore, the zone_info.h generator (AceTimeTools/tzcompiler.py) removes
432-
* all zones which have time zone transitions on 1/1 from the list of
433-
* supported zones.
432+
* Therefore, the zone_info.h generator
433+
* (AceTimeSuite/compiler/tzcompiler.sh) removes all zones which have time
434+
* zone transitions on 1/1 from the list of supported zones.
434435
*
435436
* The high level algorithm for determining the DST transitions is as
436437
* follows:
@@ -701,9 +702,9 @@ class BasicZoneProcessorTemplate: public ZoneProcessor {
701702
// If a zone needs more transitions than kMaxCacheEntries, the check below
702703
// will cause the DST transition information to be inaccurate, and it is
703704
// highly likely that this situation would be caught in the
704-
// AceTimeValidation tests. Since these integration tests pass, I feel
705-
// confident that those zones which need more than kMaxCacheEntries are
706-
// already filtered out by tzcompiler.py.
705+
// AceTimeSuite/validation/tests. Since these integration tests pass, I
706+
// feel confident that those zones which need more than kMaxCacheEntries
707+
// are already filtered out by tzcompiler.py.
707708
//
708709
// Ideally, the tzcompiler.py script would explicitly remove those zones
709710
// which need more than kMaxCacheEntries Transitions. But this would

src/ace_time/ExtendedZoneProcessor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class ExtendedZoneProcessorTemplate: public ZoneProcessor {
8888
* given in the 'MaxBufSize' comment in the `zone_infos.h` file. Currently
8989
* that overall maximum is 7, which has been verified by various tests (e.g.
9090
* HinnantExtendedTest, DateUtilExtendedTest, JavaExtendedTest, and
91-
* AcetzExtendedTest) in the AceTimeValidation project. We set this to one
92-
* more than 7 for safety.
91+
* AcetzExtendedTest) in the AceTimeSuite/validation/tests. We set this to
92+
* one more than 7 for safety.
9393
*/
9494
static const uint8_t kMaxTransitions = 8;
9595

src/ace_time/Transition.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,11 @@ class TransitionStorageTemplate {
553553
/**
554554
* Return the Transition matching the given epochSeconds. Return nullptr if
555555
* no matching Transition found. If a zone does not have any transition
556-
* according to TZ Database, the AceTimeTools/transformer.py script adds an
557-
* "anchor" transition at the "beginning of time" which happens to be the
558-
* year 1872 (because the year is stored as an int8_t). Therefore, this
559-
* method should never return a nullptr for a well-formed ZoneInfo file.
556+
* according to TZ Database, the AceTimeSuite/compiler/tzcompiler.sh script
557+
* adds an "anchor" transition at the "beginning of time" which happens to
558+
* be the year 1872 (because the year is stored as an int8_t). Therefore,
559+
* this method should never return a nullptr for a well-formed ZoneInfo
560+
* file.
560561
*/
561562
TransitionForSeconds findTransitionForSeconds(acetime_t epochSeconds)
562563
const {

src/ace_time/ZoneProcessor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ MonthDay calcStartDayOfMonth(int16_t year, uint8_t month,
295295
* (e.g. "P%T", "E%T"), the time zone deltaMinutes (!= 0 means DST), and the
296296
* replacement letter (e.g. 'S', 'D', '\0' (represented as '-' in the
297297
* Rule.LETTER entry). If the Zone.RULES column is '-' or 'hh:mm', then
298-
* 'letter' will be set to '\0' also, although AceTimeTools/transformer.py
298+
* 'letter' will be set to '\0' also, although
299+
* AceTimeSuite/compiler/src/acetimecompiler/transformer/transformer.py
299300
* should have detected this condition and filtered that zone out.
300301
*
301302
* Starting from v2.3, the same algorithm is used by both BasicZoneProcessor

src/ace_time/testing/ValidationDataType.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace testing {
1616
* The epochSecond and the expected UTC offset and dateTime components.
1717
* This is the C++ representation of the 'TestItem' entry in
1818
* validation_data.json file which is defined in
19-
* AceTimeTools/datatypes/valtyping.py. The 'type' contains a single
20-
* character with the following meanings:
19+
* AceTimeSuite/compiler/src/acetimecompiler/datatypes/valtyping.py. The 'type'
20+
* contains a single character with the following meanings:
2121
*
2222
* * 'A': pre-transition where the UTC offset is different
2323
* * 'B': post-transition where the UTC offset is different

src/testingzonedb/zone_infos.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ const uint32_t kZoneIdUS_Pacific = 0xa950f6ab; // US/Pacific
143143

144144
//---------------------------------------------------------------------------
145145
// Maximum size of the Transition buffer in ExtendedZoneProcessor for each zone
146-
// over the given years. Used only in the AceTimeValidation/Extended*Test tests
147-
// for ExtendedZoneProcessor.
146+
// over the given years. Used only in the
147+
// AceTimeSuite/validation/tests/*ExtendedTest tests.
148148
//
149149
// MaxBufSize: 6
150150
//---------------------------------------------------------------------------

src/testingzonedbc/zone_infos.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ const uint32_t kZoneIdUS_Pacific = 0xa950f6ab; // US/Pacific
151151

152152
//---------------------------------------------------------------------------
153153
// Maximum size of the Transition buffer in ExtendedZoneProcessor for each zone
154-
// over the given years. Used only in the AceTimeValidation/Extended*Test tests
155-
// for ExtendedZoneProcessor.
154+
// over the given years. Used only in the
155+
// AceTimeSuite/validation/tests/*ExtendedTest tests.
156156
//
157157
// MaxBufSize: 7
158158
//---------------------------------------------------------------------------

src/testingzonedbx/zone_infos.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ const uint32_t kZoneIdUS_Pacific = 0xa950f6ab; // US/Pacific
151151

152152
//---------------------------------------------------------------------------
153153
// Maximum size of the Transition buffer in ExtendedZoneProcessor for each zone
154-
// over the given years. Used only in the AceTimeValidation/Extended*Test tests
155-
// for ExtendedZoneProcessor.
154+
// over the given years. Used only in the
155+
// AceTimeSuite/validation/tests/*ExtendedTest tests.
156156
//
157157
// MaxBufSize: 7
158158
//---------------------------------------------------------------------------

0 commit comments

Comments
 (0)