LunarCalendar icon indicating copy to clipboard operation
LunarCalendar copied to clipboard

Wrong algorithm

Open binhna opened this issue 4 years ago • 2 comments

I try this and the algorithm gives me the wrong output: print(Lunar.from_date(datetime.date(2021, 1, 4))) --> Lunar(year=2020, month=11, day=21, isleap=False)

It should be: Lunar(year=2020, month=11, day=22, isleap=False)

binhna avatar Jan 04 '21 04:01 binhna

I think you got your date wrong. From every single converter available online, I got 2021-01-04 in solar calendar converts to 2020-11-21 in lunar calendar.

dingp avatar Apr 16 '21 17:04 dingp

@binhna Although It was late, your result is about the Vietnamese calendar, not the Chinese calendar. At a specific time, it won't be the same.

kainjinez avatar Oct 13 '23 13:10 kainjinez