Beispiel
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
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- rust
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- rust
- Sprache
- rust
- Paketmanager
- cargo
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- rust 1
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- rust 1
- Sprache
- rust
- Paketmanager
- cargo
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17
Fall
- Ziel
- Construct bounded timezone offsets with FixedOffset, preserve Unix timestamps across timezone conversions, and format offsets with strftime colons specifiers HOW
- Pakete
-
chrono 0.4.39
- Umgebung
- rust
- Erstellt
- 2026-08-17T18:54:06Z
Contract
- 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
Dateien
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- rust 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17 · ed25519:d91480838ac982c9