code: def replace(self, hour=None, minute=None, second=None, microsecond=None,
                  tzinfo=True):
          
          if hour is None:
              hour = self.hour
          if minute is None:
              minute = self.minute
          if second is None:
              second = self.second
          if microsecond is None:
              microsecond = self.microsecond
          if tzinfo is True:
              tzinfo = self.tzinfo
          _check_time_fields(hour, minute, second, microsecond)
          _check_tzinfo_arg(tzinfo)
          return time(hour, minute, second, microsecond, tzinfo)
docs: Return a new time with new values for the specified fields.