def date_format(self, dt, format=None):
        if format is None:
            format = self.default['format']

        # 'iso', 'iso:T'
        if format.startswith("iso"):
            sep = 'T'
            if len(format) == 5 and format[3] == ':':
                sep = str(format[-1])  # convert from unicode (ST2)
            # Set microseconds to 0 because they are practically useless and only add noise
            dt = dt.replace(microsecond=0)
            return dt.isoformat(sep)

        return dt.strftime(format)
Get decoded stdout log.
dataset/ETHPy150Open FichteFoll/InsertDate/format_date/__init__.py/FormatDate.date_format--crossover with--dataset/ETHPy150Open catkin/catkin_tools/catkin_tools/execution/io.py/IOBufferContainer.get_stdout_log