Structs§
- Fixed
Server Clock - Test server clock: 固定 unix ts. 用于 deterministic test assertions (e.g. “HKT 与 NY 跨日时 default 是 NY 日历日, 不是 HKT”).
- Offset
Server Clock - Production server clock: 本机
Utc::now()+svr_time_offset_secs(从AuthResult.svr_time_offset派生, AtomicI64 lock-free 跨线程读). - Server
Clock Runtime - Gateway-level server-clock runtime boundary.
Traits§
- Server
Clock - codex 21st F2/F3: server clock abstraction. production 用
OffsetServerClock包 svr_time_offset_secs (从 AuthResult 派生), 测试用FixedServerClock.
Functions§
- utc_
datetime_ from_ unix_ secs_ or_ epoch - Convert a server unix timestamp into UTC DateTime.
- wall_
clock_ since_ unix_ epoch_ or_ zero - Return daemon wall-clock elapsed time since Unix epoch.