def timestamp_utc(value):
 try:
  return dt_util.utc_from_timestamp(value).strftime(DATE_STR_FORMAT)
 except (ValueError, TypeError):
  return value

def timestamp_utc ( value ) : try : return dt_util . utc_from_timestamp ( value ) . strftime ( DATE_STR_FORMAT ) except ( ValueError , TypeError ) : return value
filter to convert given timestamp to utc date/time .