CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-temporal-polyfill

A lightweight polyfill for Temporal, successor to the JavaScript Date object

Overall
score

96%

Evaluation96%

1.19x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "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-polyfill

tile.json