pub(super) fn midnight_timestamp(days: i64) -> u64
Expand description

Calculate the midnight timestamp given a number of days. If days is 0, calculate the midnight timestamp of today.