AceTime  2.2.0
Date and time classes for Arduino that support timezones from the TZ Database.
Public Attributes | Static Public Attributes | List of all members
ace_time::internal::ZoneContext Struct Reference

Metadata about the zone database. More...

#include <ZoneContext.h>

Public Attributes

int16_t startYear
 Start year of the zone files.
 
int16_t untilYear
 Until year of the zone files.
 
int16_t maxTransitions
 Max number of transitions required in TransitionStorage.
 
const char * tzVersion
 TZ Database version which generated the zone info.
 
uint8_t numFragments
 Number of fragments.
 
uint8_t numLetters
 Number of fragments.
 
const char *const * fragments
 Zone Name fragment list.
 
const char *const * letters
 Zone Rule letters list.
 

Static Public Attributes

static const int16_t kMaxUntilYear = 32767
 The maximum value of untilYear. More...
 
static const int16_t kMaxYear = kMaxUntilYear - 1
 The maximum value fromYear and toYear. More...
 
static const int16_t kMinYear = -32767
 The minimum value of fromYear and toYear. More...
 
static const uint8_t kSuffixW = 0x00
 Represents 'w' or wall time.
 
static const uint8_t kSuffixS = 0x10
 Represents 's' or standard time.
 
static const uint8_t kSuffixU = 0x20
 Represents 'u' or UTC time.
 

Detailed Description

Metadata about the zone database.

A ZoneInfo struct will contain a pointer to this.

Definition at line 16 of file ZoneContext.h.

Member Data Documentation

◆ kMaxUntilYear

const int16_t ace_time::internal::ZoneContext::kMaxUntilYear = 32767
static

The maximum value of untilYear.

This value is used to represent the sentinel value "-" in the UNTIL column of the TZDB files which means "infinity". Must be greater than ZoneRule::kMaxYear which represents the value "max" in the TO and FROM columns of the TZDB files.

Definition at line 23 of file ZoneContext.h.

◆ kMaxYear

const int16_t ace_time::internal::ZoneContext::kMaxYear = kMaxUntilYear - 1
static

The maximum value fromYear and toYear.

This value is used to represent the sentinel value "max" in the TZDB database files. Must be less than ZoneEra::kMaxUntilYear which is used to represent the entry "-" in the UNTIL column of the TZDB files.

Definition at line 31 of file ZoneContext.h.

◆ kMinYear

const int16_t ace_time::internal::ZoneContext::kMinYear = -32767
static

The minimum value of fromYear and toYear.

This value is used for ZoneRule entries which are synthetically generated for certain time zones which do not naturally generate a transition for the database year interval specified by the ZoneContext. This value is guaranteed to be earlier than any explicit year in the TZDB database, which guarantees that all time zones have at least one transition.

Definition at line 41 of file ZoneContext.h.


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