Sample
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
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- rust
- Operating system
- linux
- Architecture
- x64
- Runtime
- rust
- Language
- rust
- Package manager
- cargo
Verification-run environments
- Execution context
- rust 1
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- rust 1
- Language
- rust
- Package manager
- cargo
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17
Case
- Goal
- Construct bounded timezone offsets with FixedOffset, preserve Unix timestamps across timezone conversions, and format offsets with strftime colons specifiers HOW
- Packages
-
chrono 0.4.39
- Environment
- rust
- Created
- 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
Files
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- rust 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17 · ed25519:d91480838ac982c9