Skip to content

Instantly share code, notes, and snippets.

@elkelk
Created December 20, 2013 16:49
Show Gist options
  • Save elkelk/8057670 to your computer and use it in GitHub Desktop.
Save elkelk/8057670 to your computer and use it in GitHub Desktop.
Strip milliseconds from time in ruby.
5.days.ago.change(:usec => 0)
@untoldone
Copy link

This only works with ActiveSupport fyi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment