Module: TimeTravel::StringExtensions
- Defined in:
- lib/time_travel/string_extensions.rb
Instance Method Summary collapse
Instance Method Details
#parse_to_time ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/time_travel/string_extensions.rb', line 4 def parse_to_time if Time.respond_to?(:zone) && Time.zone Time.zone.parse(self).utc else Time.parse(self) end end |