parameters: (self, source, destination)
return_statement: return yml_time < xml_time or yml_time < self._converter_mtime
docstring: Check if source has already been converted and destination is up-to-date
docstring_summary: Check if source has already been converted and destination is up-to-date
docstring_tokens: Check if source has already been converted and destination is up - to - date
function: def needs_conversion(self, source, destination):
          """Check if source has already been converted and destination is up-to-date"""
          if self._force or not path.exists(destination):
              return True
          xml_time = path.getmtime(source)
          yml_time = path.getmtime(destination)
  
          return yml_time < xml_time or yml_time < self._converter_mtime
function_tokens: def needs_conversion ( self , source , destination ) : if self . _force or not path . exists ( destination ) : return True xml_time = path . getmtime ( source ) yml_time = path . getmtime ( destination ) return yml_time < xml_time or yml_time < self . _converter_mtime