Manually committed RTClock files, due to problems with PR https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/428
This commit is contained in:
parent
52c3c312f0
commit
6f1429175c
|
@ -111,7 +111,7 @@ void RTClock::breakTime(time_t timeInput, tm_t & tmm)
|
||||||
time /= 60; // now it is hours
|
time /= 60; // now it is hours
|
||||||
tmm.hour = time % 24;
|
tmm.hour = time % 24;
|
||||||
time /= 24; // now it is days
|
time /= 24; // now it is days
|
||||||
tmm.weekday = ((time + 4) % 7); // Monday is day 1 // + 1; // Sunday is day 1
|
tmm.weekday = ((time + 3) % 7); // Monday is day 1
|
||||||
|
|
||||||
year = 0;
|
year = 0;
|
||||||
days = 0;
|
days = 0;
|
||||||
|
|
|
@ -27,7 +27,7 @@ typedef struct tm_t {
|
||||||
uint8_t year; // years since 1970
|
uint8_t year; // years since 1970
|
||||||
uint8_t month; // month of a year - [ 1 to 12 ]
|
uint8_t month; // month of a year - [ 1 to 12 ]
|
||||||
uint8_t day; // day of a month - [ 1 to 31 ]
|
uint8_t day; // day of a month - [ 1 to 31 ]
|
||||||
uint8_t weekday; // day of a week (first day is Sunday) - [ 0 to 6 ]
|
uint8_t weekday; // day of a week (first day is Monday) - [ 0 to 6 ]
|
||||||
uint8_t pm; // AM: 0, PM: 1
|
uint8_t pm; // AM: 0, PM: 1
|
||||||
uint8_t hour; // hour of a day - [ 0 to 23 ]
|
uint8_t hour; // hour of a day - [ 0 to 23 ]
|
||||||
uint8_t minute; // minute of an hour - [ 0 to 59 ]
|
uint8_t minute; // minute of an hour - [ 0 to 59 ]
|
||||||
|
|
Loading…
Reference in New Issue