Skip to content

Conversation

@amliu-jumptrading
Copy link
Collaborator

No description provided.

@amliu-jumptrading amliu-jumptrading changed the base branch from amliu/navigation1 to amliu/navigation3 December 5, 2025 16:04
Comment on lines 41 to 55
const formattedParts = formatter.formatToParts(date);
const zeroPrefixedNanos = remainderNanos.toString().padStart(6, "0");

let inMillis = "";
let inNanos = "";

for (const part of formattedParts) {
inMillis += part.value;
inNanos += part.value;
if (part.type === "fractionalSecond") {
inNanos += zeroPrefixedNanos;
}
}

return { inMillis, inNanos };
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we add a test for this part?
Just to make sure we catch if the formatter type value changes or something

Copy link
Collaborator

@asuzuki-jumptrading asuzuki-jumptrading left a comment

Choose a reason for hiding this comment

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

Thank you!

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.

3 participants