Hello again,
I experienced that the Date class has no setters like:
Date.setHours(Number); Date.setMinutes(Number); Date.setSeconds(Number); ...
How can I create a new Date() object for example for today, but time of day 12:00 for example?
In regular JavaScript I write something like this:
var d = new Date(); d.setHours(12); d.setMinutes(0); d.setSeconds(0);
In Espruino this doesn't work :(
Best,
Tobias
@net-tobi 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.
Hello again,
I experienced that the Date class has no setters like:
How can I create a new Date() object for example for today, but time of day 12:00 for example?
In regular JavaScript I write something like this:
In Espruino this doesn't work :(
Best,
Tobias