|
a/src/utils/smallut.cpp |
|
b/src/utils/smallut.cpp |
|
... |
|
... |
881 |
return true;
|
881 |
return true;
|
882 |
}
|
882 |
}
|
883 |
int monthdays(int mon, int year)
|
883 |
int monthdays(int mon, int year)
|
884 |
{
|
884 |
{
|
885 |
switch (mon) {
|
885 |
switch (mon) {
|
|
|
886 |
// We are returning a few two many 29 days februaries, no problem
|
886 |
case 2: return (year % 4) == 0 ? 29 : 28;
|
887 |
case 2: return (year % 4) == 0 ? 29 : 28;
|
887 |
case 1:case 3:case 5:case 7: case 8:case 10:case 12: return 31;
|
888 |
case 1:case 3:case 5:case 7: case 8:case 10:case 12: return 31;
|
888 |
default: return 30;
|
889 |
default: return 30;
|
889 |
}
|
890 |
}
|
890 |
}
|
891 |
}
|