Class: Timing::NaturalTimeLanguage::Timestamp
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Timing::NaturalTimeLanguage::Timestamp
- Defined in:
- lib/timing/natural_time_language_interpreters.rb
Instance Method Summary collapse
Instance Method Details
#evaluate(zone_offset) ⇒ Object
136 137 138 139 |
# File 'lib/timing/natural_time_language_interpreters.rb', line 136 def evaluate(zone_offset) now = TimeInZone.now zone_offset TimeInZone.parse "#{text_value}#{now.zone_offset}" end |