Skip to content

Millisecond accuracy #1

Description

@djcsdy

Fractional seconds are all very well but a number can't represent 1 millisecond accurately because 0.001 isn't easily expressible as a sum of powers of two.

Users of this library probably expect millisecond accuracy but not submillisecond accuracy so:

  • Add a milliseconds field to Timestamp, so it's not necessary to represent milliseconds as fractions of a second.
  • Replace reference seconds with reference milliseconds.
  • Consider using bigint for reference milliseconds to ensure a wide range of valid dates.

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