Skip to main content

normalize_docker_timestamp

Function normalize_docker_timestamp 

Source
pub fn normalize_docker_timestamp(value: Option<&str>) -> Option<String>
Expand description

Normalize a timestamp reported by docker inspect.

Returns None for docker’s zero time, for the <no value> a missing field renders as, and for anything that does not parse — an honest absence beats a year-1 timestamp travelling onward as a finish time.