class WB::TimeUtils
Public Class Methods
get_beginning_of(hour, within:)
click to toggle source
# File lib/wb/day.rb, line 17 def self.get_beginning_of(hour, within:) Time.parse("#{within} #{hour}:00:00") end
get_end_of(hour, within:)
click to toggle source
# File lib/wb/day.rb, line 21 def self.get_end_of(hour, within:) Time.parse("#{within} #{hour}:59:59") end