code: def clean_time(self, time):
          
          if isinstance(time, int):
              time = datetime.utcfromtimestamp(time)
          elif isinstance(time, str):
              time = parser.parse(time)
  
          return time
docs: Transform time field to datetime object if there is any.