AceTime
1.11.2
Date and time classes for Arduino that support timezones from the TZ Database.
|
A specific implementation of BasicZoneProcessorTemplate that uses ZoneXxxBrokers which read from zonedb files in PROGMEM flash memory. More...
#include <BasicZoneProcessor.h>
Public Member Functions | |
BasicZoneProcessor (const basic::ZoneInfo *zoneInfo=nullptr) | |
![]() | |
bool | isLink () const override |
Return true if timezone is a Link entry pointing to a Zone entry. | |
uint32_t | getZoneId (bool followLink=false) const override |
Return the unique stable zoneId. More... | |
TimeOffset | getUtcOffset (acetime_t epochSeconds) const override |
Return the total UTC offset at epochSeconds, including DST offset. More... | |
TimeOffset | getDeltaOffset (acetime_t epochSeconds) const override |
Return the DST delta offset at epochSeconds. More... | |
const char * | getAbbrev (acetime_t epochSeconds) const override |
Return the time zone abbreviation at epochSeconds. More... | |
OffsetDateTime | getOffsetDateTime (const LocalDateTime &ldt) const override |
OffsetDateTime | getOffsetDateTime (acetime_t epochSeconds) const override |
Return the best estimate of the OffsetDateTime at the given epochSeconds for the timezone of the current ZoneProcessor, including the fold parameter. More... | |
void | printNameTo (Print &printer, bool followLink=false) const override |
Print a human-readable identifier (e.g. More... | |
void | printShortNameTo (Print &printer, bool followLink=false) const override |
Print a short human-readable identifier (e.g. More... | |
void | setZoneKey (uintptr_t zoneKey) override |
Set the opaque zoneKey of this object to a new value, reseting any internally cached information. More... | |
bool | equalsZoneKey (uintptr_t zoneKey) const override |
Return true if ZoneProcessor is associated with the given opaque zoneKey. More... | |
void | log () const |
Used only for debugging. | |
void | setBrokerFactory (const basic::BrokerFactory *brokerFactory) |
Set the broker factory at runtime. More... | |
![]() | |
uint8_t | getType () const |
Return the kTypeXxx of the current instance. | |
virtual bool | isLink () const =0 |
Return true if timezone is a Link entry pointing to a Zone entry. | |
Static Public Attributes | |
static const uint8_t | kTypeBasic = 3 |
Unique TimeZone type identifier for BasicZoneProcessor. | |
Additional Inherited Members | |
![]() | |
typedef basic::TransitionTemplate< basic::ZoneInfoBroker, basic::ZoneEraBroker, basic::ZonePolicyBroker, basic::ZoneRuleBroker > | Transition |
Exposed only for testing purposes. | |
![]() | |
BasicZoneProcessorTemplate (uint8_t type, const basic::BrokerFactory *brokerFactory, uintptr_t zoneKey) | |
Constructor. More... | |
![]() | |
ZoneProcessor (const ZoneProcessor &)=delete | |
ZoneProcessor & | operator= (const ZoneProcessor &)=delete |
ZoneProcessor (uint8_t type) | |
Constructor. | |
![]() | |
const uint8_t | mType |
A specific implementation of BasicZoneProcessorTemplate that uses ZoneXxxBrokers which read from zonedb files in PROGMEM flash memory.
Definition at line 1022 of file BasicZoneProcessor.h.