• R/O
  • SSH
  • HTTPS

protra: 提交


Commit MetaInfo

修訂551 (tree)
時間2021-02-24 20:46:35
作者darai

Log Message

2021-02-24 darai <darai@users.sourceforge.jp>

#41090: 2021年の祝日対応

* Protra.Lib/Calendar.cs (Calendar.IsHoliday): 2021年の祝日対応。

Change Summary

差異

--- protra/trunk/ChangeLog.txt (revision 550)
+++ protra/trunk/ChangeLog.txt (revision 551)
@@ -1,3 +1,9 @@
1+2021-02-24 darai <darai@users.sourceforge.jp>
2+
3+ #41090: 2021年の祝日対応
4+
5+ * Protra.Lib/Calendar.cs (Calendar.IsHoliday): 2021年の祝日対応。
6+
17 2021-01-10 darai <darai@users.sourceforge.jp>
28
39 #41025: バイナリデータ読み込み速度向上案
--- protra/trunk/Protra.Lib/Calendar.cs (revision 550)
+++ protra/trunk/Protra.Lib/Calendar.cs (revision 551)
@@ -68,8 +68,13 @@
6868 )
6969 return true;
7070 // 山の日
71- if (d.Year == 2020)
71+ if (d.Year == 2021)
7272 {
73+ if (d.Month == 8 && d.Day == 8)
74+ return true;
75+ }
76+ else if (d.Year == 2020)
77+ {
7378 if (d.Month == 8 && d.Day == 10)
7479 return true;
7580 }
@@ -113,8 +118,13 @@
113118 if (d.Month == 1 && (d.Day >= 8 && d.Day <= 14) && d.DayOfWeek == DayOfWeek.Monday)
114119 return true;
115120 // スポーツの日
116- if (d.Year == 2020)
121+ if (d.Year == 2021)
117122 {
123+ if (d.Month == 7 && d.Day == 23)
124+ return true;
125+ }
126+ else if (d.Year == 2020)
127+ {
118128 if (d.Month == 7 && d.Day == 24)
119129 return true;
120130 }
@@ -130,8 +140,13 @@
130140 else
131141 {
132142 // 海の日
133- if (d.Year == 2020)
143+ if (d.Year == 2021)
134144 {
145+ if (d.Month == 7 && d.Day == 22)
146+ return true;
147+ }
148+ else if (d.Year == 2020)
149+ {
135150 if (d.Month == 7 && d.Day == 23)
136151 return true;
137152 }
Show on old repository browser