Skip to content

Instantly share code, notes, and snippets.

@mrjjwright
Created December 19, 2008 18: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 mrjjwright/38075 to your computer and use it in GitHub Desktop.
Save mrjjwright/38075 to your computer and use it in GitHub Desktop.
def self.today
day = Time.zone.parse(DateTime.now.to_date.to_s).utc
return Entry.find(:all, :conditions => ['created_at >= ? and created_at < ?', day, day + 86400])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment