6 #ifndef ACE_TIME_BROKER_COMMON_H
7 #define ACE_TIME_BROKER_COMMON_H
17 class __FlashStringHelper;
31 return ((int16_t)(deltaCode & 0x0f) - 4) * 15;
41 return (offsetCode * 15) + (((uint8_t)deltaCode & 0xf0) >> 4);
52 return code * (uint16_t) 15 + (modifier & 0x0f);
61 return modifier & 0xf0;
80 const char* findShortName(
const char* name);
86 const __FlashStringHelper* findShortName(
const __FlashStringHelper* fname);
int16_t toOffsetMinutes(int8_t offsetCode, uint8_t deltaCode)
Convert the offsetCode and deltaCode into a signed 16-bit integer that represents the UTCOFF of the Z...
uint16_t timeCodeToMinutes(uint8_t code, uint8_t modifier)
Convert (code, modifier) fields representing the UNTIL time in ZoneInfo or AT time in ZoneRule in one...
int16_t toDeltaMinutes(uint8_t deltaCode)
Convert the deltaCode in the ZoneInfo or the ZoneRule struct to the actual deltaMinutes.
uint8_t toSuffix(uint8_t modifier)
Extract the 'w', 's' 'u' suffix from the 'modifier' field, so that they can be compared against kSuff...