Function extract_year

Source
pub fn extract_year(raw: &str) -> Option<u32>
Expand description

Extracts the first year from a tag date, whatever its shape (1986, 1986-03-05, 05/03/1986, 1986.03).