AceTime
1.11.2
Date and time classes for Arduino that support timezones from the TZ Database.
|
6 #ifndef ACE_TIME_BASIC_ZONE_H
7 #define ACE_TIME_BASIC_ZONE_H
10 #include "internal/ZoneInfo.h"
29 mZoneInfoBroker(zoneInfo) {}
37 mZoneInfoBroker(zoneInfo) {}
44 bool isNull()
const {
return mZoneInfoBroker.isNull(); }
58 return mZoneInfoBroker.zoneId();
63 uint8_t numEras = mZoneInfoBroker.numEras();
65 return zeb.offsetMinutes();
69 ace_common::KString
kname()
const {
70 const auto* name =
isNull() ? nullptr : mZoneInfoBroker.name();
72 return ace_common::KString(
BasicZone(const basic::ZoneInfoBroker &zoneInfo)
Constructor from a basic::ZoneInfoBroker, used by BasicZoneProcessor.
int16_t stdOffsetMinutes() const
Return the STDOFF of the last ZoneEra.
Data broker for accessing ZoneEra.
void printNameTo(Print &printer) const
Print the full zone name to printer.
Metadata about the zone database.
void printShortNameTo(Print &printer) const
Print the short pretty zone name to the printer.
A thin wrapper around a basic::ZoneInfo data structure to provide a stable API access to some useful ...
bool isNull() const
Return true if zoneInfo is null.
Data broker for accessing ZoneInfo.
const char *const * fragments
Zone Name fragment list.
ace_common::KString kname() const
Return the name as a KString.
uint32_t zoneId() const
Return the zoneId of the current zoneInfo.
uint8_t numFragments
Number of fragments.
BasicZone(const basic::ZoneInfo *zoneInfo)
Constructor from a raw basic::ZoneInfo* pointer, intended for manual inspection of a ZoneInfo record.