Skip to content

Commit a5601c4

Browse files
authored
Merge pull request #83 from bxparks/develop
merge v1.8.2 into master
2 parents 49183f6 + 1538b17 commit a5601c4

21 files changed

+93
-73
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Changelog
22

33
* Unreleased
4+
* 1.8.2 (2021-10-28, TZDB 2021e)
5+
* Update to TZDB 2021e.
6+
* https://mm.icann.org/pipermail/tz-announce/2021-October/000069.html
7+
* Palestine will fall back 10-29 (not 10-30) at 01:00.
48
* 1.8.1 (2021-10-18, TZDB 2021d)
59
* Add `make -C examples/MemoryBenchmark epoxy` to GitHub actions.
610
* Upgrade to TZDB 2021d.
11+
* https://mm.icann.org/pipermail/tz-announce/2021-October/000068.html
12+
* Fiji suspends DST for the 2021/2022 season.
713
* 1.8.0 (2021-10-15, TZDB 2021c)
814
* **Breaking Change**: Move clock classes under `ace_time::clock` and
915
implementation classes under `ace_time::hw` to the new

DEVELOPER.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,12 @@ available.
574574
* `$ make`
575575
* `$ ./ExtendedHinnantDateTest.out | grep failed`
576576
* There should be no failures.
577+
* Update the zoneinfo files for AceTimePython (needed by BasicAcetzTest and
578+
ExtendedAcetzTest):
579+
* ``zonedbpy`
580+
* `$ cd AceTimePython/src/acetime/zonedbpy`
581+
* Edit the `Makefile` and update the `TZ_VERSION`.
582+
* `$ make`
577583
* Verify that the `AceTime` library and the `AceTimePython` library agree with
578584
each other using the same TZDB version. This requires going into the
579585
[AceTimeValidation](https://github.com/bxparks/AceTimeValidation) project.
@@ -602,11 +608,6 @@ available.
602608
* `$ cd src/ace_time/zonedbx`
603609
* Edit the `Makefile` and update the `TZ_VERSION`.
604610
* `$ make`
605-
* Update the zoneinfo files for AceTimePython:
606-
* ``zonedbpy`
607-
* `$ cd AceTimePython/src/acetime/zonedbpy`
608-
* Edit the `Makefile` and update the `TZ_VERSION`.
609-
* `$ make`
610611
* Update CHANGELOGs
611612
* AceTime/CHANGELOG.md
612613
* AceTimePython/CHANGELOG.md
@@ -649,17 +650,17 @@ tests will fail until the underlying timezone database of the OS is updated.
649650
* Go to https://github.com/bxparks/AceTime.
650651
* Create a Pull Request from `develop` to `master`.
651652
* Approve and merge the PR.
652-
* Create a new Release of AceTime.
653-
* Go to https://github.com/bxparks/AceTime
653+
* Create a new Release of AceTimePython.
654+
* Go to https://github.com/bxparks/AceTimePython
654655
* Click on "Releases"
655656
* Click on "Draft a new release"
656657
* Enter a tag version (e.g. `v1.2`), targeting the `master` branch.
657658
* Enter the release title.
658659
* Enter the release notes. I normally just copy and paste the latest changes
659660
from `CHANGELOG.md`.
660661
* Click Publish release.
661-
* Create a new Release of AceTimePython.
662-
* Go to https://github.com/bxparks/AceTimePython
662+
* Create a new Release of AceTime.
663+
* Go to https://github.com/bxparks/AceTime
663664
* Click on "Releases"
664665
* Click on "Draft a new release"
665666
* Enter a tag version (e.g. `v1.2`), targeting the `master` branch.

