@gordon, I've been using the date constructor and splitting on spaces to format the hh:mm:ss part for a count down timer, and have discovered that if the the time is negative, you end up with a - sign instead of a leading 0.
I supply sample code if this makes it more clear....
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.
@gordon, I've been using the date constructor and splitting on spaces to format the hh:mm:ss part for a count down timer, and have discovered that if the the time is negative, you end up with a - sign instead of a leading 0.
I supply sample code if this makes it more clear....