AceTime
1.11.2
Date and time classes for Arduino that support timezones from the TZ Database.
|
Data broker for accessing ZoneInfo. More...
#include <BasicBrokers.h>
Public Member Functions | |
ZoneInfoBroker (const ZoneInfo *zoneInfo=nullptr) | |
ZoneInfoBroker (const ZoneInfoBroker &)=default | |
ZoneInfoBroker & | operator= (const ZoneInfoBroker &)=default |
bool | equals (uintptr_t zoneKey) const |
bool | equals (const ZoneInfoBroker &zoneInfoBroker) const |
bool | isNull () const |
bool | isLink () const |
ZoneInfoBroker | targetZoneInfo () const |
Return the ZoneInfoBroker of the target Zone, assuming that the current Zone is a Link. More... | |
const internal::ZoneContext * | zoneContext () const |
const __FlashStringHelper * | name () const |
uint32_t | zoneId () const |
uint8_t | numEras () const |
const ZoneEraBroker | era (uint8_t i) const |
void | printNameTo (Print &printer) const |
Print a human-readable identifier (e.g. More... | |
void | printShortNameTo (Print &printer) const |
Print a short human-readable identifier (e.g. More... | |
Data broker for accessing ZoneInfo.
Definition at line 286 of file BasicBrokers.h.
void ace_time::basic::ZoneInfoBroker::printNameTo | ( | Print & | printer | ) | const |
Print a human-readable identifier (e.g.
"America/Los_Angeles").
Definition at line 19 of file BasicBrokers.cpp.
void ace_time::basic::ZoneInfoBroker::printShortNameTo | ( | Print & | printer | ) | const |
Print a short human-readable identifier (e.g.
"Los Angeles"). Any underscore in the short name is replaced with a space.
Definition at line 25 of file BasicBrokers.cpp.
|
inline |
Return the ZoneInfoBroker of the target Zone, assuming that the current Zone is a Link.
Should be called after verifying that isLink() is true.
Definition at line 313 of file BasicBrokers.h.