Class: WB::TimeUtils

Inherits:
Object
  • Object
show all
Defined in:
lib/wb/day.rb

Class Method Summary collapse

Class Method Details

.get_beginning_of(hour, within:) ⇒ Object



17
18
19
# 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:) ⇒ Object



21
22
23
# File 'lib/wb/day.rb', line 21

def self.get_end_of(hour, within:)
  Time.parse("#{within} #{hour}:59:59")
end