Skip to content

Instantly share code, notes, and snippets.

@kakutani
Created October 18, 2008 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kakutani/17683 to your computer and use it in GitHub Desktop.
Save kakutani/17683 to your computer and use it in GitHub Desktop.
require 'date'
a = Date.new(2008,10,2)
b = Date.new(2008,10,2)
a == b # true
a.eql? # true
a.equal? b # false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment