@staticmethod
def __parse_day_text(day_text):
    """ Returns a day index from the text of a day name """
    days_dict = {'Monday': 0, 'Tuesday': 1, 'Wednesday': 2, 'Thursday': 3,
        'Friday': 4, 'Saturday': 5, 'Sunday': 6}
    for day_name in list(days_dict.keys()):
        if day_name.startswith(day_text.capitalize()):
            return days_dict[day_name]
