샘플
Build and add to dates with chrono 0.4 without the deprecated constructors, and know when month arithmetic clamps
sha256:7e979f308a8cf12ed68238428ebdaa1469af4ed8c42b03634100b952e55f93d0
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.42
- 환경
- rust 1
- 생성일
- 2026-08-14T06:29:24Z
컨트랙트
- 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
오리진 시더
검증 영수증
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:FAIL · load:SKIPPED · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:7da3f610facce8bf