Method: TimeRounder.rounded_time
- Defined in:
- lib/time_rounder.rb
.rounded_time(time, schedule = 15) ⇒ Object
Takes a DateTime/Time object and returns the time to the nearest quarter hour
20 21 22 |
# File 'lib/time_rounder.rb', line 20 def self.rounded_time(time, schedule = 15) TimeRounder::RoundedTime.new(time, schedule).rounded_time end |