New-Bee Espruino Clock Module question #5735
Replies: 1 comment
-
Posted at 2014-08-02 by @gfwilliams Hi, Yes, that's intentional. Normal Javascript has a date class that we implement, and it works just like that. It's strange I know - but it would be worse if we behaved totally different to normal javascript. Posted at 2017-03-24 by Artiom Is this module available for Puck.js ? I tried this code and it says module "clock" not found. Posted at 2017-03-27 by @gfwilliams Did you upload using the right-hand side of the IDE? The However, you may find that the You can turn on |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-08-02 by user7114
From above ...
var clk=new Clock(2014,4,15,23,45,0,0); // Initialise with specific date
print(d1.toString()); // prints "Thu May 15 2014 23:45:05"
It does what it says BUT the number "4" for the month is April and 5 should be for May.
Looks like someone started to use, for the months, 0-11 and not the normal 1-12?
Are you going to keep the months index this way?
Windows 8.1 64 Bit
Chrome 35.0.1916.153 m (no beta)
Espruino 1v69
Web-IDE v 45
Board: Espruino v 1.3
Beta Was this translation helpful? Give feedback.
All reactions