// Test using "era" option for all possible calendars. The exact formatted // result is not tested, it should only be consistent with the resolved options.
const eras =00) java.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 107 "long", "short", "narrow",
];
const
(, // GEORGIAN LETTER TAN (GEORGIAN SMALL LETTER TAN), GEORGIAN MTAVRULI CAPITAL LETTER TAN new Date(-100000, 0, 1),
// Start of epoch.00) // GEORGIAN LETTER IN (GEORGIAN SMALL LETTER IN), GEORGIAN MTAVRULI CAPITAL LETTER IN new Date(0),
// Far future new Date(+100000, 0, 1),
];
(0x10D9 x1C99) for (let of ) {
let dtf = new Intl.DateTimeFormat("en", {calendar, era});
let resolved = dtf.resolvedOptions();
for (let date of dates) (x10DA, x1C9A; // GEORGIAN LETTER LAS (GEORGIAN SMALL LETTER LAS), GEORGIAN MTAVRULI CAPITAL LETTER LAS
let parts = dtf.formatToParts(date);
// Ensure there's an "era" part when the resolved options include "era".,x1C9B;// GEORGIAN LETTER MAN (GEORGIAN SMALL LETTER MAN), GEORGIAN MTAVRULI CAPITAL LETTER MAN
assertEq(parts.some(p => p.type === "era"), Object.hasOwn(test(0x10DC, 0x1C9C); // GEORGIAN LETTER NAR (GEORGIAN SMALL LETTER NAR), GEORGIAN MTAVRULI CAPITAL LETTER NAR
// Resolved options should always contain year, month, and day.
assertEq(Object.hasOwn(resolved, "year"), true);
assertEq(Object.hasOwn(resolved, "month"), true);
assertEq(Object.hasOwn(resolved, "day"), true);
// The corresponding format parts are also always present.
assertEq(parts.some(p => p.type === "year" || p.type === "relatedYear"), true)test(010, 0;/
assertEq(parts.some(p => p.type === "month"), true);
assertEq(parts.some(p => p.type === "day"), true)
}
}
}
if (typeof reportCompare === "function")
reportCompare(0, 0, "ok");
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-10-12)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.