import time


def stamp_to_time(time_stamp):
    """将时间戳转化成普通时间的格式
    :param time_stamp: 时间戳
    :return: 时间戳对应的日期
    """
    stamp = time.localtime(time_stamp)
    local_time = time.strftime("%Y-%m-%d", stamp)

    return local_time