Skip to content

Different milliseconds value from Ion Timestamp and java.time.Interval for 0001T  #165

Description

@dlurton
String tsText = "0001-01-01T00:00:00Z";

long instantMillis = Instant.parse(tsText).toEpochMilli(); // -62135596800000
long tsMillis = Timestamp.valueOf(tsText).getMillis();     // -62135769600000
Timestamp.forMillis(instantMillis, 0);                     // 0001-01-03T00:00:00.000Z

Originally posted by @raganhan in #160 (comment)

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions