Skip to content

Commit f763c48

Browse files
Eric ForgyEric Forgy
authored andcommitted
Add a default yearfrac (Excel.Actual360)
1 parent 49cd021 commit f763c48

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/excel.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function DayCounts.yearfrac(startdate::Date, enddate::Date, dc::Thirty360)
4343
end
4444
return DayCounts.thirty360(y2-y1,m2-m1,d2-d1)
4545
end
46+
DayCounts.yearfrac(startdate::Date, enddate::Date) = DayCounts.yearfrac(startdate::Date, enddate::Date, Thirty360())
4647

4748
"""
4849
Excel.ActualActual()

0 commit comments

Comments
 (0)