gregorianMonth static method
Implementation
static int gregorianMonth(int month, bool isLeap) {
switch (month) {
case 2:
if (isLeap) {
return 29;
} else {
return 28;
}
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return 31;
default:
return 30;
}
}