AceTime
3.0.0
Date and time classes for Arduino that support timezones from the TZ Database.
|
A time zone transition rule. More...
#include <ZoneInfoHigh.h>
Public Attributes | |
int16_t const | fromYear |
FROM year. | |
int16_t const | toYear |
TO year. | |
uint8_t const | inMonth |
Determined by the IN column. More... | |
uint8_t const | onDayOfWeek |
Determined by the ON column. More... | |
int8_t const | onDayOfMonth |
Determined by the ON column. More... | |
uint8_t const | atTimeModifier |
The atTimeModifier is a packed field containing 2 pieces of info: More... | |
uint16_t const | atTimeCode |
Determined by the AT column in units of 15-seconds from 00:00. More... | |
int8_t const | deltaMinutes |
Determined by the SAVE column and contains the offset from UTC in minutes. More... | |
uint8_t const | letterIndex |
Determined by the LETTER column. More... | |
A time zone transition rule.
It is useful to think of this as a transition rule that repeats on the given (month, day, hour) every year during the interval [fromYear, toYear] inclusive.
Definition at line 124 of file ZoneInfoHigh.h.
uint16_t const ace_time::ZoneInfoHigh::ZoneRule::atTimeCode |
Determined by the AT column in units of 15-seconds from 00:00.
The range is [0,6000] or [0h,25h] in 15-second increments.
Definition at line 167 of file ZoneInfoHigh.h.
uint8_t const ace_time::ZoneInfoHigh::ZoneRule::atTimeModifier |
The atTimeModifier is a packed field containing 2 pieces of info:
Definition at line 161 of file ZoneInfoHigh.h.
int8_t const ace_time::ZoneInfoHigh::ZoneRule::deltaMinutes |
Determined by the SAVE column and contains the offset from UTC in minutes.
The range is [-128,+127] which allows it to represent DST offset in the range of [-02:00,02:00].
Definition at line 174 of file ZoneInfoHigh.h.
uint8_t const ace_time::ZoneInfoHigh::ZoneRule::inMonth |
uint8_t const ace_time::ZoneInfoHigh::ZoneRule::letterIndex |
Determined by the LETTER column.
Determines the substitution into the 's' field (implemented here by just a '') of the ZoneInfo::format field. This is an index offset into the global kLetters array. Most LETTER string is a single character, e.g. "D", "S", or "". But a small number have LETTER fields which are longer than one character. For example:
Definition at line 188 of file ZoneInfoHigh.h.
int8_t const ace_time::ZoneInfoHigh::ZoneRule::onDayOfMonth |
Determined by the ON column.
Used with onDayOfWeek. Possible values are: 0, 1-31, or its corresponding negative values.
Definition at line 150 of file ZoneInfoHigh.h.
uint8_t const ace_time::ZoneInfoHigh::ZoneRule::onDayOfWeek |
Determined by the ON column.
Possible values are: 0, 1=Mon, 7=Sun. There are 4 combinations:
* onDayOfWeek=0, onDayOfMonth=(1-31): exact match * onDayOfWeek=1-7, onDayOfMonth=1-31: dayOfWeek>=dayOfMonth * onDayOfWeek=1-7, onDayOfMonth=-(1-31): dayOfWeek<=dayOfMonth * onDayOfWeek=1-7, onDayOfMonth=0: last{dayOfWeek} *
Definition at line 144 of file ZoneInfoHigh.h.