msgpack/_cmsgpack.pyx
raw| 1 | #cython: embedsignature=True, c_string_encoding=ascii, language_level=3 |
| 2 | #cython: freethreading_compatible = True |
| 3 | import cython |
| 4 | from cpython.datetime cimport import_datetime, datetime_new |
| 5 | import_datetime() |
| 6 | |
| 7 | import datetime |
| 8 | cdef object utc = datetime.timezone.utc |
| 9 | cdef object epoch = datetime_new(1970, 1, 1, 0, 0, 0, 0, tz=utc) |
| 10 | |
| 11 | include "_packer.pyx" |
| 12 | include "_unpacker.pyx" |