Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing a timestamp before the epoch to FromParts does not return an error #58

Open
justinruggles opened this issue Dec 11, 2021 · 0 comments

Comments

@justinruggles
Copy link

It seems that it wraps around rather than returning an error.

https://go.dev/play/p/s2aA3-ERd-E

Uses timestamp 2000-01-01T00:00:00.00Z and zeros for the payload.
Returns: WfeXVK2UN8Qh86bSI6R4zNvC7ge

$ ksuid -f inspect WfeXVK2UN8Qh86bSI6R4zNvC7ge

REPRESENTATION:

  String: WfeXVK2UN8Qh86bSI6R4zNvC7ge
     Raw: E4FAF58000000000000000000000000000000000

COMPONENTS:

       Time: 2136-02-07 01:28:16 -0500 EST
  Timestamp: 3841652096
    Payload: 00000000000000000000000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant