6 #ifndef ACE_TIME_BASIC_ZONE_H
7 #define ACE_TIME_BASIC_ZONE_H
10 #include "../zoneinfo/infos.h"
11 #include "../zoneinfo/brokers.h"
12 #include "TimeOffset.h"
30 mZoneInfoBroker(zoneInfo) {}
38 mZoneInfoBroker(zoneInfo) {}
45 bool isNull()
const {
return mZoneInfoBroker.isNull(); }
59 return mZoneInfoBroker.zoneId();
64 uint8_t numEras = mZoneInfoBroker.numEras();
70 ace_common::KString
kname()
const {
71 const auto* name =
isNull() ? nullptr : mZoneInfoBroker.name();
73 return ace_common::KString(
74 name, zoneContext.fragments(), zoneContext.numFragments());
A thin wrapper around a basic::ZoneInfo data structure to provide a stable API access to some useful ...
ace_common::KString kname() const
Return the name as a KString.
uint32_t zoneId() const
Return the zoneId of the current zoneInfo.
TimeOffset stdOffset() const
Return the STDOFF of the last ZoneEra.
BasicZone(const basic::ZoneInfo *zoneInfo)
Constructor from a raw basic::ZoneInfo* pointer, intended for manual inspection of a ZoneInfo record.
bool isNull() const
Return true if zoneInfo is null.
BasicZone(const basic::ZoneInfoBroker &zoneInfo)
Constructor from a basic::ZoneInfoBroker, used by BasicZoneProcessor.
void printShortNameTo(Print &printer) const
Print the short pretty zone name to the printer.
void printNameTo(Print &printer) const
Print the full zone name to printer.
A thin wrapper that represents a time offset from a reference point, usually 00:00 at UTC,...
static TimeOffset forSeconds(int32_t seconds)
Create TimeOffset from seconds from 00:00.
Data broker for accessing a ZoneContext.
Data broker for accessing ZoneEra.
Representation of a given time zone, implemented as an array of ZoneEra records.