pub(super) fn midnight_timestamp(days: i64) -> u64
Calculate the midnight timestamp given a number of days. If days is 0, calculate the midnight timestamp of today.
days