|
Hegel 0.18.3
Property-based testing for C++
|
A wall-clock time in a time zone, resolved to an instant. More...
#include <temporal_types.h>
Public Attributes | |
| TimeZone | zone |
| The zone the wall time is read in. | |
| DateTime | civil |
| TransitionKind | kind = TransitionKind::Unique |
| How the wall time maps to instants. | |
| UtcOffset | offset_before |
| The offset before the transition. | |
| UtcOffset | offset_after |
| The offset after the transition. | |
| bool | fold = false |
| Which repeat of a fold is meant. | |
| UtcOffset | offset |
| The offset in force at instant. | |
| Instant | instant |
| The resolved instant. | |
A wall-clock time in a time zone, resolved to an instant.
Carries the TransitionKind of the wall time, the offsets in force before and after the transition it falls on (both the resolved offset for a unique time), which repeat of a fold it means (fold, the later when set), the resolved offset (unknown in UNKNOWN_ZONE and in a zone only the caller's database knows) and the instant: the unique instant, the one fold picks, or for a gap the wall time read with offset_before. Prints as 2024-03-10T01:30:00-05:00[America/New_York], with [gap] (2024-03-10T02:30:00-04:00[America/New_York][gap]) or [fold=0] / [fold=1] appended when relevant.
| DateTime hegel::generators::temporal::ZonedDateTime::civil |
The wall-clock time.