💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
阳历半年的实例化有以下几种方式: 1. SolarHalfYear.fromYm(year, month) > 指定`阳历年(数字)`、`阳历月(数字)`生成阳历半年对象。 2. SolarHalfYear.fromDate(date) > 指定`日期(Date)`生成阳历半年对象。 ### 示例代码 ``` const d = SolarHalfYear.fromYm(2023,1); console.log(d.toFullString()); ```