Skip to content

Instantly share code, notes, and snippets.

@ohammersmith
Created December 9, 2008 19:07
Show Gist options
  • Save ohammersmith/34038 to your computer and use it in GitHub Desktop.
Save ohammersmith/34038 to your computer and use it in GitHub Desktop.
Get time in a way the database likes
Time.now.utc.to_s(:db)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment