InfluxCommunity / influxdb-ruby

Ruby client for InfluxDB
MIT License
370 stars 133 forks source link

README: Get time really in ms, not in ns #206

Closed vassilevsky closed 6 years ago

vassilevsky commented 6 years ago
$ pry
[1] pry(main)> t = Time.now
=> 2017-11-25 19:34:56 +0400
[2] pry(main)> t.to_i
=> 1511624096
[3] pry(main)> (t.to_r * 10**6).to_i
=> 1511624096297938
[4] pry(main)> (t.to_r * 1000).to_i
=> 1511624096297
dmke commented 6 years ago

Thanks, good catch.

Must've been an oversight when I was reformatting the docs.