fn parse_second(second: &[u8], leap_sec: bool) -> Option<u8> {
    let max_seconds = if leap_sec { 60 } else { 59 };
    match parse_2_digits(second) {
        Some(second) if second <= max_seconds => Some(second),
        _ => None,
    }
}
/// Parse a 2-digit second
Parse a 2-digit second
Parse a 2 - digit second
fn parse_second(second: &[u8], leap_sec: bool) -> Option<u8> {
    let max_seconds = if leap_sec { 60 } else { 59 };
    match parse_2_digits(second) {
        Some(second) if second <= max_seconds => Some(second),
        _ => None,
    }
}
fn parse_second ( second : & [ u8 ] , leap_sec : bool ) -> Option < u8 > { let max_seconds = if leap_sec { 60 } else { 59 } ; match parse_2_digits ( second ) { Some ( second ) if second <= max_seconds => Some ( second ) , _ => None , } }
Parse a 2-digit second
Parse a 2 - digit second
second
&[u8]
leap_sec
bool