amitgaru2 / nepali-datetime

Python's core datetime inspired Bikram Sambat (BS date) & Nepal Time (NPT) package🇳🇵
https://pypi.org/project/nepali-datetime/
MIT License
61 stars 30 forks source link

Isn't it supposed to be 17 exact? #32

Closed ghost closed 1 year ago

ghost commented 1 year ago
>>> (nepali_datetime.datetime(2079, 8, 17) - nepali_datetime.datetime(2062, 8, 17)).days/365
17.013698630136986
ghost commented 1 year ago

17th Mangsir is my birthday so I dont think answer should come in decimals right?

ghost commented 1 year ago

@dxillar

amitgaru2 commented 1 year ago

@neomachiney all years don't have exactly 365 days, some have 366 days too. Check this data https://github.com/dxillar/nepali-datetime/blob/master/nepali_datetime/data/calendar_bs.csv

ghost commented 1 year ago

Oh right