{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/influxdb-ruby/issues/145","repository_url":"https://api.github.com/repos/influxdata/influxdb-ruby","labels_url":"https://api.github.com/repos/influxdata/influxdb-ruby/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/influxdb-ruby/issues/145/comments","events_url":"https://api.github.com/repos/influxdata/influxdb-ruby/issues/145/events","html_url":"https://github.com/influxdata/influxdb-ruby/issues/145","id":158014763,"number":145,"title":"Writing data with less than second precision","user":{"login":"jchauncey","id":430360,"avatar_url":"https://avatars.githubusercontent.com/u/430360?v=3","gravatar_id":"","url":"https://api.github.com/users/jchauncey","html_url":"https://github.com/jchauncey","followers_url":"https://api.github.com/users/jchauncey/followers","following_url":"https://api.github.com/users/jchauncey/following{/other_user}","gists_url":"https://api.github.com/users/jchauncey/gists{/gist_id}","starred_url":"https://api.github.com/users/jchauncey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchauncey/subscriptions","organizations_url":"https://api.github.com/users/jchauncey/orgs","repos_url":"https://api.github.com/users/jchauncey/repos","events_url":"https://api.github.com/users/jchauncey/events{/privacy}","received_events_url":"https://api.github.com/users/jchauncey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-01T21:47:41Z","updated_at":"2016-06-01T22:21:30Z","closed_at":null,"body":"So I am trying to write data with either millisecond or nanosecond precision and neither works. \r\n\r\nIf I try to generate an integer that represents millisecond precision (since epoch): \r\n\r\n```\r\ntimestamp = (Time.now.to_f * 1000).to_i\r\n```\r\n\r\nI get the following error:\r\n\r\n```\r\ntime outside range 1677-09-21 00:12:43.145224192 +0000 UTC - 2262-04-11 23:47:16.854775807 +0000 UTC\r\n```\r\n\r\nI am trying to do what the tests show but that doesn't seem to be working"},"comment":{"url":"https://api.github.com/repos/influxdata/influxdb-ruby/issues/comments/223142701","html_url":"https://github.com/influxdata/influxdb-ruby/issues/145#issuecomment-223142701","issue_url":"https://api.github.com/repos/influxdata/influxdb-ruby/issues/145","id":223142701,"user":{"login":"dmke","id":327411,"avatar_url":"https://avatars.githubusercontent.com/u/327411?v=3","gravatar_id":"","url":"https://api.github.com/users/dmke","html_url":"https://github.com/dmke","followers_url":"https://api.github.com/users/dmke/followers","following_url":"https://api.github.com/users/dmke/following{/other_user}","gists_url":"https://api.github.com/users/dmke/gists{/gist_id}","starred_url":"https://api.github.com/users/dmke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmke/subscriptions","organizations_url":"https://api.github.com/users/dmke/orgs","repos_url":"https://api.github.com/users/dmke/repos","events_url":"https://api.github.com/users/dmke/events{/privacy}","received_events_url":"https://api.github.com/users/dmke/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T22:21:30Z","updated_at":"2016-06-01T22:21:30Z","body":"I believe the test is indeed faulty: `precision: \"m\"` indicates **minutes**, not milliseconds (which would be `ms`), see [\"duration units\"](https://docs.influxdata.com/influxdb/v0.13/query_language/spec/#durations) in the language spec."}}
{"actor":{"display_login":"dmke"}}