Skip to content

Commit

Permalink
Support year 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
bastengao committed Nov 8, 2023
1 parent 3f75092 commit 84ebeb7
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ end

## 支持

* [支持 2024 年](https://www.gov.cn/zhengce/content/202310/content_6911527.htm)
* [支持 2023 年](http://www.gov.cn/zhengce/content/2022-12/08/content_5730844.htm)
* [支持 2022 年](http://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm)
* [支持 2021 年](http://www.gov.cn/zhengce/content/2020-11/25/content_5564127.htm)
Expand Down
77 changes: 77 additions & 0 deletions lib/chinese/holidays/data/2024.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[
{
"name": "元旦",
"range": ["2023-12-30", "2024-01-01"],
"type": "holiday"
},
{
"name": "春节",
"range": ["2024-02-04"],
"type": "workingday"
},
{
"name": "春节",
"range": ["2024-02-10", "2024-02-17"],
"type": "holiday"
},
{
"name": "春节",
"range": ["2024-02-18"],
"type": "workingday"
},
{
"name": "清明节",
"range": ["2024-04-04", "2024-04-06"],
"type": "holiday"
},
{
"name": "清明节",
"range": ["2024-04-07"],
"type": "workingday"
},
{
"name": "劳动节",
"range": ["2024-04-28"],
"type": "workingday"
},
{
"name": "劳动节",
"range": ["2024-05-01", "2024-05-05"],
"type": "holiday"
},
{
"name": "劳动节",
"range": ["2024-05-11"],
"type": "workingday"
},
{
"name": "端午节",
"range": ["2024-06-08", "2024-06-10"],
"type": "holiday"
},
{
"name": "中秋节",
"range": ["2024-09-14"],
"type": "workingday"
},
{
"name": "中秋节",
"range": ["2024-09-15", "2024-09-17"],
"type": "holiday"
},
{
"name": "国庆节",
"range": ["2024-09-29"],
"type": "workingday"
},
{
"name": "国庆节",
"range": ["2024-10-01", "2024-10-07"],
"type": "holiday"
},
{
"name": "国庆节",
"range": ["2024-10-12"],
"type": "workingday"
}
]
2 changes: 1 addition & 1 deletion lib/chinese/holidays/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Chinese
module Holidays
VERSION = "0.8.0"
VERSION = "0.9.0"
end
end

0 comments on commit 84ebeb7

Please sign in to comment.