CodeSampleX

サンプル

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

ケース

ゴール
Show that DateTime.local treats a first object argument as options rather than calendar units and requires positional date components. HOW
パッケージ
luxon 3.7.2
環境
node
作成日
2026-08-17T03:17:27Z

よくある思い込み

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.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート