and more more, as you are running on ESP8266
http://www.espruino.com/Reference#l_Wifi_setSNTP
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
and more more, as you are running on ESP8266
http://www.espruino.com/Reference#l_Wifi_setSNTP