Sha256: 3205b8b7401d77f0e7e4519274e197b5ca0b8ff48081673d4f10d86ea689d0eb
Contents?: true
Size: 241 Bytes
Versions: 3
Compression:
Stored size: 241 Bytes
Contents
module DssUtilities def parseDate(date, options={}) if date res = Time.at(date.split("(")[1].split(")")[0].to_i/1000).to_date if options[:dates_as_string] res.to_s else res end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dss_reuters-0.9.2 | lib/dss_utilities.rb |
dss_reuters-0.9.1 | lib/dss_utilities.rb |
dss_reuters-0.9.0 | lib/dss_utilities.rb |