ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
esphome::time::DSTRule Struct Reference

Rule for DST transition (packed for 32-bit: 12 bytes) More...

#include <posix_tz.h>

Data Fields

int32_t time_seconds
 Seconds after midnight (default 7200 = 2:00 AM)
 
uint16_t day
 Day of year (for JULIAN_NO_LEAP and DAY_OF_YEAR)
 
DSTRuleType type
 Type of rule.
 
uint8_t month
 Month 1-12 (for MONTH_WEEK_DAY)
 
uint8_t week
 Week 1-5, 5 = last (for MONTH_WEEK_DAY)
 
uint8_t day_of_week
 Day 0-6, 0 = Sunday (for MONTH_WEEK_DAY)
 

Detailed Description

Rule for DST transition (packed for 32-bit: 12 bytes)

Definition at line 19 of file posix_tz.h.

Field Documentation

◆ day

uint16_t esphome::time::DSTRule::day

Day of year (for JULIAN_NO_LEAP and DAY_OF_YEAR)

Definition at line 21 of file posix_tz.h.

◆ day_of_week

uint8_t esphome::time::DSTRule::day_of_week

Day 0-6, 0 = Sunday (for MONTH_WEEK_DAY)

Definition at line 25 of file posix_tz.h.

◆ month

uint8_t esphome::time::DSTRule::month

Month 1-12 (for MONTH_WEEK_DAY)

Definition at line 23 of file posix_tz.h.

◆ time_seconds

int32_t esphome::time::DSTRule::time_seconds

Seconds after midnight (default 7200 = 2:00 AM)

Definition at line 20 of file posix_tz.h.

◆ type

DSTRuleType esphome::time::DSTRule::type

Type of rule.

Definition at line 22 of file posix_tz.h.

◆ week

uint8_t esphome::time::DSTRule::week

Week 1-5, 5 = last (for MONTH_WEEK_DAY)

Definition at line 24 of file posix_tz.h.


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