Hello everybody,

I'm looking for a way to create an array out of a range, but does the
counting as like it's a time object. So for instance:

(800..900).to_a (which represents: 08:00 - 09:00)
will generate an array something like this:

#=> [800,801,802,...... 899, 900]

Whereas I would like the output to be like this:

#=> [800,801,802,...... 859, 900]

Basically it should bump to the next major number (hour) after 59
instead of going all the way up to 99.

How should I go about doing this?

Thanks!

-- 
Posted via http://www.ruby-forum.com/.