MCPcopy Create free account
hub / github.com/SmingHub/Sming / now

Method now

Sming/Core/SystemClock.cpp:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16SystemClockClass SystemClock;
17
18time_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
32bool SystemClockClass::setTime(time_t time, TimeZone timeType)
33{

Callers 15

jquery.jsFile · 0.45
SbFunction · 0.45
jquery.jsFile · 0.45
SbFunction · 0.45
jquery.jsFile · 0.45
SbFunction · 0.45
getNextSunriseSetFunction · 0.45
mainFunction · 0.45
executeMethod · 0.45
sendResponseHeadersMethod · 0.45
FtpDataFileListMethod · 0.45
genkeyFunction · 0.45

Calls 3

checkTimeZoneOffsetFunction · 0.85
getRtcSecondsMethod · 0.45
offsetSecsMethod · 0.45

Tested by 1

mainFunction · 0.36