summaryrefslogtreecommitdiff
path: root/python/qpid/codec010.py
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2008-05-06 16:24:46 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2008-05-06 16:24:46 +0000
commite4a3049c22b36171d204a8f84ddbcbf5accf797f (patch)
treea3d2e6d03311286c868ed9bcf5f3eddc34f6ccb7 /python/qpid/codec010.py
parent28701ccd27595848ca7dceeee651c57f92849830 (diff)
downloadqpid-python-e4a3049c22b36171d204a8f84ddbcbf5accf797f.tar.gz
This is a fix for QPID-1031
I added read/write methods for datetime that calls int64. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@653830 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/codec010.py')
-rw-r--r--python/qpid/codec010.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/qpid/codec010.py b/python/qpid/codec010.py
index 1c76666de1..68573921d7 100644
--- a/python/qpid/codec010.py
+++ b/python/qpid/codec010.py
@@ -102,12 +102,16 @@ class Codec(Packer):
def write_int64(self, n):
self.pack("!q", n)
+ def read_datetime(self):
+ return self.read_uint64()
+ def write_datetime(self, n):
+ self.write_uint64(n)
+
def read_double(self):
return self.unpack("!d")
def write_double(self, d):
self.pack("!d", d)
-
def read_vbin8(self):
return self.read(self.read_uint8())
def write_vbin8(self, b):