Public
Edited
Apr 4, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
parseDate = {
const testYear = /^\d+$/;
const testYM = /^(\d+)-(\d+)$/;
function parseDate(d) {
typeof d === "string" || (d = String(d));
let m;
if (m = testYear.exec(d)) {}
}
}
Insert cell
{
const e = this ?? document.createElement("time");
const f = new Intl.DateTimeFormat(locale, {
calendar,
timeZone: timezone,
weekday: "short",
year: "numeric"
});
let go = true;
invalidation.then(() => go = false);
let d;
do {
d = new Date();
e.dateTime = d.toISOString();
e.textContent = f.format(d);
await Promises.tick(1000);
yield e;
} while (go);
}
Insert cell
function datetimeElm(datetime, opts = {}) {
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more