Skip to content

Conversation

@sebastianjacmatt
Copy link
Owner

This does a lot but mainly on implementation of add and subtract, although it also adds some stuff for since and untill

)
.unbind()?
.bind(gc.nogc());
// 9. If microseconds is not undefined, set result.[[Microseconds]] to ? ToIntegerIfIntegral(microseconds).
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToIntegerIfIntegral on microsecounds, returns a Number, however microsecounds as per temporal_rs::partial::PartialDuration should be a i128.
We have try_into_i128 from BigInt,could potentially use this?

}

/// Convert a Number to BigInt
pub fn to_big_int(self, agent: &mut Agent) -> BigInt<'a> {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would mean that we need to create the Number to BigInt conversion function to_big_int for Number.

@sebastianjacmatt sebastianjacmatt merged commit f38ee08 into temporal_intrinsic Nov 11, 2025
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

Successfully merging this pull request may close these issues.

2 participants