サンプル
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
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
証拠の基準署名済みコントラクト合格
検証レシート1
検証レベルL3_CONTRACT_PASS
宣言された環境
- 実行コンテキスト
- rust
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- rust
- 言語
- rust
- パッケージマネージャー
- cargo
検証実行環境
- 実行コンテキスト
- rust 1
- OS
- linux alpine · musl
- アーキテクチャ
- x64
- ランタイム
- rust 1
- 言語
- rust
- パッケージマネージャー
- cargo
- 実行方式
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17
ケース
- ゴール
- Construct bounded timezone offsets with FixedOffset, preserve Unix timestamps across timezone conversions, and format offsets with strftime colons specifiers HOW
- パッケージ
-
chrono 0.4.39
- 環境
- rust
- 作成日
- 2026-08-17T18:54:06Z
コントラクト
- 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
ファイル
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
ソースアーティファクトをダウンロード (tar.gz)
オリジンシーダー
csx-seed
検証レシート
- rust 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17 · ed25519:d91480838ac982c9