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

Parsed POSIX timezone information (packed for 32-bit: 32 bytes) More...

#include <posix_tz.h>

Public Member Functions

bool has_dst () const
 Check if this timezone has DST rules.
 

Data Fields

int32_t std_offset_seconds
 Standard time offset from UTC in seconds (positive = west)
 
int32_t dst_offset_seconds
 DST offset from UTC in seconds.
 
DSTRule dst_start
 When DST starts.
 
DSTRule dst_end
 When DST ends.
 

Detailed Description

Parsed POSIX timezone information (packed for 32-bit: 32 bytes)

Definition at line 29 of file posix_tz.h.

Member Function Documentation

◆ has_dst()

bool esphome::time::ParsedTimezone::has_dst ( ) const
inline

Check if this timezone has DST rules.

Definition at line 36 of file posix_tz.h.

Field Documentation

◆ dst_end

DSTRule esphome::time::ParsedTimezone::dst_end

When DST ends.

Definition at line 33 of file posix_tz.h.

◆ dst_offset_seconds

int32_t esphome::time::ParsedTimezone::dst_offset_seconds

DST offset from UTC in seconds.

Definition at line 31 of file posix_tz.h.

◆ dst_start

DSTRule esphome::time::ParsedTimezone::dst_start

When DST starts.

Definition at line 32 of file posix_tz.h.

◆ std_offset_seconds

int32_t esphome::time::ParsedTimezone::std_offset_seconds

Standard time offset from UTC in seconds (positive = west)

Definition at line 30 of file posix_tz.h.


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