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

Method setTimeZone

Sming/Core/SystemClock.h:91–94  ·  view source on GitHub ↗

@brief Set the local time zone offset in hours * @param localTimezoneOffset Offset from UTC of local time zone in hours * @retval bool true on success, false if value out of range * @note Values for local standard time may exceed +/- 12 * For example, Pacific/Kiritimati has a 14-hour offset (in 2024). */

Source from the content-addressed store, hash-verified

89 * For example, Pacific/Kiritimati has a 14-hour offset (in 2024).
90 */
91 void setTimeZone(float localTimezoneOffset)
92 {
93 setTimeZoneOffset(localTimezoneOffset * SECS_PER_HOUR);
94 }
95
96 /** @brief Set current time zone information
97 * @param zoneInfo Contains offset plus string formatting information

Callers 2

checkTimeZoneOffsetFunction · 0.80
initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected