You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Thanks - I'll look into this... setTime was added more for the F4 devices where there's a full calendar internally though.

    On the F103 the suggested way of keeping time is this: http://www.espruino.com/clock

      var Clock = require("clock").Clock;
      var clk=new Clock("Jun 23, 2014 12:18:02");
    
      // every time the button is pressed, print the current time..
      function doStuff() {
        var d=clk.getDate(); 
        print(d.toString()); 
      }
    

    That doesn't involve using setTime, so should still work fine.

About

Avatar for Gordon @Gordon started