You are reading a single comment by @net-tobi and its replies. Click here to read the full conversation.
  • 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

About

Avatar for net-tobi @net-tobi started