I normally defend JS to a fault but I draw the line here:
getDate: 1-31
getMonth: 0-11

-
-
@briankardell@KingstonTime@Lady_Ada_King Other Java influences: original String.prototype methods (substring wacky swap misordered args). -
@briankardell@KingstonTime@Lady_Ada_King The Math.* methods. The parseInt function (with its optional second radix parameter). IEEE744 NaN -
@briankardell@KingstonTime@Lady_Ada_King Typo: IEEE754 of course. Not Java's fault.
End of conversation
New conversation -
-
-
.
@briankardell@KingstonTime@Lady_Ada_King I should set up the http://java.util.Date => JS Date answer-bot. See https://twitter.com/BrendanEich/status/619406415661297665 … &c -
@BrendanEich@briankardell@KingstonTime@Lady_Ada_King Out of curiosity, what other bots are necessary? typeof null? -
@fpoling@briankardell@KingstonTime@Lady_Ada_King that and IEEE double quirks, but Date is most common. -
@BrendanEich@fpoling@briankardell@Lady_Ada_King it doesn't stop us adding something like momentjs as native though -
@KingstonTime@BrendanEich@fpoling@briankardell I think these days nothing stops us from just including moment.js with our scripts. -
@Lady_Ada_King@BrendanEich@fpoling@briankardell certainly. Would be nice to worry less about basics though especially for mobile.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.