AceTime  1.11.7
Date and time classes for Arduino that support timezones from the TZ Database.
Public Member Functions | List of all members
ace_time::extended::ZoneInfoBroker Class Reference

Data broker for accessing ZoneInfo. More...

#include <ExtendedBrokers.h>

Public Member Functions

 ZoneInfoBroker (const ZoneInfo *zoneInfo=nullptr)
 
 ZoneInfoBroker (const ZoneInfoBroker &)=default
 
ZoneInfoBrokeroperator= (const ZoneInfoBroker &)=default
 
bool equals (uintptr_t zoneInfo) 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::ZoneContextzoneContext () 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...
 

Detailed Description

Data broker for accessing ZoneInfo.

Definition at line 318 of file ExtendedBrokers.h.

Member Function Documentation

◆ printNameTo()

void ace_time::extended::ZoneInfoBroker::printNameTo ( Print &  printer) const

Print a human-readable identifier (e.g.

"America/Los_Angeles").

Definition at line 19 of file ExtendedBrokers.cpp.

◆ printShortNameTo()

void ace_time::extended::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 ExtendedBrokers.cpp.

◆ targetZoneInfo()

ZoneInfoBroker ace_time::extended::ZoneInfoBroker::targetZoneInfo ( ) const
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 345 of file ExtendedBrokers.h.


The documentation for this class was generated from the following files: