Closed proway2 closed 2 years ago
There is no practical need to calculate the factor
with respect to leap years in case when date
is higher than end_epoch
. The reason behind that is that this is only used to calculate the factor
for SV values only. These values (SV) are rather coarse, so there is no reason to make calculations more accurate because it won't affect the overall accuracy.
When
date
is higher thanend_epoch
thefactor
is calculated the very same way it's done inC
implementation. However, this calculation doesn't respect leap years, although whendate
is lower thanend_epoch
,factor
is calculated with respect to leap years.Check if it's possible to improve accuracy by calculating
factor
with leap years whendate
is higher thanend_epoch
.