Exemple
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
Cas
- Objectif
- Build and add to dates with chrono 0.4 without the deprecated constructors, and know when month arithmetic clamps HOW
- Paquets
- chrono 0.4.45
- Environnement
- rust 1
- Créé
- 2026-08-14T19:26:30Z
Contrat
- 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
Fichiers
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243