          'invalid': _('Time has wrong format. Use one of these formats instead: {format}.'),
      }
      format = api_settings.TIME_FORMAT
      input_formats = api_settings.TIME_INPUT_FORMATS
  
      def __init__(self, format=empty, input_formats=None, *args, **kwargs):
          self.format = format if format is not empty else self.format
          self.input_formats = input_formats if input_formats is not None else self.input_formats
          super(TimeField, self).__init__(*args, **kwargs)
 
</s> remove                     parsed = datetime.datetime.strptime(value, format)
 </s> add                     parsed = self.datetime_parser(value, format) </s> remove                     parsed = datetime.datetime.strptime(value, format)
 </s> add                     parsed = self.datetime_parser(value, format)
    datetime_parser = datetime.datetime.strptime
          'invalid': _('Time has wrong format. Use one of these formats instead: {format}.'),
      }
      format = api_settings.TIME_FORMAT
      input_formats = api_settings.TIME_INPUT_FORMATS
    datetime_parser = datetime.datetime.strptime
  
      def __init__(self, format=empty, input_formats=None, *args, **kwargs):
          self.format = format if format is not empty else self.format
          self.input_formats = input_formats if input_formats is not None else self.input_formats
          super(TimeField, self).__init__(*args, **kwargs)
keep keep keep add keep keep keep keep keep
 Introduce datetime_parser as class level attribute on all date/time fields. Refs #3093. 
rest_framework/fields.py