> require("http").get("http://drazzy.com/time.shtml", function(res) { console.log({GMT:res.headers.Date}); var contents = ""; res.on('data', function(data) { contents += data; }); res.on('close', function() { console.log(contents); setTime(contents); }); }).on('error', function(e) { : console.log("ERROR", e); : }); =undefined { "GMT": "Wed, 13 Jun 2018 11:22:54 GMT" } Wed Jun 13 11:22:54 2018
@Wilberforce 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.