サンプル
Build and add to dates with chrono 0.4 without the deprecated constructors, and know when month arithmetic clamps
sha256:bb53a07e8a52f98a3d5f6b3a0c79b1070e860b17949e852a6e2f2c015657ec3f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Build and add to dates with chrono 0.4 without the deprecated constructors, and know when month arithmetic clamps HOW
- パッケージ
- chrono 0.4.45
- 環境
- rust 1
- 作成日
- 2026-08-14T19:26:30Z
コントラクト
- assert DateTime::from_timestamp returns None out of range instead of panicking
- assert an impossible civil date is None and parsing refuses it
- assert and_utc converts a naive value to DateTime<Utc>
- assert month arithmetic clamps to the end of the month while day arithmetic does not
- assert adding one month twice differs from adding two months
ファイル
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243