getLatinMonth method
Implementation
String getLatinMonth(DateTime date, {isShort = false}) {
switch (date.month - 1) {
case 0:
return isShort ? "Jan" : "January";
case 1:
return isShort ? "Feb" : "February";
case 2:
return isShort ? "Mar" : "March";
case 3:
return isShort ? "Apr" : "Apirl";
case 4:
return isShort ? "May" : "May";
case 5:
return isShort ? "Jun" : "June";
case 6:
return isShort ? "Jul" : "July";
case 7:
return isShort ? "Aug" : "August";
case 8:
return isShort ? "Sep" : "September";
case 9:
return isShort ? "Oct" : "October";
case 10:
return isShort ? "Nov" : "November";
case 11:
return isShort ? "Dec" : "December";
default:
return "invalid weekday";
}
}