code: def convertTime(self, time):
          
          # if ':00', ignore reporting minutes
          m_format = ""
          if time.minute:
              m_format = ":%M"
  
          timeString = time.strftime("%I" + m_format + " %p")
  
          # if '07:30', cast to '7:30'
          if not int(timeString[0]):
              timeString = timeString[1:]
  
          return timeString
docs: Convert a datetime object representing a time into a human-ready
          string that can be read, spoken aloud, etc.
  
          Args:
              time (datetime.date): A datetime object to be converted into text.
  
          Returns:
              A string representation of the input time, ignoring any day-related
              information.