fn component(&self, index: usize) -> Option<u32> {
        self.0
            .split('-')
            .nth(index)
            .map(|cmp| cmp.parse().expect("numerical date components"))
    }
/// Get a specific component of the date by numerical offset
Get a specific component of the date by numerical offset
Get a specific component of the date by numerical offset
fn component(&self, index: usize) -> Option<u32> {
        self.0
            .split('-')
            .nth(index)
            .map(|cmp| cmp.parse().expect("numerical date components"))
    }
fn component ( & self , index : usize ) -> Option < u32 > { self . 0 . split ( '-' ) . nth ( index ) . map ( | cmp | cmp . parse ( ) . expect ( " " ) ) }
Get a specific component of the date by numerical offset
Get a specific component of the date by numerical offset
&self
index
usize
&self
index
usize