Closed winston0410 closed 1 year ago
hi there, sorry for the late reply 🙏
the reason is that any duration has to have a starting point (an epoch if you will), that being defaulted to Date.now()
if nothing is provided. And so getting the duration for 2 years only means that the subsequent year might be a leap year or something like that - so it is all calendar related which makes it seem a bit weird, but correct 😊
Yes Ieap year was the issue. Thanks for your reply
I am not sure if this is a bug or a feature that I don't understand. I get the duration of a year in seconds like this:
And when I get 2 years in seconds, the value seems to be wrong:
Why is that?