MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / timestamp_hex

Function timestamp_hex

atomic-agent/src/hooks/kilo.rs:394–403  ·  view source on GitHub ↗

Generate a short hex string for fallback session IDs.

()

Source from the content-addressed store, hash-verified

392
393/// Generate a short hex string for fallback session IDs.
394fn timestamp_hex() -> String {
395 use std::time::{SystemTime, UNIX_EPOCH};
396
397 let now = SystemTime::now()
398 .duration_since(UNIX_EPOCH)
399 .unwrap_or_default()
400 .as_millis();
401
402 format!("{:08x}", (now & 0xFFFF_FFFF) as u32)
403}
404
405// ---------------------------------------------------------------------------
406// Verb mapping

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected