lunar-flutter icon indicating copy to clipboard operation
lunar-flutter copied to clipboard

获取法定节假日失败

Open error-code opened this issue 1 year ago • 1 comments

Holiday? h = HolidayUtil.getHolidayByYmd(2025,5,1);
debugPrint('日期:${h?.getDay()}');
debugPrint('是否调休:${h?.isWork()}');
debugPrint('假期名称:${h?.getName()}');
debugPrint('关联节日:${h?.getTarget()}');

调试输出:

I/flutter (27011): 日期:null
I/flutter (27011): 是否调休:null
I/flutter (27011): 假期名称:null
I/flutter (27011): 关联节日:null

error-code avatar May 26 '24 08:05 error-code

法定节假日根据国务院通知更新的,目前没有2025年的数据。

6tail avatar Aug 08 '24 00:08 6tail