| 728 | // because have to check for leap years in the case of February. |
| 729 | |
| 730 | int DayInMonth(int month, int year) |
| 731 | { |
| 732 | int d; |
| 733 | |
| 734 | if (month == mSep || month == mApr || month == mJun || month == mNov) |
| 735 | d = 30; |
| 736 | else if (month != mFeb) |
| 737 | d = 31; |
| 738 | else { |
| 739 | d = 28; |
| 740 | if (year % 4 == 0 && |
| 741 | (year % 100 != 0 || year % 400 == 0 || year <= yeaJ2G)) |
| 742 | d++; |
| 743 | } |
| 744 | return d; |
| 745 | } |
| 746 | |
| 747 | |
| 748 | // Return the actual number of days in a particular month. Normally, this is |
no outgoing calls
no test coverage detected