summaryrefslogtreecommitdiff
path: root/msgpack/_cmsgpack.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'msgpack/_cmsgpack.pyx')
-rw-r--r--msgpack/_cmsgpack.pyx7
1 files changed, 7 insertions, 0 deletions
diff --git a/msgpack/_cmsgpack.pyx b/msgpack/_cmsgpack.pyx
index 8ebdbf5..1faaac3 100644
--- a/msgpack/_cmsgpack.pyx
+++ b/msgpack/_cmsgpack.pyx
@@ -1,4 +1,11 @@
# coding: utf-8
#cython: embedsignature=True, c_string_encoding=ascii, language_level=3
+from cpython.datetime cimport import_datetime, datetime_new
+import_datetime()
+
+import datetime
+cdef object utc = datetime.timezone.utc
+cdef object epoch = datetime_new(1970, 1, 1, 0, 0, 0, 0, tz=utc)
+
include "_packer.pyx"
include "_unpacker.pyx"