Skip to content

Instantly share code, notes, and snippets.

@esetomo
Created July 18, 2013 11:49
Show Gist options
  • Save esetomo/6028705 to your computer and use it in GitHub Desktop.
Save esetomo/6028705 to your computer and use it in GitHub Desktop.
ActiveSupportさんやっぱりよく分からない
1.9.3p429 :027 > 1.month.from_now
=> Sun, 18 Aug 2013 11:46:34 UTC +00:00
1.9.3p429 :028 > (60 * 60 * 24 * 30).from_now
=> Sat, 17 Aug 2013 11:46:47 UTC +00:00
1.9.3p429 :029 > 1.month == (60 * 60 * 24 * 30)
=> true
1.9.3p429 :030 > 1.month.equal?(60 * 60 * 24 * 30)
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment