Module: Clock::Parse
Instance Method Summary collapse
Instance Method Details
#parse(str, system_time: nil) ⇒ Object
94 95 96 97 98 |
# File 'lib/clock/clock.rb', line 94 def parse(str, system_time: nil) system_time ||= self.system_time time = Time.parse str canonize(time, system_time) end |