| 16 | SystemClockClass SystemClock; |
| 17 | |
| 18 | time_t SystemClockClass::now(TimeZone timeType) const |
| 19 | { |
| 20 | uint32_t systemTime = RTC.getRtcSeconds(); |
| 21 | |
| 22 | if(timeType == eTZ_Local) { |
| 23 | if(checkTimeZoneOffset) { |
| 24 | checkTimeZoneOffset(systemTime); |
| 25 | } |
| 26 | systemTime += zoneInfo.offsetSecs(); |
| 27 | } |
| 28 | |
| 29 | return systemTime; |
| 30 | } |
| 31 | |
| 32 | bool SystemClockClass::setTime(time_t time, TimeZone timeType) |
| 33 | { |