time_machine
time_machine copied to clipboard
NanosecondTime not exposed
NanosecondTime is not exposed.
Instant.epochTime(NanosecondTime(nanosecAsInt))
Is more descriptive than
Instant.fromEpochBigIntNanoseconds(BigInt.from(nanosecAsInt))
We can still keep current time in long 64 bit as for the next appox 260 years. After that I don't care anymore :)
May I also suggest to change the naming
factory Instant.fromEpochNanoseconds(int nanoseconds) => Instant.epochTime(ITime.trusted(0, nanoseconds));
Here fromEpochNanoseconds
may be misleading, what about fromEpochNanosecondsInterval
?