def get_daytime(time, response):
    """
    :param time: timestamp in unix seconds
    :param response: response from weather api
    :return: str day/evening-morning/night
    """
    if response['sys']['sunrise'] < time <= response['sys']['sunset'] - 3600:
        return 'day'
    elif response['sys']['sunrise'] - 3600 < time < response['sys']['sunrise'] + 3600 or \
            response['sys']['sunset'] - 3600 < time < response['sys']['sunset'] + 3600:
        return 'evening-morning'
    else:
        return 'night'