(rails3.2.12)
irb(main):021:0> Date.today.midnight => Thu, 21 Mar 2013 00:00:00 JST +09:00 irb(main):022:0> Date.today.end_of_day => Thu, 21 Mar 2013 23:59:59 JST +09:00 irb(main):023:0> Time.now.midnight => 2013-03-21 00:00:00 +0900 irb(main):024:0> Time.now.end_of_day => 2013-03-21 23:59:59 +0900