readable-inlined-date 0.1.2

Human readable data formatting
Documentation
/// # INVARIANT
/// Input must be [u8; 10] with byte 7-8 being the `MONTH`.
pub const fn month(bytes: &[u8]) -> Option<(u8, [u8; 2])> {
	Some(match bytes {
		[_,_,_,_,_, 48, 49,_,_,_] => (01, [48, 49]),
		[_,_,_,_,_, 48, 50,_,_,_] => (02, [48, 50]),
		[_,_,_,_,_, 48, 51,_,_,_] => (03, [48, 51]),
		[_,_,_,_,_, 48, 52,_,_,_] => (04, [48, 52]),
		[_,_,_,_,_, 48, 53,_,_,_] => (05, [48, 53]),
		[_,_,_,_,_, 48, 54,_,_,_] => (06, [48, 54]),
		[_,_,_,_,_, 48, 55,_,_,_] => (07, [48, 55]),
		[_,_,_,_,_, 48, 56,_,_,_] => (08, [48, 56]),
		[_,_,_,_,_, 48, 57,_,_,_] => (09, [48, 57]),
		[_,_,_,_,_, 49, 48,_,_,_] => (10, [49, 48]),
		[_,_,_,_,_, 49, 49,_,_,_] => (11, [49, 49]),
		[_,_,_,_,_, 49, 50,_,_,_] => (12, [49, 50]),
		_ => return None,
	})
}