Public Access
- Show as number (multiplier, decimals, auto unit W -> kW -> MW, without minus sign), duration (seconds/minutes/hours as 2h 21m, 2:21:00, 2:21 or smart), time (HA timestamps in local time, with weekday or date, or relative: over 34 min / 12 min geleden) or own texts per state. - Page format 3; version 2 pages are converted. Version 2.7.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
380 B
C
16 lines
380 B
C
#pragma once
|
|
|
|
// The local date and time, as far as the display needs it (from struct tm). Pure logic.
|
|
struct LocalTime
|
|
{
|
|
int year = 2000;
|
|
int month = 1; // 1-12
|
|
int day = 1; // 1-31
|
|
int weekday = 6; // 0 = Sunday
|
|
int hour = 0;
|
|
int minute = 0;
|
|
int second = 0;
|
|
int millisecond = 0;
|
|
int utc_offset = 0; // minutes: local time - UTC (for Home Assistant timestamps)
|
|
};
|