SunCalc.getTimes(
new Date(1684365873000),
-73.688566659788151,
18.128286340044944
)
This call returns an object which has invalid Date in some fields (sunrise, sunset among others). I inspected the reason, and saw that sometimes function hourAngle returns NaN because Math.acos is called with input outside of range [-1,1].
This call returns an object which has invalid Date in some fields (sunrise, sunset among others). I inspected the reason, and saw that sometimes function
hourAngle
returns NaN becauseMath.acos
is called with input outside of range [-1,1].