in bistro/cron/StandardCrontabItem.cpp [48:75]
int64_t parseMonthName(const string& s) {
if (s == "jan" || s == "january") {
return 1;
} else if (s == "feb" || s == "february") {
return 2;
} else if (s == "mar" || s == "march") {
return 3;
} else if (s == "apr" || s == "april") {
return 4;
} else if (s == "may") {
return 5;
} else if (s == "jun" || s == "june") {
return 6;
} else if (s == "jul" || s == "july") {
return 7;
} else if (s == "aug" || s == "august") {
return 8;
} else if (s == "sep" || s == "september") {
return 9;
} else if (s == "oct" || s == "october") {
return 10;
} else if (s == "nov" || s == "november") {
return 11;
} else if (s == "dec" || s == "december") {
return 12;
}
throw std::runtime_error("Unknown month: " + s);
}