import time


def get_date_keys(timestamp):
    """Generates redis keysnames for timestamp"""
    note_time = time.gmtime(timestamp)
    return [
        "year_%s" % note_time.tm_year,
        "month_%s" % note_time.tm_mon,
        "day_%s" % note_time.tm_mday,
        "hour_%s" % note_time.tm_hour,
        "weekday_%s" % note_time.tm_wday,
    ]