Date class setters #4961
Replies: 1 comment
-
Posted at 2015-03-14 by net-tobi A workaround could be:
Best Tobias Posted at 2015-03-16 by @gfwilliams Hi - yes, at the moment that's what you'd have to do I'm afraid. I've filed a bug for this though - so at some point I will add the setters. It'd make life a lot easier! Posted at 2015-03-16 by net-tobi Great, thank you Gordon! Posted at 2015-03-18 by bob_dvb I've been playing with the date functions because I am trying to build an IP connected clock but I am having a nightmare. Probably the fact that I don't normally code but the references don't seem to work very well in practical applications. Once I've figured things out I should share what I've found but I don't have much time to work on it. Posted at 2015-03-18 by @allObjects
What do you mean by that? Posted at 2015-09-10 by Charly Espruino - Pico user: Posted at 2015-09-11 by @gfwilliams Looks like I've just fixed this so it'll be in 1v81 of Espruino. Looks like JavaScript only really checks the first 3 characters, so for instance this should also work: Posted at 2015-09-11 by Charly Thank you for the fast response :-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-03-14 by net-tobi
Hello again,
I experienced that the Date class has no setters like:
How can I create a new Date() object for example for today, but time of day 12:00 for example?
In regular JavaScript I write something like this:
In Espruino this doesn't work :(
Best,
Tobias
Beta Was this translation helpful? Give feedback.
All reactions