yearfrac: Time difference between two dates in fractional year terms

Description Usage Arguments Value

View source: R/date_utils.R

Description

Computes the time difference between date1 and date2 in fractional year terms. This is equivalent to the YEARFRAC() method from Excel, with the parameter "Actual/Actual"

Usage

1
yearfrac(date1, date2)

Arguments

date1

the first date

date2

the second date

Value

fractional years between date1 and date2


logib documentation built on Nov. 21, 2021, 9:08 a.m.