On Aug 13, 6:46 pm, Ryan King <[email protected]>
wrote:
> As I go up in the array, i notice it's only incrementing by seconds, not
> by days. For example:
>
> irb(#<ReportsController:0x47b7524>):009:0> call_aves[30]
> => [Sat Aug 01 00:00:30 -0400 2009, 0]
>
> How do I get this to go up by the day, not the second?

Well if you use dates rather than times that happens for free (since +
1 for a date means + 1 day), if not then you just need to put some
time values in an array, incrementing by a day at a time ( + 1.days or
using advance for example)

Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to