Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Public Member Functions | |
time_t | now (TimeZone timeType=eTZ_Local) |
Get the current date and time. More... | |
bool | 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 | setTimeZoneOffset (int seconds) |
Sets the local time zone offset. More... | |
bool | setTimeZone (float localTimezoneOffset) |
int | getTimeZoneOffset () |
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::setTimeZoneOffset | ( | int | seconds | ) |
Sets the local time zone offset.
localTimezoneOffset | Offset from UTC of local time zone in hours (-12..+12) |
bool | True on success |