Skip to content

Instantly share code, notes, and snippets.

@da3mon
Created July 11, 2011 23:41
Show Gist options
  • Save da3mon/1077063 to your computer and use it in GitHub Desktop.
Save da3mon/1077063 to your computer and use it in GitHub Desktop.
‽‽‽
ree:044 > 1800.seconds
=> 1800 seconds
ree:045 > 1800
=> 1800
ree:046 > 3 * 600.seconds
=> 1800
ree:047 > 1800.seconds.class
=> Fixnum
ree:048 > 1800.seconds.ago
=> Mon, 11 Jul 2011 23:07:01 UTC +00:00
ree:049 > (3 * 600.seconds).ago
=> Mon Jul 11 16:07:15 -0700 2011
ree:050 > (3 * 600.seconds).ago.utc
=> Mon Jul 11 23:07:54 UTC 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment