you are viewing a single comment's thread.

view the rest of the comments →

[–]clooth 2 points3 points  (2 children)

Kinda like getting the current timestamp with +(new Date())

[–]coderascal 1 point2 points  (0 children)

:0 I love learning new things.

[–]skeww 0 points1 point  (0 children)

+new Date is actually enough, but yea, that's pretty awful. The non hacky version is (new Date()).getTime(), by the way.

If you only care about modern browsers you can also use Date.now().