pub(crate) fn naive_date_to_arrays(date: NaiveDate) -> ([u8; 4], [u8; 4])