This project is archived and is in readonly mode.

#2114 open
Ryan Neufeld

ActiveSupport lacks beginning_of_hour

Reported by Ryan Neufeld | March 3rd, 2009 @ 03:49 AM | in 3.x

Needed something to give me the beginning of the hour but it appears ActiveSupport lacks that. Code below

def beginning_of_hour
  change(:min => 0, :sec => 0, :usec => 0)

ahh, just realized this is more of a feature request :(, sorry.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>