|
| 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)
|
| |
| int32_t | esphome::time::internal::__attribute__ ((noinline)) parse_offset(const char *&p) |
| |
| | 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.
|
| |
| 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) |
| |