def METHOD_NAME(timestamp: 'datetime.datetime') -> float:
  """
  Converts a utc datetime object to a unix timestamp.
  .. versionadded:: 1.5.0
  :param timestamp: timestamp to be converted
  :returns: **float** for the unix timestamp of the given datetime object
  """
  return (timestamp - datetime.datetime(1970, 1, 1)).total_seconds()