const time = Temporal.PlainTime.from("12:34:56");
console.log(time.millisecond); // 0
const time2 = Temporal.PlainTime.from("12:34:56.123456789");
console.log(time2.millisecond); // 123Temporal.PlainTime.prototype.millisecond / notebook
Temporal.PlainTime.prototype.millisecond
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const time = Temporal.PlainTime.from("12:34:56");
const newTime = time.with({ millisecond: 100 });
console.log(newTime.toString()); // 12:34:56.1const time = Temporal.PlainTime.from("12:34:56");
const newTime = time.add({ milliseconds: 100 });
console.log(newTime.toString()); // 12:34:56.1