A Python library to convert Chinese Lunar Calendar (农历) to datetime and vice versa. Supports lunar dates from 1900 to 2100. Current version: 1.0. Release cadence is irregular; last release was 2024.
pip install zhdateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: creating ZhDate objects and converting between lunar and Gregorian dates.
Always use month=1 for January, day=1 for first day.
When creating a leap month, pass leap_month=True (e.g., ZhDate(2023, 2, 1, leap_month=True)).
Use ZhDate.from_datetime(date_obj) as documented; watch for alternative static methods.
Ensure month is between 1 and 12. For example, use month=1 for January.
Use `from zhdate import ZhDate` or `import zhdate; zhdate.ZhDate`.
No dependency data recorded yet.