def datetime_from_timestamp(timestamp):
 dt = (DATETIME_EPOC + datetime.timedelta(seconds=timestamp))
 return dt

def datetime_from_timestamp ( timestamp ) : dt = ( DATETIME_EPOC + datetime . timedelta ( seconds = timestamp ) ) return dt
creates a timezone-agnostic datetime from timestamp in a consistent manner .