code: def to_datetime(data):
      
      my_date_time = None
  
      if 'published_parsed' in data:
          my_date_time = datetime.datetime.utcfromtimestamp(time.mktime(data.get('published_parsed')))
      elif 'created_parsed' in data:
          my_date_time = datetime.datetime.utcfromtimestamp(time.mktime(data.get('created_parsed')))
      elif 'updated_parsed' in data:
          my_date_time = datetime.datetime.utcfromtimestamp(time.mktime(data.get('updated_parsed')))
      elif 'my_date' in data:
          my_date_time = arrow.get(data['my_date'])
  
      return my_date_time
docs: convert Datetime 9-tuple to the date and time format
          feedparser provides this 9-tuple
          :param data: data to be checked
          :type data: dict