fn month_days(date: Date<Utc>) -> i64 {
    NaiveDate::from_ymd_opt(date.year(), date.month() + 1, 1)
        .unwrap_or_else(|| NaiveDate::from_ymd(date.year() + 1, 1, 1))
        .pred()
        .day() as i64
}
/// Number of days in a month. Returns i64 because that's what Duration takes
Number of days in a month. Returns i64 because that's what Duration takes
Number of days in a month . Returns i64 because that ' s what Duration takes
fn month_days(date: Date<Utc>) -> i64 {
    NaiveDate::from_ymd_opt(date.year(), date.month() + 1, 1)
        .unwrap_or_else(|| NaiveDate::from_ymd(date.year() + 1, 1, 1))
        .pred()
        .day() as i64
}
fn month_days ( date : Date < Utc > ) -> i64 { NaiveDate :: from_ymd_opt ( date . year ( ) , date . month ( ) + 1 , 1 ) . unwrap_or_else ( | | NaiveDate :: from_ymd ( date . year ( ) + 1 , 1 , 1 ) ) . pred ( ) . day ( ) as i64 }
Number of days in a month.
Number of days in a month .
date
Date<Utc>
date
Date<Utc>