def isoformat(self, sep='<STR_LIT:T>'):
s = ("<STR_LIT>" % (self._year, self._month, self._day, sep) +<EOL>_format_time(self._hour, self._minute, self._second,<EOL>self._microsecond))<EOL>off = self._utcoffset()<EOL>if off is not None:<EOL><INDENT>if off < <NUM_LIT:0>:<EOL><INDENT>sign = "<STR_LIT:->"<EOL>off = -off<EOL><DEDENT>else:<EOL><INDENT>sign = "<STR_LIT:+>"<EOL><DEDENT>hh, mm = divmod(off, <NUM_LIT>)<EOL>s += "<STR_LIT>" % (sign, hh, mm)<EOL><DEDENT>return s<EOL>
Return the time formatted according to ISO.

        This is 'YYYY-MM-DD HH:MM:SS.mmmmmm', or 'YYYY-MM-DD HH:MM:SS' if
        self.microsecond == 0.

        If self.tzinfo is not None, the UTC offset is also attached, giving
        'YYYY-MM-DD HH:MM:SS.mmmmmm+HH:MM' or 'YYYY-MM-DD HH:MM:SS+HH:MM'.

        Optional argument sep specifies the separator between date and
        time, default 'T'.