Skip to content

Instantly share code, notes, and snippets.

@phedders
Created September 18, 2009 16:57
Show Gist options
  • Save phedders/189169 to your computer and use it in GitHub Desktop.
Save phedders/189169 to your computer and use it in GitHub Desktop.
#ruby find out midnight without activesupport
Time::utc(*Time.now.to_a.slice(3..10).insert(0,0,0,0))
# of course can replace Time.now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment