Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Public Member Functions | |
DateTime | now (TimeZone timeType=eTZ_Local) |
Get the current date and time. More... | |
void | setTime (time_t time, TimeZone timeType=eTZ_Local) |
Set the system clock's time. More... | |
String | getSystemTimeString (TimeZone timeType=eTZ_Local) |
Get current time as a string. More... | |
bool | setTimeZone (double localTimezoneOffset) |
Sets the local time zone offset. More... | |
Get current time as a string.
timeType | Time zone to present time as, i.e. return local or UTC time |
String | Current time in format: dd.mm.yy hh:mm:ss |
Get the current date and time.
timeType | Time zone to use (UTC / local) |
DateTime | Current date and time |
Set the system clock's time.
time | Unix time to set clock to (quantity of seconds since 00:00:00 1970-01-01) |
timeType | Time zone of Unix time, i.e. is time provided as local or UTC? |
bool SystemClockClass::setTimeZone | ( | double | localTimezoneOffset | ) |
Sets the local time zone offset.
localTimezoneOffset | Offset from UTC of local time zone in hours (-12..+12) |
bool | True on success |