Skip to content

Instantly share code, notes, and snippets.

@kumavis
Last active December 14, 2015 19:39
Show Gist options
  • Save kumavis/5138519 to your computer and use it in GitHub Desktop.
Save kumavis/5138519 to your computer and use it in GitHub Desktop.
Time in javascript

“Why, sometimes I've believed as many as six impossible things before breakfast.”

-- Lewis Carroll, Alice in Wonderland

new Date() === new Date()
//=> false
new Date() == new Date()
//=> false
new Date() > new Date()
//=> false
new Date() < new Date()
//=> false
new Date() >= new Date() && new Date() <= new Date()
//=> true
@kumavis
Copy link
Author

kumavis commented Nov 9, 2013

more weird js behavior http://zero.milosz.ca/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment