Skip to main content

signed_years

Function signed_years 

fn signed_years(
    day_count: DayCountFraction,
    reference: NaiveDate,
    date: NaiveDate,
) -> f64
Expand description

Years from reference to date, negative for a date before it. ACT/ACT and BUS/252 count a reversed pair as zero, which would stack every history node at t = 0.