We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30f8527 commit 6be069cCopy full SHA for 6be069c
STM32F1/libraries/RTClock/src/RTClock.h
@@ -72,7 +72,7 @@ class RTClock {
72
uint8_t second(time_t t) { breakTime(t, tmm); return tmm.second; }
73
uint8_t isPM(time_t t) { return (hour(t)>=12); }
74
75
- time_t TimeZone(time_t t, uint8_t TZ) { return ( t - (TZ * SECS_PER_HOUR)); } // usage: localtime = TimeZone(UnixTime, 8); // Beijing timezone = 8
+ time_t TimeZone(time_t t, int TZ) { return ( t - (TZ * SECS_PER_HOUR)); } // usage: localtime = TimeZone(UnixTime, 8); // Beijing timezone = 8
76
77
void createAlarm(voidFuncPtr function, time_t alarm_time_t);
78
void createAlarm(voidFuncPtr function, struct tm_t & alarm_tm);
0 commit comments