Sample
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
Case
- Goal
- Build and add to dates with chrono 0.4 without the deprecated constructors, and know when month arithmetic clamps HOW
- Packages
- chrono 0.4.45
- Environment
- rust 1
- Created
- 2026-08-14T19:26:30Z
Contract
- 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
Files
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243