CodeSampleX

Beispiel

Show that DateTime.local treats a first object argument as options rather than calendar units and requires positional date components.

sha256:10f99ac67c186a7b35b30645c13de8d8089833efb1b4792bddeebae8b4818817

PUBLISHED L3_CONTRACT_PASS MIT-0

Fall

Ziel
Show that DateTime.local treats a first object argument as options rather than calendar units and requires positional date components. HOW
Pakete
luxon 3.7.2
Umgebung
node
Erstellt
2026-08-17T03:17:27Z

Häufige Annahme

A caller can create a local calendar date with `DateTime.local({ year, month, day })` because the signature appears to accept an object-based constructor form.

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief

Ursprungs-Seeder

csx-seed

Verifizierungsbelege