Files
Flipdot-display/src/esp32/logic/local_time.h
T

15 lines
380 B
C
Raw Normal View History

#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)
};