Skip to main content

format_message_time

Function format_message_time 

Source
pub fn format_message_time(now: DateTime<Local>) -> String
Expand description

Format a local timestamp the way agent footers display it (3:12 PM).

Twelve-hour clock without seconds or leading zeros, matching the chat-style reference. Takes the instant as a parameter so tests stay deterministic.