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

Function write_timestamp

atomic-cli/src/commands/op/output.rs:520–528  ·  view source on GitHub ↗
(output: &mut String, indent: usize, timestamp_ms: i64, utc: Option<&str>)

Source from the content-addressed store, hash-verified

518}
519
520fn write_timestamp(output: &mut String, indent: usize, timestamp_ms: i64, utc: Option<&str>) {
521 writeln!(
522 output,
523 "{}time: {} (timestamp_ms={timestamp_ms})",
524 spaces(indent),
525 utc.unwrap_or("unrepresentable")
526 )
527 .unwrap();
528}
529
530fn write_string_list(output: &mut String, indent: usize, label: &str, values: &[String]) {
531 writeln!(output, "{}{}:", spaces(indent), label).unwrap();

Callers 3

render_log_humanFunction · 0.85
render_details_humanFunction · 0.85
write_receiptFunction · 0.85

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected