def timestamp_to_datetime(timeStamp, localized=True):
    ret = datetime.datetime.utcfromtimestamp(timeStamp)
    if localized:
        ret = localize(ret, pytz.utc)
    return ret
Converts a UTC timestamp to a datetime.datetime.
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/utils/dt.py/timestamp_to_datetime