Skip to content

Instantly share code, notes, and snippets.

@jookyboi
Created November 22, 2013 15:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jookyboi/7602184 to your computer and use it in GitHub Desktop.
Save jookyboi/7602184 to your computer and use it in GitHub Desktop.
Manipulating Time in Rails
Time.now.advance(:days => 1, :hours => -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment