Skip to content

Instantly share code, notes, and snippets.

@DCarper
Created January 31, 2011 03:17
Show Gist options
  • Select an option

  • Save DCarper/803582 to your computer and use it in GitHub Desktop.

Select an option

Save DCarper/803582 to your computer and use it in GitHub Desktop.
(rdb:1) date1
Sun, 30 Jan 2011 21:15:27 CST -06:00
(rdb:1) date2
Sun, 30 Jan 2011 21:15:27 CST -06:00
(rdb:1) date1.class
ActiveSupport::TimeWithZone
(rdb:1) date2.class
ActiveSupport::TimeWithZone
(rdb:1) date1 == date2
false
(rdb:1) date1 - date2
-0.381787061691284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment