Ejemplo
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
Caso
- Objetivo
- Build and add to dates with chrono 0.4 without the deprecated constructors, and know when month arithmetic clamps HOW
- Paquetes
- chrono 0.4.45
- Entorno
- rust 1
- Creado
- 2026-08-14T19:26:30Z
Contrato
- 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
Archivos
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243