def encodeValue(self, value):
        if value:
            value = utils.getDateTime(value)
            # LE byteorder
            _rv = struct.pack("<2I", value.toordinal() + self.JDN_GDN_DIFF,
                (value.hour * 3600 + value.minute * 60 + value.second) * 1000)
        else:
            _rv = "\0" * self.length
        assert len(_rv) == self.length
        return _rv
Create a new XMLRPCTransport.
dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py/DbfDateTimeFieldDef.encodeValue--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/tlslite/integration/XMLRPCTransport.py/XMLRPCTransport.__init__