MIGRATING.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ Three breaking changes were made from v1.7.5 to v1.8.0:
1919
2) The `DS3231Clock` class was converted into a template class to replace a
2020
direct dependency to the I2C `<Wire.h>` library with an indirect dependency
2121
to the [AceWire](https://github.com/bxparks/AceWire) library. This reduces
22-
the flash memory consumption by at least 1300 bytes on AVR for applications
23-
which use only the AceTime portion of the library, and increases the
24-
flexibility of the `DS3231Clock` class.
25-
3) Support for *thin links* was moved out of `BasicZoneManager` and
26-
`ExtendedZoneManager` into the new `BasicLinkManager` and
27-
`ExtendedLinkManager`. This simplifies the ZoneManagers, and reduces the
28-
flash memory consumption of applications which do not use this feature by
29-
200-500 bytes.
22+
the flash memory consumption between 1300-2500 bytes on AVR processor
23+
on applications which use only the AceTime portion of the library, and
24+
increases the flexibility of the `DS3231Clock` class.
25+
3) Support for [thin links](USER_GUIDE.md#ThinLinks) was moved out of
26+
`BasicZoneManager` and `ExtendedZoneManager` into the new `BasicLinkManager`
27+
and `ExtendedLinkManager` classes. This simplifies the ZoneManagers, and
28+
reduces the flash memory consumption of applications which do not use this
29+
feature by 200-500 bytes.
3030

3131
The following subsections show how to migrate client application from
3232
AceTime v1.7.5 to AceTime v1.8.0.
@@ -160,9 +160,9 @@ instead.
160160
<a name="MigratingToLinkManagers"></a>
161161
### Migrating to LinkManagers
162162
163-
In v1.7.5, thin links were activated by adding the `kLinkRegistrySize` and
164-
`kLinkRegistry` parameters to the constructor of `BasicZoneManager` and
165-
`ExtendedZoneManager`, like this:
163+
In v1.7.5, [thin links](USER_GUIDE.md#ThinLinks) were activated by adding the
164+
`kLinkRegistrySize` and `kLinkRegistry` parameters to the constructor of
165+
`BasicZoneManager` and `ExtendedZoneManager`, like this:
166166
167167
```C++
168168
BasicZoneManager zoneManager(
@@ -206,5 +206,6 @@ TimeZone findTimeZone(uint32_t zoneId) {
206206
}
207207
```
208208

209-
See the [Thin Links](USER_GUIDE.md#ThinLinks) section in the User Guide for
210-
additional information.
209+
This change allows the ZoneManagers to provide a consistent API for some
210+
upcoming features, and prevents unnecessary flash consumption (200-500 bytes) if
211+
the client application does not use the thin link feature.

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This library can be an alternative to the Arduino Time
4141
(https://github.com/PaulStoffregen/Time) and Arduino Timezone
4242
(https://github.com/JChristensen/Timezone) libraries.
4343

44-
**Version**: 1.8.1 (2021-10-18, TZDB version 2021d)
44+
**Version**: 1.8.2 (2021-10-28, TZDB version 2021e)
4545

4646
**Changelog**: [CHANGELOG.md](CHANGELOG.md)
4747

@@ -959,14 +959,14 @@ get some time to take a closer look in the future.
959959
<a name="FeedbackAndSupport"></a>
960960
## Feedback and Support
961961
962-
If you have any questions, comments and other support questions about how to
963-
use this library, please use the
964-
[GitHub Discussions](https://github.com/bxparks/AceTime/discussions)
965-
for this project. If you have bug reports or feature requests, please file a
966-
ticket in [GitHub Issues](https://github.com/bxparks/AceTime/issues).
967-
I'd love to hear about how this software and its documentation can be improved.
968-
I can't promise that I will incorporate everything, but I will give your ideas
969-
serious consideration.
962+
If you have any questions, comments, or feature requests for this library,
963+
please use the [GitHub
964+
Discussions](https://github.com/bxparks/AceTime/discussions) for this project.
965+
If you have bug reports, please file a ticket in [GitHub
966+
Issues](https://github.com/bxparks/AceTime/issues). Feature requests should go
967+
into Discussions first because they often have alternative solutions which are
968+
useful to remain visible, instead of disappearing from the default view of the
969+
Issue tracker after the ticket is closed.
970970
971971
Please refrain from emailing me directly unless the content is sensitive. The
972972
problem with email is that I cannot reference the email conversation when other

USER_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The primary purpose of AceTime classes is to convert between an integer
44
representing the number of seconds since Epoch (2000-01-01T00:00:00 UTC) to
55
human-readable components in different timezones.
66

7-
**Version**: 1.8.1 (2021-10-18, TZDB 2021d)
7+
**Version**: 1.8.2 (2021-10-28, TZDB 2021e)
88

99
**Related Documents**:
1010

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AceTime
2-
version=1.8.1
2+
version=1.8.2
33
author=Brian T. Park <[email protected]>
44
maintainer=Brian T. Park <[email protected]>
55
sentence=Date, time, timezone classes for Arduino supporting the full IANA TZ Database to convert epoch seconds to date and time components in different time zones.

src/AceTime.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
#include "ace_time/time_period_mutation.h"
6868

6969
// Version format: xxyyzz == "xx.yy.zz"
70-
#define ACE_TIME_VERSION 10801
71-
#define ACE_TIME_VERSION_STRING "1.8.1"
70+
#define ACE_TIME_VERSION 10802
71+
#define ACE_TIME_VERSION_STRING "1.8.2"
7272

7373
#endif

src/ace_time/zonedb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TARGETS := zone_infos.cpp zone_infos.h zone_policies.cpp zone_policies.h
22

33
TOOLS := $(abspath ../../../../AceTimeTools)
44

5-
TZ_VERSION := 2021d
5+
TZ_VERSION := 2021e
66
START_YEAR := 2000
77
UNTIL_YEAR := 2050
88

src/ace_time/zonedb/zone_infos.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// $ /home/brian/src/AceTimeTools/src/acetimetools/tzcompiler.py
44
// --input_dir /home/brian/dev/tz
55
// --output_dir /home/brian/src/AceTime/src/ace_time/zonedb
6-
// --tz_version 2021d
6+
// --tz_version 2021e
77
// --action zonedb
88
// --language arduino
99
// --scope basic
@@ -22,7 +22,7 @@
2222
// northamerica
2323
// southamerica
2424
//
25-
// from https://github.com/eggert/tz/releases/tag/2021d
25+
// from https://github.com/eggert/tz/releases/tag/2021e
2626
//
2727
// Zones: 258
2828
// Links: 193
@@ -52,7 +52,7 @@ namespace zonedb {
5252
// ZoneContext (should not be in PROGMEM)
5353
//---------------------------------------------------------------------------
5454

55-
const char kTzDatabaseVersion[] = "2021d";
55+
const char kTzDatabaseVersion[] = "2021e";
5656

5757
const char* const kFragments[] = {
5858
/*\x00*/ nullptr,

src/ace_time/zonedb/zone_infos.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// $ /home/brian/src/AceTimeTools/src/acetimetools/tzcompiler.py
44
// --input_dir /home/brian/dev/tz
55
// --output_dir /home/brian/src/AceTime/src/ace_time/zonedb
6-
// --tz_version 2021d
6+
// --tz_version 2021e
77
// --action zonedb
88
// --language arduino
99
// --scope basic
@@ -22,7 +22,7 @@
2222
// northamerica
2323
// southamerica
2424
//
25-
// from https://github.com/eggert/tz/releases/tag/2021d
25+
// from https://github.com/eggert/tz/releases/tag/2021e
2626
//
2727
// DO NOT EDIT
2828

0 commit comments

Comments
 (0)