Skip to main content

utc_now_pub

Function utc_now_pub 

Source
pub fn utc_now_pub() -> String
Expand description

Returns the current UTC time as an ISO 8601 string ("YYYY-MM-DDTHH:MM:SSZ").

This is the public companion of the internal utc_now() helper, exposed for use by SubAgentManager when writing transcript sidecars.

ยงExamples

use zeph_subagent::transcript::utc_now_pub;

let ts = utc_now_pub();
assert_eq!(ts.len(), 20, "expected 20-char ISO 8601 timestamp");
assert!(ts.ends_with('Z'));
assert!(ts.contains('T'));