Skip to content

Instantly share code, notes, and snippets.

@andyt
Created March 21, 2012 13:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyt/2146950 to your computer and use it in GitHub Desktop.
Save andyt/2146950 to your computer and use it in GitHub Desktop.
Ha ha ha - just found this in some code one of our devs wrote.
DateTime.parse(ActiveRecord::Base.connection.execute("SELECT NOW();").fetch_row[0]).hour < 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment