Skip to content

Instantly share code, notes, and snippets.

@IceskYsl
Created May 2, 2011 15:45
Show Gist options
  • Save IceskYsl/951804 to your computer and use it in GitHub Desktop.
Save IceskYsl/951804 to your computer and use it in GitHub Desktop.
Date step
require "rubygems"
require "date"
start_d = Date.parse( '2010-01-01' )
end_d = Date.today - 1
start_d.step(end_d , step=1){|d|
puts d
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment