code: def formatTime(self, record, datefmt=None):
          
          ct = self.converter(record.created)
          if datefmt:
              if datefmt == 'Z':
                  t = time.strftime("%Y-%m-%dT%H:%M:%S", ct)
                  s = "{}.{:03.0f}Z".format(t, record.msecs)
              else:
                  s = time.strftime(datefmt, ct)
          else:
              t = time.strftime(self.default_time_format, ct)
              s = self.default_msec_format % (t, record.msecs)
  
          return s
docs: Return the creation time of the specified LogRecord as formatted text.
  
          If ``datefmt`` (a string) is specified, it is used to format the creation time of the record.
          If ``datefmt`` is 'Z' then creation time of the record will be in Zulu Time Zone.
          Otherwise, the ISO8601 format is used.