|
ESPHome 2026.10.0-dev
|
Go to the source code of this file.
Namespaces | |
| namespace | esphome |
| 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))) | |
| esphome::time::internal::while (out_month<=12) | |
| esphome::time::internal::for (int m=1;m< month;m++) | |
| esphome::time::internal::switch (rule.type) | |
| esphome::time::if (dst_start< dst_end) | |
| void | esphome::time::format_designation (int32_t posix_offset, char *buf, size_t buf_size) |
| Format a POSIX offset as "+HHMM"/"-HHMM" into buf (must be >= 6 bytes). | |
| 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 304 of file posix_tz.cpp.
| struct tm * localtime_r | ( | const time_t * | timer, |
| struct tm * | result ) |
Definition at line 295 of file posix_tz.cpp.