The day and time of day a yearly rule changes the clocks on, as a POSIX TZ string names them (RFC 9636 §3.3.1).
More...
#include <zone_source.h>
The day and time of day a yearly rule changes the clocks on, as a POSIX TZ string names them (RFC 9636 §3.3.1).
Build one with julian(), zero_based() or month_week_day().
◆ Kind
How the day is named.
| Enumerator |
|---|
| Julian | Jn: day day of the year in [1, 365], never counting February 29.
|
| ZeroBased | n: day day of the year in [0, 365], counting February
|
| MonthWeekDay | Mm.w.d: weekday of week week of month.
|
◆ julian()
| RuleDate hegel::generators::temporal::RuleDate::julian |
( |
uint16_t | day, |
|
|
int32_t | time = 7200 ) |
|
inlinestatic |
Day day in [1, 365] of every year, February 29 not counted, so that julian(60) is always March 1.
- Parameters
-
| day | The day of the year. |
| time | Seconds after local midnight. Default: 02:00. |
- Returns
- The rule date.
◆ month_week_day()
| RuleDate hegel::generators::temporal::RuleDate::month_week_day |
( |
Month | month, |
|
|
uint8_t | week, |
|
|
Weekday | weekday, |
|
|
int32_t | time = 7200 ) |
|
inlinestatic |
The week-th weekday of month, week 5 meaning the last, so that month_week_day(Month::March, 2, Weekday::Sunday) is the second Sunday of March.
- Parameters
-
| month | The month. |
| week | The week in [1, 5]. |
| weekday | The weekday. |
| time | Seconds after local midnight. Default: 02:00. |
- Returns
- The rule date.
◆ zero_based()
| RuleDate hegel::generators::temporal::RuleDate::zero_based |
( |
uint16_t | day, |
|
|
int32_t | time = 7200 ) |
|
inlinestatic |
Day day in [0, 365] of every year, February 29 counted.
- Parameters
-
| day | The zero-based day of the year. |
| time | Seconds after local midnight. Default: 02:00. |
- Returns
- The rule date.
◆ time
| int32_t hegel::generators::temporal::RuleDate::time = 7200 |
Seconds after local midnight of the day, within ±167 hours, in the offset in force before the change.
The documentation for this struct was generated from the following file: