def _convert_to_datetime(unix_timestamp):
 try:
  unix_timestamp = float(unix_timestamp)
  return datetime.fromtimestamp(unix_timestamp).strftime('%Y-%m-%d %H:%M:%S')
 except (ValueError, TypeError):
  return 'Invalid Timestamp'

def _convert_to_datetime ( unix_timestamp ) : try : unix_timestamp = float ( unix_timestamp ) return datetime . fromtimestamp ( unix_timestamp ) . strftime ( '%Y-%m-%d %H:%M:%S' ) except ( ValueError , TypeError ) : return 'Invalid Timestamp'
converts a unix timestamp to a human readable date/time .