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 how well the solution leverages temporal-polyfill to convert among instants, zoned timestamps, and plain calendar representations for the specified tasks. Points focus solely on using the Temporal API correctly, including built-in conversions, zone shifts, and disambiguation for overlaps or gaps.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Instant parsing",
"description": "Uses Temporal.Instant.from (or Temporal.Now.instant) to create instants from ISO input instead of manual Date parsing or string math.",
"max_score": 15
},
{
"name": "Zoned projection",
"description": "Derives zoned timestamps from instants with Temporal.Instant.toZonedDateTimeISO or Temporal.ZonedDateTime.from using the provided IANA zone rather than custom offset arithmetic.",
"max_score": 20
},
{
"name": "Plain derivatives",
"description": "Obtains local date/time components via Temporal.ZonedDateTime helpers (toPlainDateTime, toPlainDate, toPlainTime, toPlainYearMonth, toPlainMonthDay) instead of manual string slicing.",
"max_score": 15
},
{
"name": "Zone shift",
"description": "Shifts scheduled times by converting to a Temporal.ZonedDateTime and applying withTimeZone (or toInstant plus toZonedDateTimeISO) to keep the underlying instant unchanged.",
"max_score": 20
},
{
"name": "DST disambiguation",
"description": "Resolves overlaps/gaps with Temporal disambiguation options (e.g., disambiguation on Temporal.ZonedDateTime.from or Temporal.TimeZone.getPossibleInstantsFor) matching the requested hint such as \"later\".",
"max_score": 20
},
{
"name": "ISO output",
"description": "Produces final strings via Temporal objects’ toString (or equivalent brand-aware format) to ensure correct ISO shapes instead of manual formatting.",
"max_score": 10
}
]
}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