|
ESPHome 2026.3.0-dev
|
Go to the source code of this file.
Namespaces | |
| namespace | esphome |
| Providing packet encoding functions for exchanging data with a remote host. | |
| namespace | esphome::time |
| namespace | esphome::time::internal |
Functions | |
| void | esphome::time::set_global_tz (const ParsedTimezone &tz) |
| Set the global timezone used by epoch_to_local_tm() when called without a timezone. | |
| const ParsedTimezone & | esphome::time::get_global_tz () |
| Get the global timezone. | |
| bool | esphome::time::internal::is_leap_year (int year) |
| Check if a year is a leap year. | |
| int | esphome::time::internal::days_in_month (int year, int month) |
| Get the number of days in a month. | |
| int | esphome::time::internal::__attribute__ ((noinline)) day_of_week(int year |
| esphome::time::internal::return ((h+6) % 7) | |
| esphome::time::internal::if (remaining_secs< 0) | |
| esphome::time::internal::while (days >=(dim=days_in_month(year, month))) | |
| bool | esphome::time::internal::skip_tz_name (const char *&p) |
| Skip a timezone name (letters or <...> quoted format) | |
| esphome::time::internal::while (out_month<=12) | |
| bool | esphome::time::internal::parse_dst_rule (const char *&p, DSTRule &rule) |
| Parse a DST rule in format Mm.w.d[/time], Jn[/time], or n[/time]. | |
| esphome::time::internal::for (int m=1;m< month;m++) | |
| esphome::time::internal::switch (rule.type) | |
| esphome::time::if (dst_start< dst_end) | |
| bool | esphome::time::parse_posix_tz (const char *tz_string, ParsedTimezone &result) |
| Parse a POSIX TZ string into a ParsedTimezone struct. | |
| bool | esphome::time::epoch_to_local_tm (time_t utc_epoch, const ParsedTimezone &tz, struct tm *out_tm) |
| Convert a UTC epoch to local time using the parsed timezone. | |
| struct tm * | localtime_r (const time_t *timer, struct tm *result) |
| struct tm * | localtime (const time_t *timer) |
| struct tm * localtime | ( | const time_t * | timer | ) |
Definition at line 481 of file posix_tz.cpp.
| struct tm * localtime_r | ( | const time_t * | timer, |
| struct tm * | result ) |
Definition at line 472 of file posix_tz.cpp.