-
Notifications
You must be signed in to change notification settings - Fork 21.9k
Closed
Description
I am not sure this is a bug or this is my mistake,
My rails version is 3.0.05 and ruby version is ruby 1.9.2p0
When i want to iterate over time like that
(Time.now.to_s(:db)..(Time.now + 1.hour).to_s(:db)).each {|t| puts t }
It gives me like that
...
2011-06-06 12:99:60
2011-06-06 12:99:61
2011-06-06 12:99:62
2011-06-06 12:99:63
2011-06-06 12:99:64
2011-06-06 12:99:65
2011-06-06 12:99:66
2011-06-06 12:99:67
2011-06-06 12:99:68
2011-06-06 12:99:69
2011-06-06 12:99:70
2011-06-06 12:99:71
2011-06-06 12:99:72
2011-06-06 12:99:73
2011-06-06 12:99:74
2011-06-06 12:99:75
2011-06-06 12:99:76
2011-06-06 12:99:77
2011-06-06 12:99:78
2011-06-06 12:99:79
2011-06-06 12:99:80
...
Regards,
Murat USTUNTAS
Metadata
Metadata
Assignees
Labels
No labels