

def encodeValue(self, value):
    'Return a string-encoded ``value``.'
    if value:
        value = utils.getDateTime(value)
        _rv = struct.pack('<2I', (value.toordinal() + self.JDN_GDN_DIFF), ((((value.hour * 3600) + (value.minute * 60)) + value.second) * 1000))
    else:
        _rv = ('\x00' * self.length)
    assert (len(_rv) == self.length)
    return value

dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py DbfDateTimeFieldDef.encodeValue/VarMisuse@106/140 `_rv`->`value`