code: def formatTime(self, record, datefmt=None):
          
          # The default value of the following argument is defined here so
          # that Sphinx doesn't embed the default value in the generated
          # documentation (because the result is awkward to read).
          datefmt = datefmt or DEFAULT_DATE_FORMAT
          # Replace %f with the value of %(msecs)03d.
          if '%f' in datefmt:
              datefmt = datefmt.replace('%f', '%03d' % record.msecs)
          # Delegate the actual date/time formatting to the base formatter.
          return logging.Formatter.formatTime(self, record, datefmt)
docs: Format the date/time of a log record.
  
          :param record: A :class:`~logging.LogRecord` object.
          :param datefmt: A date/time format string (defaults to :data:`DEFAULT_DATE_FORMAT`).
          :returns: The formatted date/time (a string).
  
          This method overrides :func:`~logging.Formatter.formatTime()` to set
          `datefmt` to :data:`DEFAULT_DATE_FORMAT` when the caller hasn't
          specified a date format.
  
          When `datefmt` contains the token ``%f`` it will be replaced by the
          value of ``%(msecs)03d`` (refer to issue `#45`_ for use cases).