Skip to content

Instantly share code, notes, and snippets.

@martinos
Created May 20, 2013 23:45
Show Gist options
  • Save martinos/5616505 to your computer and use it in GitHub Desktop.
Save martinos/5616505 to your computer and use it in GitHub Desktop.
date_range = Time.new(2011,5,11)..Time.new(2011,5,12)
Dir['**/*'].select { |f| File.file?(f) && date_range.cover?(File.ctime(f)) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment