Module: InputGrammar::AmPmTime1
- Defined in:
- lib/worked/inputgrammar.rb
Instance Method Summary collapse
Instance Method Details
#to_24h ⇒ Object
241 242 243 244 245 246 247 248 |
# File 'lib/worked/inputgrammar.rb', line 241 def to_24h if methods.include?("am_pm") && am_pm.text_value =~ /pm/ return time_in_digits.total + 12.hours end time_in_digits.total end |