We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87ad87 commit 30f8527Copy full SHA for 30f8527
STM32F1/libraries/RTClock/src/RTClock.h
@@ -72,6 +72,8 @@ 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
76
+
77
void createAlarm(voidFuncPtr function, time_t alarm_time_t);
78
void createAlarm(voidFuncPtr function, struct tm_t & alarm_tm);
79
0 commit comments