Skip to content

Instantly share code, notes, and snippets.

@phedders
Created September 18, 2009 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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