const time = Temporal.PlainTime.from("12:34:56");
console.log(time.microsecond); // 0
const time2 = Temporal.PlainTime.from("12:34:56.123456789");
console.log(time2.microsecond); // 456Temporal.PlainTime.prototype.microsecond / notebook
Temporal.PlainTime.prototype.microsecond
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({ microsecond: 100 });
console.log(newTime.toString()); // 12:34:56.0001const time = Temporal.PlainTime.from("12:34:56");
const newTime = time.add({ microseconds: 100 });
console.log(newTime.toString()); // 12:34:56.0001