You are reading a single comment by @d3nd3-o0 and its replies. Click here to read the full conversation.
  • Dozenal time is now stable, accurate to within about 1 second. A commit/pull request has been registered.

    Overnight, when the watch has no use but of course still runs, sometimes it wakes up to being a bit behind. But soon it fixes itself, via GPS time.

  • x =864*dt.getHours()+14.4*dt.getMinutes()+0.24*dt.getSeconds()+0.00024*dt.getMilliseconds();
    
    let wait = 4167*(1-(x%1));
    
    

    This is getting the fractional part of x. So if x is 456.123
    The statement becomes.

    let wait = 4167*(1 - 0.123);
    

    So its working out a value for the next timer call.

About

Avatar for d3nd3-o0 @d3nd3-o0 started