Skip to main content

prev_month

Function prev_month 

Source
pub fn prev_month(ms: i64) -> i64
Expand description

The same day-of-month one month earlier, keeping the time of day — the inverse of next_month for the instants it can produce. The account API’s monthly resetsAt is an anniversary time (09:14:35, not midnight), so its period start has to carry that time of day back to the previous month.