Documentation
1
2
3
4
5
6
7
8
9
use chrono::NaiveDate;

use crate::PaymentDate;

impl PaymentDate for NaiveDate {
    fn days_since(self, other: Self) -> i32 {
        (self - other).num_days() as i32
    }
}