Skip to content

Writing data with less than second precision #145

Description

@jchauncey

So I am trying to write data with either millisecond or nanosecond precision and neither works.

If I try to generate an integer that represents millisecond precision (since epoch):

timestamp = (Time.now.to_f * 1000).to_i

I get the following error:

time outside range 1677-09-21 00:12:43.145224192 +0000 UTC - 2262-04-11 23:47:16.854775807 +0000 UTC

I am trying to do what the tests show but that doesn't seem to be working

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions