I have some Ruby code which takes dates on the command line in the format:
-d 20080101,20080201..20080229,20080301
I want to run for all da
assuming you want the range to iterate properly through months etc, try
require 'date' ends = '20080201..20080229'.split('..').map{|d| Date.parse(d)} (ends[0]..ends[1]).each do |d| p d.day end