Ejemplo
Construct bounded timezone offsets with FixedOffset, preserve Unix timestamps across timezone conversions, and format offsets with strftime colons specifiers
sha256:7b9190bcd6801c3be3c36ad8e6a07143bbe7a6230d692363ec3e5a311ff19ae0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- rust
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- rust
- Lenguaje
- rust
- Gestor de paquetes
- cargo
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- rust 1
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- rust 1
- Lenguaje
- rust
- Gestor de paquetes
- cargo
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17
Caso
- Objetivo
- Construct bounded timezone offsets with FixedOffset, preserve Unix timestamps across timezone conversions, and format offsets with strftime colons specifiers HOW
- Paquetes
-
chrono 0.4.39
- Entorno
- rust
- Creado
- 2026-08-17T18:54:06Z
Contrato
- FixedOffset restricts timezone offsets strictly within -86400 to +86400 seconds, preserves Unix epoch timestamps invariant across with_timezone conversions, and formats offsets using %z, %:z, %::z, and %:::z.
- assert FixedOffset::east_opt and west_opt return None for 86400 seconds and Some for 86399 seconds
- assert negative east offset is equivalent to positive west offset and local_minus_utc returns the signed seconds
- assert converting DateTime<FixedOffset> across timezones preserves the identical epoch timestamp while adjusting local wall-clock components
- assert strftime format specifiers produce %z (+HHMM), %:z (+HH:MM), %::z (+HH:MM:SS), and %:::z (+HH)
- assert duration addition on DateTime<FixedOffset> advances timestamp and local time while leaving the offset unchanged
Archivos
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- rust 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17 · ed25519:d91480838ac982c9