Class: Integer

Inherits:
Object show all
Defined in:
lib/http_crawler/common/integer.rb

Instance Method Summary collapse

Instance Method Details

#jagger_to_timeObject



2
3
4
5
6
7
8
# File 'lib/http_crawler/common/integer.rb', line 2

def jagger_to_time
  if self >= 1000000000000 && self < 10000000000000
    return Time.at(self / 1000.0)
  else
    return Time.at(self)
  end
end