On 26 September 2015 at 19:29, Jim Ruther Nill <[email protected]> wrote: > hmm maybe relevant > http://www.benknowscode.com/2014/02/ruby-date-time-range-intervals.html
Thanks, if I interpret that correctly it is saying that what I am trying to do just doesn't work, that it is a limitation of ruby. It is not a big problem as there are other simple ways of achieving the desired result. Colin > > On Sun, Sep 27, 2015 at 12:03 AM, Colin Law <[email protected]> wrote: >> >> Can someone explain this for me please? >> >> range = (DateTime.now..DateTime.now+1.hour).step(10.minute) >> => #<Enumerator: Sat, 26 Sep 2015 16:41:18 +0100..Sat, 26 Sep 2015 >> 17:41:18 +0100:step(600 seconds)> >> 2.1.3 :009 > range.to_a >> => [Sat, 26 Sep 2015 16:41:18 +0100] >> >> Not what I expected at all. >> >> Colin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsXVDpNezdm0V3EJKh_XRhD6hdD1Bb%3DAJ4k2a2SoEqfjA%40mail.gmail.com. >> For more options, visit https://groups.google.com/d/optout. > > > > > -- > ------------------------------------------------------------- > visit my blog at http://www.jimruthernill.com > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAJ8y7VdPOMAd13Ct83sKaqkFmw_xbsU-9CMNX67KsvZSJtZsdA%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuaxwQ-rLs22vnWaTV3hNrBVX0Z0SVQFjNFdDHqHH4rGg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

