Skip to content

Commit 5f6906a

Browse files
Merge pull request #3 from wangzeping722/feat-2025
2025
2 parents 7687d54 + 8b63e91 commit 5f6906a

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

constants.go

Lines changed: 39 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/generator.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,24 @@ func (ag *arrangement) generateHolidays() {
9797
sort.Sort(ag.InLieuDayList)
9898
}
9999

100+
func (ag *arrangement) Y2025() {
101+
// https://www.gov.cn/zhengce/content/202411/content_6986382.htm
102+
// 一、元旦:1月1日(周三)放假1天,不调休。
103+
// 二、春节:1月28日(农历除夕、周二)至2月4日(农历正月初七、周二)放假调休,共8天。1月26日(周日)、2月8日(周六)上班。
104+
// 三、清明节:4月4日(周五)至6日(周日)放假,共3天。
105+
// 四、劳动节:5月1日(周四)至5日(周一)放假调休,共5天。4月27日(周日)上班。
106+
// 五、端午节:5月31日(周六)至6月2日(周一)放假,共3天。
107+
// 六、国庆节、中秋节:10月1日(周三)至8日(周三)放假调休,共8天。9月28日(周日)、10月11日(周六)上班。
108+
ag.yearAt(2025).
109+
nyd().rest(1, 1).
110+
sf().rest(1, 28).to(2, 4).work(1, 26).work(2, 8).inLieu(2, 3).to(2, 4).
111+
tsd().rest(4, 4).to(4, 6).
112+
ld().rest(5, 1).to(5, 5).work(4, 27).inLieu(5, 5).
113+
dbf().rest(5, 31).to(6, 2).
114+
nd().rest(10, 1).to(10, 8).work(9, 28).work(10, 11).inLieu(10, 7).to(10, 8).
115+
maf().rest(10, 6)
116+
}
117+
100118
func (ag *arrangement) Y2024() {
101119
// 一、元旦:1月1日放假,与周末连休。
102120
// 二、春节:2月10日至17日放假调休,共8天。2月4日(星期日)、2月18日(星期日)上班。

0 commit comments

Comments
 (0)