This PR updates Instant to some of the newer specification changes.
TLDR of the below:
Updates Instant struct
Updates diffing ops and adds tests
Implements FromStr.
Primarily, it brings since and until up to date with both temporal_rs and the specification as a whole (along with at least 2 basic tests for since and until)
This PR also changes Instant inner nanoseconds from BigInt to i128. My thought is to eventually remove all usage of BigInt from temporal_rs in general. Primarily motivated by the thought that if NormalizedTimeDuration is using a i128, I don't see a huge reason why Instant should differ, unless I'm overlooking something and someone thinks otherwise.
Finally, it implements FromStr for Instant. This will allow parsing of JsString in Boa, and would unblock to_temporal_instant.
This PR updates Instant to some of the newer specification changes.
TLDR of the below:
Instant
structFromStr
.Primarily, it brings
since
anduntil
up to date with bothtemporal_rs
and the specification as a whole (along with at least 2 basic tests forsince
anduntil
)This PR also changes Instant inner nanoseconds from
BigInt
toi128
. My thought is to eventually remove all usage ofBigInt
fromtemporal_rs
in general. Primarily motivated by the thought that ifNormalizedTimeDuration
is using ai128
, I don't see a huge reason whyInstant
should differ, unless I'm overlooking something and someone thinks otherwise.Finally, it implements
FromStr
forInstant
. This will allow parsing ofJsString
in Boa, and would unblockto_temporal_instant
.