Sha256: dd7ad83556d97d45d929be63d66b75645fc3e1bed39a74ddb9ab8e9a936665e7
Contents?: true
Size: 220 Bytes
Versions: 1
Compression:
Stored size: 220 Bytes
Contents
module TimeTravel module StringExtensions def parse_to_time if Time.respond_to?(:zone) && Time.zone Time.zone.parse(self).utc else Time.parse(self) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
time_travel-0.1.0 | lib/time_travel/string_extensions.rb |