Skip to main content

split_leading_timestamp

Function split_leading_timestamp 

Source
pub fn split_leading_timestamp(line: &str) -> Option<(&str, &str)>
Expand description

Split a runtime.log/kernel.log line into a leading RFC 3339 timestamp token (ending in Z, ≥20 chars) and the rest of the line. Returns None if the first whitespace-delimited token isn’t a plausible timestamp.