you can try distance_of_time_in_words_to_now...
Read this
http://apidock.com/rails/ActionView/Helpers/DateHelper/distance_of_time_in_words_to_now

Nitin.

On Wed, Mar 10, 2010 at 3:47 PM, Newb Newb <[email protected]> wrote:

> Hello all,
>
> I want to compare the below given times.
>
> from_time = '08:00 am'
>
> to_time =  '04:30 pm'
>
> @logtime = "ci.time >= '#{from_time}' and ci.time <= '#...@to_time}'"
>
> but its not working fine...giving me the wrong results...
> Any other methods or how can i try with..
> pls help me out
>
> Thank you
> --
> Posted via http://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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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