the Date object #725
Replies: 7 comments
-
Posted at 2017-06-09 by @gfwilliams Thanks - I think on normal Espruino boards it could be added just fine without too many issues with memory. There's actually an issue open for this here: espruino/Espruino#504 I'll see what I can do - which board are you using? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-09 by ancienthero Im using espruino Pico. I'm glad there is an open issue for that Thanks! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-09 by @gfwilliams Ok, I just added the setters. If you get one of the travis builds from here: https://www.espruino.com/binaries/travis/master/ Then you should be able to use them - let me know if they work ok. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-09 by ancienthero I've used this one https://www.espruino.com/binaries/travis/master/espruino_1v92.80_pico_1r3.bin works like a charm!
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-09 by @gfwilliams No problem! If you go for an even more recent build, you'll find that there's an |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-20 by ancienthero Yup by the way, the new Date class with setters is amazing! it simplified my project a lot |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-20 by @gfwilliams Great! I don't think you'll gain much by updating at the moment, but you can always check: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-06-08 by ancienthero
the js Date object is marvelous
https://www.w3schools.com/jsref/jsref_obj_date.asp
but it's espruino implementation is very limited so far, to be specific, we can only read from the Date object once it has been created.
Im working on a time switch, I've been using date class all around, finding out that set-methods are not implemented made me (almost :P ) depressed
Extending espruino's Date class would be extremely beneficial:
Let me know what do you think of it!
Beta Was this translation helpful? Give feedback.
All reactions