pub fn check_component<T>( component: DateComponent, value: &T, ) -> Result<(), Error>where T: Into<u32> + Copy,
Throws a detailed InvalidComponent error if date / time components are out of range.
InvalidComponent