python-lunardate icon indicating copy to clipboard operation
python-lunardate copied to clipboard

A Chinese Calendar Library in Pure Python

Results 5 python-lunardate issues
Sort by recently updated
recently updated
newest added

The result looks like not supported: ``` lunar_date = LunarDate.fromSolarDate(1472, 10, 31) print(lunar_date) LunarDate(1900, 1, -156049, 0) ```

I don't use this library yet, but I'm considering it as a transitive dependency of [workalendar](https://github.com/peopledoc/workalendar). The GPL license is currently stopping me from integrating it into my project. Would...

``` >>> a = lunardate.LunarDate(1, 2, 3, isLeapMonth=True) >>> str(a) 'LunarDate(1, 2, 3, 1)' >>> repr(a) 'LunarDate(1, 2, 3, 1)' ```

``` >>> a = lunardate.LunarDate(1,2,3) >>> a.toSolarDate() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.7/site-packages/lunardate.py", line 190, in toSolarDate offset += _calcDays(yearInfos[yearIdx], self.month, self.day, self.isLeapMonth) IndexError:...