A lightweight polyfill for Temporal, successor to the JavaScript Date object
Overall
score
96%
Evaluation — 96%
↑ 1.19xAgent success when using this tile
{
"context": "Evaluates whether the solution leverages temporal-polyfill's formatting APIs to produce ISO-safe strings, JSON-safe representations, and locale-aware displays for Temporal values and ranges. Scoring focuses solely on correct use of Temporal string/JSON methods and Intl-based locale formatting across single values and ranges, including fallback handling for date-only/time-only inputs.",
"type": "weighted_checklist",
"checklist": [
{
"name": "ISO fidelity",
"description": "Uses Temporal object methods such as Temporal.Instant.toString(), Temporal.ZonedDateTime.toString(), Temporal.PlainDate.toString(), and Temporal.PlainTime.toString() (or implicit stringification) to populate iso fields, preserving offsets and calendar data without manual string assembly.",
"max_score": 25
},
{
"name": "JSON output",
"description": "Derives json fields via Temporal toJSON behavior (e.g., Instant/PlainDate/PlainTime/ZonedDateTime.toJSON() or JSON.stringify on those objects) rather than custom serializers, ensuring results match the package's canonical ISO strings.",
"max_score": 20
},
{
"name": "Locale formatting",
"description": "Generates localized strings for single values using Temporal-aware Intl.DateTimeFormat or Temporal.toLocaleString with provided locale/timeZone/display options (including fallback zones for date-only/time-only inputs), demonstrating that Temporal objects are passed directly into the formatter instead of manually formatted strings.",
"max_score": 25
},
{
"name": "Range formatting",
"description": "Produces localizedRange output by calling Intl.DateTimeFormat.prototype.formatRange (or equivalent Temporal-aware range API) on start/end Temporal objects such as ZonedDateTime or Instant while preserving input order and honoring supplied locale/timeZone options.",
"max_score": 30
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-temporal-polyfilldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10