tessl install tessl/pypi-lunar-python@1.4.0Comprehensive Chinese lunar calendar library with Solar calendar conversion and traditional Chinese calendar features.
Agent Success
Agent success rate when using this tile
79%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.9x
Baseline
Agent success rate without this tile
88%
Build a tiny bridge module that focuses solely on creating solar or lunar dates and converting between them, including Julian day inputs. The goal is to exercise accurate transformations, time preservation, and leap-month awareness without recreating calendar math.
@generates
class CalendarBridge:
@staticmethod
def from_solar(year: int, month: int, day: int,
hour: int = 0, minute: int = 0, second: int = 0) -> "CalendarBridge": ...
@staticmethod
def from_lunar(year: int, month: int, day: int,
hour: int = 0, minute: int = 0, second: int = 0,
leap_month: bool = False) -> "CalendarBridge": ...
@staticmethod
def from_julian_day(julian_day: float) -> "CalendarBridge": ...
def to_solar_tuple(self) -> tuple: ... # (year, month, day, hour, minute, second)
def to_lunar_tuple(self) -> tuple: ... # (year, month, day, hour, minute, second, leap_month)
def to_julian_day(self) -> float: ... # Julian day number for the stored instantChinese solar and lunar calendar conversions with Julian day and leap-month support. @satisfied-by