What is the "double tilde" (~~) operator in JavaScript?
I'm seeing this in some code, and I have no idea what it does: var jdn = function(y, m, d) { var tmp = (m <= 2 ? -1 : 0); return ~~((1461 * (y + 4800 + tmp)) / 4) + ~~((367 * (m -...
https://stackoverflow.com/questions/5971645/what-is-the-double-tilde-operator-in-javascript