Skip to content

Instantly share code, notes, and snippets.

@azuby
Created February 10, 2012 04:21
Show Gist options
  • Save azuby/1786583 to your computer and use it in GitHub Desktop.
Save azuby/1786583 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p290 :057 > 1.day.ago + 24.hours == Time.now.utc
=> false
ruby-1.9.2-p290 :058 > 1.day.ago + 24.hours == Time.now.utc
=> false
ruby-1.9.2-p290 :059 > 1.day.ago + 24.hours == Time.now.utc
=> false
ruby-1.9.2-p290 :060 > puts 1.day.ago + 24.hours, Time.now.utc
2012-02-10 04:21:24 UTC
2012-02-10 04:21:24 UTC
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment