Module: Clock::Parse
Instance Method Summary collapse
Instance Method Details
#parse(str, system_time: nil) ⇒ Object
99 100 101 102 103 |
# File 'lib/clock/clock.rb', line 99 def parse(str, system_time: nil) system_time ||= self.system_time time = Time.parse str canonize(time, system_time) end |