AceTime  0.6.1
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
Public Attributes | List of all members
ace_time::extended::ZoneInfo Struct Reference

Representation of a given time zone, implemented as an array of ZoneEra records. More...

#include <ZoneInfo.h>

Collaboration diagram for ace_time::extended::ZoneInfo:
Collaboration graph
[legend]

Public Attributes

const char *const name
 Full name of zone (e.g. More...
 
uint32_t const zoneId
 Unique, stable ID of the zone name, created from a hash of the name. More...
 
const ZoneContext *const zoneContext
 ZoneContext metadata. More...
 
uint8_t const transitionBufSize
 Estimated size of Transition buffer. More...
 
uint8_t const numEras
 Number of ZoneEra entries. More...
 
const ZoneEra *const eras
 ZoneEra entries in increasing order of UNTIL time. More...
 

Detailed Description

Representation of a given time zone, implemented as an array of ZoneEra records.

Definition at line 77 of file ZoneInfo.h.

Member Data Documentation

◆ eras

const ZoneEra* const ace_time::extended::ZoneInfo::eras

ZoneEra entries in increasing order of UNTIL time.

Definition at line 104 of file ZoneInfo.h.

◆ name

const char* const ace_time::extended::ZoneInfo::name

Full name of zone (e.g.

"America/Los_Angeles").

Definition at line 79 of file ZoneInfo.h.

◆ numEras

uint8_t const ace_time::extended::ZoneInfo::numEras

Number of ZoneEra entries.

Definition at line 101 of file ZoneInfo.h.

◆ transitionBufSize

uint8_t const ace_time::extended::ZoneInfo::transitionBufSize

Estimated size of Transition buffer.

Currently, this is used only in the validation unit test for ExtendedZoneProcessor. It is slightly wasteful to include it for the ZoneInfo and ZoneInfo classes used by BasicZoneProcessor, but it's only one byte and it seemed worth having this additional validation capability.

Definition at line 98 of file ZoneInfo.h.

◆ zoneContext

const ZoneContext* const ace_time::extended::ZoneInfo::zoneContext

ZoneContext metadata.

Definition at line 89 of file ZoneInfo.h.

◆ zoneId

uint32_t const ace_time::extended::ZoneInfo::zoneId

Unique, stable ID of the zone name, created from a hash of the name.

This ID will never change once assigned. This can be used for presistence and serialization.

Definition at line 86 of file ZoneInfo.h.


The documentation for this struct was generated from the following file: