Пример
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