parse_header

Function parse_header 

Source
pub fn parse_header(input: &str) -> Option<Time>
Expand description

Unlike parse() which handles all kinds of input, this function only parses the commit-header format like 1745582210 +0200.

Note that failure to parse the time zone isn’t fatal, instead it will default to 0. To know if the time is wonky, serialize the return value to see if it matches the input.