def isoformat(self, sep='T'):
        s = ("%04d-%02d-%02d%c" % (self.__year, self.__month, self.__day,
                                  sep) +
                _format_time(self.__hour, self.__minute, self.__second,
                             self.__microsecond))
        off = self._utcoffset()
        if off is not None:
            if off < 0:
                sign = "-"
                off = -off
            else:
                sign = "+"
            hh, mm = divmod(off, 60)
            s += "%s%02d:%02d" % (sign, hh, mm)
        return s
Convert either `datetime.date or datetime.datetime objects
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/datetime.py/datetime.isoformat--crossover with--dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/to_unix_epoch_time