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

Method getSystemTimeString

Sming/Core/SystemClock.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45String SystemClockClass::getSystemTimeString(TimeZone timeType) const
46{
47 time_t systemTime = now(eTZ_UTC);
48 if(checkTimeZoneOffset) {
49 checkTimeZoneOffset(systemTime);
50 }
51
52 if(timeType == eTZ_UTC) {
53 DateTime dt(systemTime);
54 return dt.toFullDateTimeString();
55 }
56
57 ZonedTime time(systemTime, zoneInfo);
58 return time.toString();
59}

Callers 6

onPrintSystemTimeFunction · 0.80
onNtpReceiveFunction · 0.80
ntpResultMethod · 0.80
onPrintSystemTimeFunction · 0.80
onNtpReceiveFunction · 0.80
processStatusCommandMethod · 0.80

Calls 3

checkTimeZoneOffsetFunction · 0.85
toFullDateTimeStringMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected