pub(super) fn days_since(midnight_ts: u64) -> u64
Calculate the number of days since a given midnight timestamp.