Skip to content

Instantly share code, notes, and snippets.

@mikker
Created December 29, 2008 21:45
Show Gist options
  • Save mikker/41402 to your computer and use it in GitHub Desktop.
Save mikker/41402 to your computer and use it in GitHub Desktop.
# Most recent midnight in Ruby
midnight = ((Time.now.hour*60+Time.now.min)*60+Time.now.sec).seconds.ago
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment