import time


def ban_user(username, ban_length_hrs, ban_list):
    """Record username and epoch of ban. Return ban_list with new ban added"""
    ban_list[username] = int(time.time()) + (3600 * ban_length_hrs)
    return ban_list