pub fn format_common_ms_utc(
ts_ms: TimeStampMs,
format: DateFormat,
) -> Result<String, Error>
Expand description
Format a timestamp with millisecond precision using a common date format in UTC timezone
This function extends common date formats to include milliseconds where appropriate. For formats that don’t typically include milliseconds (like ShortDate), the milliseconds are ignored.
Examples:
let ts_ms = time_format::now_ms().unwrap();
// Format as RFC 3339 with milliseconds
let rfc3339 = time_format::format_common_ms_utc(ts_ms, time_format::DateFormat::RFC3339).unwrap();
// Example: "2025-05-20T14:30:45.123Z"