Model.find(:all, :conditions => {:time_field => (from..to)})

On Sep 30, 7:02 am, Newb Newb <[email protected]>
wrote:
> Colin Law wrote:
> > 2009/9/30 Brijesh Shah <[email protected]>:
>
> >> Hi Colin
>
> >> Conversion is required because passing value is string not datetime  ...
>
> > Yes you are right, I was thinking datetime_select was being used to
> > read into a DateTime object.
>
> > Colin
>
> hi all..
> i want to ask one more help...
>
> d0_time = d0.strftime("%I:%M %p")
> d1_time = d1.strftime("%I:%M %p")
>
> 12:00 am
> 07:00 pm
> i get two times here.i ll take the above times as from and to.
> i have time as field into my table.it stores like 01:17:56 am.
>
> i want to fetch the records which is between the above two times ..
> how can i implement the query
>
> pls suggest me
> --
> 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