You're correct that new.Date is an object, so the duplications in the object has been removed.
I found one bug in my code in that months are numbered 0 to 11.
The format uses arrays. The 'm' produces the three letter month name.
I tried using local modules today in a project directory, great so far.
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.
http://forum.espruino.com/conversations/286424/#comment12967777
Attached is an upgraded module timeobj.js and a project file testTimeObj.js.
You're correct that new.Date is an object, so the duplications in the object has been removed.
I found one bug in my code in that months are numbered 0 to 11.
The format uses arrays. The 'm' produces the three letter month name.
I tried using local modules today in a project directory, great so far.
Thanks for the comments and tips.
2 Attachments