Range based on Time : Date Range « Range « Ruby






Range based on Time



(Time.at(100)..Time.at(102)).each { |x| puts x }

 

Related examples in the same category

1.Iterating Over Dates
2.Range based on DateTime
3.DateTime Range