Skip to main content

decode_bcd_duration

Function decode_bcd_duration 

Source
pub fn decode_bcd_duration(raw: [u8; 3]) -> Option<Duration>
Expand description

Decode a 24-bit BCD HHMMSS duration ([HH, MM, SS]) to a Duration.

Returns None if any nibble is non-decimal or the minute/second fields exceed 59.