AceTime 3.0.0 Date and time classes for Arduino that support timezones from the TZ Database.

Public Attributes | List of all members
ace_time::extended::TransitionForDateTimeTemplate< D > Struct Template Reference

The result of the findTransitionForDateTime(const LocalDatetime& ldt) method which can return 0, 1, or 2 matching Transitions depending on whether the DateTime is an exact match, in the gap, or in the overlap. More...

`#include <Transition.h>`

## Public Attributes
const TransitionTemplate< D > * | prev
| The previous transition.
const TransitionTemplate< D > * | curr
| The matching transition, or null if not found or in gap.
uint8_t | num
| Number of matches: 0, 1, 2.

## Detailed Description

### template<typename D>
struct ace_time::extended::TransitionForDateTimeTemplate< D >

The result of the findTransitionForDateTime(const LocalDatetime& ldt) method which can return 0, 1, or 2 matching Transitions depending on whether the DateTime is an exact match, in the gap, or in the overlap.

There are 5 possibilities:

- num=0, prev==NULL, curr=curr: datetime is far past (should not happen)
- num=1, prev==prev, curr=prev: exact match to datetime
- num=2, prev==prev, curr=curr: datetime in overlap
- num=0, prev==prev, curr=curr: datetime in gap
- num=0, prev==prev, curr=NULL: datetime is far future (should not happen)

Definition at line 309 of file Transition.h.

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

- /home/brian/src/AceTimeSuite/libraries/AceTimeLib/src/ace_time/Transition.h