Skip to main content

write_timestamp

Function write_timestamp 

Source
pub fn write_timestamp(
    path: &Path,
    iso: Option<&str>,
) -> Result<(), TimestampError>
Expand description

Persist a timestamp line.

Behavior:

  • Some(value): trims at first newline and writes if non-empty.
  • None or empty value: removes the file, ignoring NotFound.