summaryrefslogtreecommitdiff
path: root/msgpack/_packer.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'msgpack/_packer.pyx')
-rw-r--r--msgpack/_packer.pyx8
1 files changed, 7 insertions, 1 deletions
diff --git a/msgpack/_packer.pyx b/msgpack/_packer.pyx
index b470646..e6cd2c7 100644
--- a/msgpack/_packer.pyx
+++ b/msgpack/_packer.pyx
@@ -63,7 +63,7 @@ cdef class Packer(object):
"""
MessagePack Packer
- usage::
+ Usage::
packer = Packer()
astream.write(packer.pack(a))
@@ -94,6 +94,12 @@ cdef class Packer(object):
This is useful when trying to implement accurate serialization
for python types.
+ :param bool datetime:
+ If set to true, datetime with tzinfo is packed into Timestamp type.
+ Note that the tzinfo is stripped in the timestamp.
+ You can get UTC datetime with `timestamp=3` option of the Unpacker.
+ (Python 2 is not supported).
+
:param str unicode_errors:
The error handler for encoding unicode. (default: 'strict')
DO NOT USE THIS!! This option is kept for very specific usage.