I need to translate the following postgreSQL query into an activerecord ruby query.
select *
from my_table
where (my_time between '2010-12-27 00:00:00' and '2011-01-28 00:00:00')
and (my_time::TIME)::VARCHAR like '12:00:00.%';
This pulls out the 12:00:00.% piece of data for each day. I can do time range part, but don't know how to translate the second half of the query.
Thanks