'Calculate the current time and season ids.'

def get_time_and_season(self):

    timestamp = gametime.gametime(absolute=True)
    datestamp = datetime.datetime.fromtimestamp(timestamp)
    season = (float(datestamp.month) / MONTHS_PER_YEAR)
    timeslot = (float(datestamp.hour) / HOURS_PER_DAY)
    if (SEASONAL_BOUNDARIES[0] <= season < SEASONAL_BOUNDARIES[1]):
        curr_season = 'spring'
    elif (SEASONAL_BOUNDARIES[1] <= season < SEASONAL_BOUNDARIES[2]):
        curr_season = 'summer'
    elif (SEASONAL_BOUNDARIES[2] <= season < (1.0 + SEASONAL_BOUNDARIES[0])):
        curr_season = 'autumn'
    else:
        curr_season = 'winter'
    if (DAY_BOUNDARIES[0] <= timeslot < DAY_BOUNDARIES[1]):
        curr_timeslot = 'night'
    elif (DAY_BOUNDARIES[1] <= timeslot < DAY_BOUNDARIES[2]):
        curr_timeslot = 'morning'
    elif (DAY_BOUNDARIES[2] <= timeslot < DAY_BOUNDARIES[3]):
        curr_timeslot = 'afternoon'
    else:
        curr_timeslot = 'evening'
    return (curr_season, curr_timeslot)
