/* Generated by Cython 3.0.10 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "define_macros": [
            [
                "NPY_NO_DEPRECATED_API",
                "NPY_1_7_API_VERSION"
            ]
        ],
        "depends": [
            "/tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/_core/include/numpy/arrayobject.h",
            "/tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/_core/include/numpy/arrayscalars.h",
            "/tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/_core/include/numpy/ndarrayobject.h",
            "/tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/_core/include/numpy/ndarraytypes.h",
            "/tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/_core/include/numpy/ufuncobject.h"
        ],
        "extra_compile_args": [
            "-Wno-unreachable-code"
        ],
        "include_dirs": [
            "/tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/_core/include"
        ],
        "name": "cytimes.pddatetime",
        "sources": [
            "src/cytimes/pddatetime.py"
        ]
    },
    "module_name": "cytimes.pddatetime"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
#if defined(CYTHON_LIMITED_API) && 0
  #ifndef Py_LIMITED_API
    #if CYTHON_LIMITED_API+0 > 0x03030000
      #define Py_LIMITED_API CYTHON_LIMITED_API
    #else
      #define Py_LIMITED_API 0x03030000
    #endif
  #endif
#endif

#include "Python.h"

    #if PY_MAJOR_VERSION >= 3
      #define __Pyx_PyFloat_FromString(obj)  PyFloat_FromString(obj)
    #else
      #define __Pyx_PyFloat_FromString(obj)  PyFloat_FromString(obj, NULL)
    #endif
    

    #if PY_MAJOR_VERSION <= 2
    #define PyDict_GetItemWithError _PyDict_GetItemWithError
    #endif
    

    #if (PY_VERSION_HEX < 0x030700b1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030600)) && !defined(PyContextVar_Get)
    #define PyContextVar_Get(var, d, v)         ((d) ?             ((void)(var), Py_INCREF(d), (v)[0] = (d), 0) :             ((v)[0] = NULL, 0)         )
    #endif
    
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02070000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.7+ or Python 3.3+.
#else
#if defined(CYTHON_LIMITED_API) && CYTHON_LIMITED_API
#define __PYX_EXTRA_ABI_MODULE_NAME "limited"
#else
#define __PYX_EXTRA_ABI_MODULE_NAME ""
#endif
#define CYTHON_ABI "3_0_10" __PYX_EXTRA_ABI_MODULE_NAME
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."
#define CYTHON_HEX_VERSION 0x03000AF0
#define CYTHON_FUTURE_DIVISION 1
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef HAVE_LONG_LONG
  #define HAVE_LONG_LONG
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_NOGIL 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS (PY_MAJOR_VERSION >= 3)
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_NOGIL 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS (PY_MAJOR_VERSION >= 3)
  #endif
  #if PY_VERSION_HEX < 0x03090000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00)
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
#elif defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_NOGIL 0
  #undef CYTHON_CLINE_IN_TRACEBACK
  #define CYTHON_CLINE_IN_TRACEBACK 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 1
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
#elif defined(Py_GIL_DISABLED) || defined(Py_NOGIL)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_NOGIL 1
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #ifndef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 0
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL 1
  #endif
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS 0
  #endif
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_NOGIL 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #if PY_MAJOR_VERSION < 3
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #ifndef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL (PY_MAJOR_VERSION < 3 || PY_VERSION_HEX >= 0x03060000 && PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL (PY_VERSION_HEX >= 0x030700A1)
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #if PY_VERSION_HEX < 0x030400a1
    #undef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #elif !defined(CYTHON_USE_TP_FINALIZE)
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #if PY_VERSION_HEX < 0x030600B1
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5)
  #endif
  #if PY_VERSION_HEX < 0x030700A3
    #undef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 0
  #elif !defined(CYTHON_USE_EXC_INFO_STACK)
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS 1
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if !defined(CYTHON_VECTORCALL)
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL && PY_VERSION_HEX >= 0x030800B1)
#endif
#define CYTHON_BACKPORT_VECTORCALL (CYTHON_METH_FASTCALL && PY_VERSION_HEX < 0x030800B1)
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_MAJOR_VERSION < 3
    #include "longintrepr.h"
  #endif
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifdef _MSC_VER
    #ifndef _MSC_STDINT_H_
        #if _MSC_VER < 1300
            typedef unsigned char     uint8_t;
            typedef unsigned short    uint16_t;
            typedef unsigned int      uint32_t;
        #else
            typedef unsigned __int8   uint8_t;
            typedef unsigned __int16  uint16_t;
            typedef unsigned __int32  uint32_t;
        #endif
    #endif
    #if _MSC_VER < 1300
        #ifdef _WIN64
            typedef unsigned long long  __pyx_uintptr_t;
        #else
            typedef unsigned int        __pyx_uintptr_t;
        #endif
    #else
        #ifdef _WIN64
            typedef unsigned __int64    __pyx_uintptr_t;
        #else
            typedef unsigned __int32    __pyx_uintptr_t;
        #endif
    #endif
#else
    #include <stdint.h>
    typedef uintptr_t  __pyx_uintptr_t;
#endif
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000)
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))

#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_DefaultClassType PyClass_Type
  #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    static CYTHON_INLINE PyObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f,
                                                    PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                                    PyObject *fv, PyObject *cell, PyObject* fn,
                                                    PyObject *name, int fline, PyObject *lnos) {
        PyObject *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030B0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        #if __PYX_LIMITED_VERSION_HEX >= 0x030B0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 7) {
            (void)p;
            result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOO", a, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return result;
    }
    #ifndef CO_OPTIMIZED
    #define CO_OPTIMIZED 0x0001
    #endif
    #ifndef CO_NEWLOCALS
    #define CO_NEWLOCALS 0x0002
    #endif
    #ifndef CO_VARARGS
    #define CO_VARARGS 0x0004
    #endif
    #ifndef CO_VARKEYWORDS
    #define CO_VARKEYWORDS 0x0008
    #endif
    #ifndef CO_ASYNC_GENERATOR
    #define CO_ASYNC_GENERATOR 0x0200
    #endif
    #ifndef CO_GENERATOR
    #define CO_GENERATOR 0x0020
    #endif
    #ifndef CO_COROUTINE
    #define CO_COROUTINE 0x0080
    #endif
#elif PY_VERSION_HEX >= 0x030B0000
  static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f,
                                                    PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                                    PyObject *fv, PyObject *cell, PyObject* fn,
                                                    PyObject *name, int fline, PyObject *lnos) {
    PyCodeObject *result;
    PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0);
    if (!empty_bytes) return NULL;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, empty_bytes);
    Py_DECREF(empty_bytes);
    return result;
  }
#elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
#endif
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#endif
#ifndef CO_COROUTINE
  #define CO_COROUTINE 0x80
#endif
#ifndef CO_ASYNC_GENERATOR
  #define CO_ASYNC_GENERATOR 0x200
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE 0
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING 0
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#elif CYTHON_BACKPORT_VECTORCALL
  typedef PyObject *(*__pyx_vectorcallfunc)(PyObject *callable, PyObject *const *args,
                                            size_t nargsf, PyObject *kwnames);
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  ((size_t)1 << (8 * sizeof(size_t) - 1))
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(((size_t)(n)) & ~__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#if PY_MAJOR_VERSION >= 0x030900B1
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_CheckExact(func)
#else
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_Check(func)
#endif
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void *cfunc) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if __PYX_LIMITED_VERSION_HEX < 0x030900B1
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#elif PY_VERSION_HEX >= 0x03060000
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#elif PY_VERSION_HEX >= 0x03000000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_Current
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE void *__Pyx_PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE(obj), name, func_ctype)
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
#endif
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
#include "pythread.h"
#define Py_tss_NEEDS_INIT 0
typedef int Py_tss_t;
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
  *key = PyThread_create_key();
  return 0;
}
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
  *key = Py_tss_NEEDS_INIT;
  return key;
}
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
  PyObject_Free(key);
}
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
  return *key != Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
  PyThread_delete_key(*key);
  *key = Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
  return PyThread_set_key_value(*key, value);
}
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
  return PyThread_get_key_value(*key);
}
#endif
#if PY_MAJOR_VERSION < 3
    #if CYTHON_COMPILING_IN_PYPY
        #if PYPY_VERSION_NUM < 0x07030600
            #if defined(__cplusplus) && __cplusplus >= 201402L
                [[deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")]]
            #elif defined(__GNUC__) || defined(__clang__)
                __attribute__ ((__deprecated__("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")))
            #elif defined(_MSC_VER)
                __declspec(deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6"))
            #endif
            static CYTHON_INLINE int PyGILState_Check(void) {
                return 0;
            }
        #else  // PYPY_VERSION_NUM < 0x07030600
        #endif  // PYPY_VERSION_NUM < 0x07030600
    #else
        static CYTHON_INLINE int PyGILState_Check(void) {
            PyThreadState * tstate = _PyThreadState_Current;
            return tstate && (tstate == PyGILState_GetThisThreadState());
        }
    #endif
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000 || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B4 && PY_VERSION_HEX < 0x030d0000 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif PY_MAJOR_VERSION >= 3 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000)
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
  #define __Pyx_PyObject_GetIterNextFunc(obj)  (Py_TYPE(obj)->tp_iternext)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
  #define __Pyx_PyObject_GetIterNextFunc(obj)  PyIter_Next
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_SetItemOnTypeDict(tp, k, v) PyObject_GenericSetAttr((PyObject*)tp, k, v)
#else
  #define __Pyx_SetItemOnTypeDict(tp, k, v) PyDict_SetItem(tp->tp_dict, k, v)
#endif
#if CYTHON_USE_TYPE_SPECS && PY_VERSION_HEX >= 0x03080000
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GetLength(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#elif PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         ((int)PyUnicode_KIND(u))
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
#else
  #define CYTHON_PEP393_ENABLED 0
  #define PyUnicode_1BYTE_KIND  1
  #define PyUnicode_2BYTE_KIND  2
  #define PyUnicode_4BYTE_KIND  4
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535U : 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((int)sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = (Py_UNICODE) ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains) || (PY_MAJOR_VERSION == 2 && PYPY_VERSION_NUM < 0x07030500)
    #undef PyUnicode_Contains
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#ifndef PyObject_Unicode
  #define PyObject_Unicode             PyObject_Str
#endif
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#if CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_TYPE(obj, &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#else
  static CYTHON_INLINE PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define __Pyx_Py3Int_Check(op)       PyLong_Check(op)
  #define __Pyx_Py3Int_CheckExact(op)  PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#else
  #define __Pyx_Py3Int_Check(op)       (PyLong_Check(op) || PyInt_Check(op))
  #define __Pyx_Py3Int_CheckExact(op)  (PyLong_CheckExact(op) || PyInt_CheckExact(op))
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   __Pyx_PyIndex_AsHash_t
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   __Pyx_PyIndex_AsSsize_t
#endif
#if CYTHON_USE_ASYNC_SLOTS
  #if PY_VERSION_HEX >= 0x030500B1
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
  #else
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
  #endif
#else
  #define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef __Pyx_PyAsyncMethodsStruct
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
    } __Pyx_PyAsyncMethodsStruct;
#endif

#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #if !defined(_USE_MATH_DEFINES)
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#define __PYX_MARK_ERR_POS(f_index, lineno) \
    { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__;  (void)__pyx_clineno; }
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__cytimes__pddatetime
#define __PYX_HAVE_API__cytimes__pddatetime
/* Early includes */
#include <string.h>
#include <stdio.h>

    /* Using NumPy API declarations from "numpy/__init__.cython-30.pxd" */
    
#include "numpy/arrayobject.h"
#include "numpy/ndarrayobject.h"
#include "numpy/ndarraytypes.h"
#include "numpy/arrayscalars.h"
#include "numpy/ufuncobject.h"
#include <stddef.h>
#include "pythread.h"
#include "datetime.h"

    /* Backport for Python 2.x */
    #if PY_MAJOR_VERSION < 3
        #ifndef PyDateTime_DELTA_GET_DAYS
            #define PyDateTime_DELTA_GET_DAYS(o) (((PyDateTime_Delta*)o)->days)
        #endif
        #ifndef PyDateTime_DELTA_GET_SECONDS
            #define PyDateTime_DELTA_GET_SECONDS(o) (((PyDateTime_Delta*)o)->seconds)
        #endif
        #ifndef PyDateTime_DELTA_GET_MICROSECONDS
            #define PyDateTime_DELTA_GET_MICROSECONDS(o) (((PyDateTime_Delta*)o)->microseconds)
        #endif
    #endif

    /* Backport for Python < 3.6 */
    #if PY_VERSION_HEX < 0x030600a4
        #ifndef PyDateTime_TIME_GET_FOLD
            #define PyDateTime_TIME_GET_FOLD(o) ((void)(o), 0)
        #endif
        #ifndef PyDateTime_DATE_GET_FOLD
            #define PyDateTime_DATE_GET_FOLD(o) ((void)(o), 0)
        #endif
    #endif

    /* Backport for Python < 3.6 */
    #if PY_VERSION_HEX < 0x030600a4
        #define __Pyx_DateTime_DateTimeWithFold(year, month, day, hour, minute, second, microsecond, tz, fold)             ((void)(fold), PyDateTimeAPI->DateTime_FromDateAndTime(year, month, day, hour, minute, second,                 microsecond, tz, PyDateTimeAPI->DateTimeType))
        #define __Pyx_DateTime_TimeWithFold(hour, minute, second, microsecond, tz, fold)             ((void)(fold), PyDateTimeAPI->Time_FromTime(hour, minute, second, microsecond, tz, PyDateTimeAPI->TimeType))
    #else /* For Python 3.6+ so that we can pass tz */
        #define __Pyx_DateTime_DateTimeWithFold(year, month, day, hour, minute, second, microsecond, tz, fold)             PyDateTimeAPI->DateTime_FromDateAndTimeAndFold(year, month, day, hour, minute, second,                 microsecond, tz, fold, PyDateTimeAPI->DateTimeType)
        #define __Pyx_DateTime_TimeWithFold(hour, minute, second, microsecond, tz, fold)             PyDateTimeAPI->Time_FromTimeAndFold(hour, minute, second, microsecond, tz, fold, PyDateTimeAPI->TimeType)
    #endif

    /* Backport for Python < 3.7 */
    #if PY_VERSION_HEX < 0x030700b1
        #define __Pyx_TimeZone_UTC NULL
        #define __Pyx_TimeZone_FromOffsetAndName(offset, name) ((void)(offset), (void)(name), (PyObject*)NULL)
    #else
        #define __Pyx_TimeZone_UTC PyDateTime_TimeZone_UTC
        #define __Pyx_TimeZone_FromOffsetAndName(offset, name) PyTimeZone_FromOffsetAndName(offset, name)
    #endif

    /* Backport for Python < 3.10 */
    #if PY_VERSION_HEX < 0x030a00a1
        #ifndef PyDateTime_TIME_GET_TZINFO
            #define PyDateTime_TIME_GET_TZINFO(o)                 ((((PyDateTime_Time*)o)->hastzinfo) ? ((PyDateTime_Time*)o)->tzinfo : Py_None)
        #endif
        #ifndef PyDateTime_DATE_GET_TZINFO
            #define PyDateTime_DATE_GET_TZINFO(o)                 ((((PyDateTime_DateTime*)o)->hastzinfo) ? ((PyDateTime_DateTime*)o)->tzinfo : Py_None)
        #endif
    #endif
    
#include <math.h>
#include <stdlib.h>
#include <time.h>
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_Sign(x)  (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_Sign(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_Sign(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_Sign(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
#endif
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
#include <string.h>
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = (char) c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
#include <string.h>
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }

#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* Header.proto */
#if !defined(CYTHON_CCOMPLEX)
  #if defined(__cplusplus)
    #define CYTHON_CCOMPLEX 1
  #elif (defined(_Complex_I) && !defined(_MSC_VER)) || ((defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_COMPLEX__) && !defined(_MSC_VER))
    #define CYTHON_CCOMPLEX 1
  #else
    #define CYTHON_CCOMPLEX 0
  #endif
#endif
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    #include <complex>
  #else
    #include <complex.h>
  #endif
#endif
#if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
  #undef _Complex_I
  #define _Complex_I 1.0fj
#endif

/* #### Code section: filename_table ### */

static const char *__pyx_f[] = {
  "src/cytimes/pddatetime.py",
  "__init__.cython-30.pxd",
  "contextvars.pxd",
  "datetime.pxd",
  "src/cytimes/cyparser.pxd",
  "src/cytimes/pddatetime.pxd",
  "src/cytimes/cydatetime.pxd",
  "src/cytimes/pydatetime.pxd",
  "<stringsource>",
  "type.pxd",
  "bool.pxd",
  "complex.pxd",
  "src/cytimes/cydelta.pxd",
};
/* #### Code section: utility_code_proto_before_types ### */
/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif

/* NoFastGil.proto */
#define __Pyx_PyGILState_Ensure PyGILState_Ensure
#define __Pyx_PyGILState_Release PyGILState_Release
#define __Pyx_FastGIL_Remember()
#define __Pyx_FastGIL_Forget()
#define __Pyx_FastGilFuncInit()

/* #### Code section: numeric_typedefs ### */

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":770
 * # in Cython to enable them only on the right systems.
 * 
 * ctypedef npy_int8       int8_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t
 */
typedef npy_int8 __pyx_t_5numpy_int8_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":771
 * 
 * ctypedef npy_int8       int8_t
 * ctypedef npy_int16      int16_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int32      int32_t
 * ctypedef npy_int64      int64_t
 */
typedef npy_int16 __pyx_t_5numpy_int16_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":772
 * ctypedef npy_int8       int8_t
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int64      int64_t
 * #ctypedef npy_int96      int96_t
 */
typedef npy_int32 __pyx_t_5numpy_int32_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":773
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t
 * ctypedef npy_int64      int64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_int96      int96_t
 * #ctypedef npy_int128     int128_t
 */
typedef npy_int64 __pyx_t_5numpy_int64_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":777
 * #ctypedef npy_int128     int128_t
 * 
 * ctypedef npy_uint8      uint8_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t
 */
typedef npy_uint8 __pyx_t_5numpy_uint8_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":778
 * 
 * ctypedef npy_uint8      uint8_t
 * ctypedef npy_uint16     uint16_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint32     uint32_t
 * ctypedef npy_uint64     uint64_t
 */
typedef npy_uint16 __pyx_t_5numpy_uint16_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":779
 * ctypedef npy_uint8      uint8_t
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint64     uint64_t
 * #ctypedef npy_uint96     uint96_t
 */
typedef npy_uint32 __pyx_t_5numpy_uint32_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":780
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t
 * ctypedef npy_uint64     uint64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_uint96     uint96_t
 * #ctypedef npy_uint128    uint128_t
 */
typedef npy_uint64 __pyx_t_5numpy_uint64_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":784
 * #ctypedef npy_uint128    uint128_t
 * 
 * ctypedef npy_float32    float32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_float64    float64_t
 * #ctypedef npy_float80    float80_t
 */
typedef npy_float32 __pyx_t_5numpy_float32_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":785
 * 
 * ctypedef npy_float32    float32_t
 * ctypedef npy_float64    float64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_float80    float80_t
 * #ctypedef npy_float128   float128_t
 */
typedef npy_float64 __pyx_t_5numpy_float64_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":792
 * ctypedef double complex complex128_t
 * 
 * ctypedef npy_longlong   longlong_t             # <<<<<<<<<<<<<<
 * ctypedef npy_ulonglong  ulonglong_t
 * 
 */
typedef npy_longlong __pyx_t_5numpy_longlong_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":793
 * 
 * ctypedef npy_longlong   longlong_t
 * ctypedef npy_ulonglong  ulonglong_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_intp       intp_t
 */
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":795
 * ctypedef npy_ulonglong  ulonglong_t
 * 
 * ctypedef npy_intp       intp_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uintp      uintp_t
 * 
 */
typedef npy_intp __pyx_t_5numpy_intp_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":796
 * 
 * ctypedef npy_intp       intp_t
 * ctypedef npy_uintp      uintp_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_double     float_t
 */
typedef npy_uintp __pyx_t_5numpy_uintp_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":798
 * ctypedef npy_uintp      uintp_t
 * 
 * ctypedef npy_double     float_t             # <<<<<<<<<<<<<<
 * ctypedef npy_double     double_t
 * ctypedef npy_longdouble longdouble_t
 */
typedef npy_double __pyx_t_5numpy_float_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":799
 * 
 * ctypedef npy_double     float_t
 * ctypedef npy_double     double_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longdouble longdouble_t
 * 
 */
typedef npy_double __pyx_t_5numpy_double_t;

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":800
 * ctypedef npy_double     float_t
 * ctypedef npy_double     double_t
 * ctypedef npy_longdouble longdouble_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef float complex       cfloat_t
 */
typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
/* #### Code section: complex_type_declarations ### */
/* Declarations.proto */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
  #ifdef __cplusplus
    typedef ::std::complex< float > __pyx_t_float_complex;
  #else
    typedef float _Complex __pyx_t_float_complex;
  #endif
#else
    typedef struct { float real, imag; } __pyx_t_float_complex;
#endif
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float);

/* Declarations.proto */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
  #ifdef __cplusplus
    typedef ::std::complex< double > __pyx_t_double_complex;
  #else
    typedef double _Complex __pyx_t_double_complex;
  #endif
#else
    typedef struct { double real, imag; } __pyx_t_double_complex;
#endif
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);

/* Declarations.proto */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
  #ifdef __cplusplus
    typedef ::std::complex< long double > __pyx_t_long_double_complex;
  #else
    typedef long double _Complex __pyx_t_long_double_complex;
  #endif
#else
    typedef struct { long double real, imag; } __pyx_t_long_double_complex;
#endif
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double, long double);

/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_obj_7cytimes_8cyparser_Result;
struct __pyx_obj_7cytimes_8cyparser_Config;
struct __pyx_obj_7cytimes_8cyparser_Parser;
struct __pyx_obj_7cytimes_7cydelta_cytimedelta;
struct __pyx_obj_7cytimes_10pydatetime_pydt;
struct __pyx_obj_7cytimes_10pddatetime_pddt;
struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace;
struct __pyx_opt_args_7cpython_11contextvars_get_value;
struct __pyx_opt_args_7cpython_11contextvars_get_value_no_default;

/* "cpython/contextvars.pxd":112
 * 
 * 
 * cdef inline object get_value(var, default_value=None):             # <<<<<<<<<<<<<<
 *     """Return a new reference to the value of the context variable,
 *     or the default value of the context variable,
 */
struct __pyx_opt_args_7cpython_11contextvars_get_value {
  int __pyx_n;
  PyObject *default_value;
};

/* "cpython/contextvars.pxd":129
 * 
 * 
 * cdef inline object get_value_no_default(var, default_value=None):             # <<<<<<<<<<<<<<
 *     """Return a new reference to the value of the context variable,
 *     or the provided default value if no such value was found.
 */
struct __pyx_opt_args_7cpython_11contextvars_get_value_no_default {
  int __pyx_n;
  PyObject *default_value;
};

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1096
 * 
 * # Iterator API added in v1.6
 * ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil             # <<<<<<<<<<<<<<
 * ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil
 * 
 */
typedef int (*__pyx_t_5numpy_NpyIter_IterNextFunc)(NpyIter *);

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1097
 * # Iterator API added in v1.6
 * ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil
 * ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "numpy/arrayobject.h":
 */
typedef void (*__pyx_t_5numpy_NpyIter_GetMultiIndexFunc)(NpyIter *, npy_intp *);
struct __pyx_opt_args_7cpython_8datetime_time_new;
struct __pyx_opt_args_7cpython_8datetime_datetime_new;
struct __pyx_opt_args_7cpython_8datetime_timezone_new;
struct __pyx_opt_args_7cpython_8datetime_datetime_from_timestamp;

/* "datetime.pxd":292
 * # Create time object using DateTime CAPI factory function
 * # Note, there are no range checks for any of the arguments.
 * cdef inline time time_new(int hour, int minute, int second, int microsecond, object tz, int fold=0):             # <<<<<<<<<<<<<<
 *     return __Pyx_DateTime_TimeWithFold(hour, minute, second, microsecond, tz, fold)
 * 
 */
struct __pyx_opt_args_7cpython_8datetime_time_new {
  int __pyx_n;
  int fold;
};

/* "datetime.pxd":297
 * # Create datetime object using DateTime CAPI factory function.
 * # Note, there are no range checks for any of the arguments.
 * cdef inline datetime datetime_new(int year, int month, int day, int hour, int minute, int second, int microsecond, object tz, int fold=0):             # <<<<<<<<<<<<<<
 *     return __Pyx_DateTime_DateTimeWithFold(year, month, day, hour, minute, second, microsecond, tz, fold)
 * 
 */
struct __pyx_opt_args_7cpython_8datetime_datetime_new {
  int __pyx_n;
  int fold;
};

/* "datetime.pxd":306
 * 
 * # Create timedelta object using DateTime CAPI factory function.
 * cdef inline object timezone_new(object offset, object name=None):             # <<<<<<<<<<<<<<
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')
 */
struct __pyx_opt_args_7cpython_8datetime_timezone_new {
  int __pyx_n;
  PyObject *name;
};

/* "datetime.pxd":312
 * 
 * # Create datetime object using DB API constructor.
 * cdef inline datetime datetime_from_timestamp(timestamp, tz=None):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.DateTime_FromTimestamp(
 *         <PyObject*>PyDateTimeAPI.DateTimeType, (timestamp, tz) if tz is not None else (timestamp,), NULL)
 */
struct __pyx_opt_args_7cpython_8datetime_datetime_from_timestamp {
  int __pyx_n;
  PyObject *tz;
};
struct __pyx_opt_args_7cytimes_8cyparser_timelex;
struct __pyx_opt_args_7cytimes_8cyparser_6Parser_parse;

/* "cytimes/cyparser.pxd":150
 * 
 * # Timelex
 * cdef list timelex(str dtstr, Py_ssize_t length=?)             # <<<<<<<<<<<<<<
 * 
 * # Result
 */
struct __pyx_opt_args_7cytimes_8cyparser_timelex {
  int __pyx_n;
  Py_ssize_t length;
};

/* "cytimes/cyparser.pxd":202
 *         str _token1, _token2, _token3, _token4
 *     # Parse
 *     cpdef datetime.datetime parse(self, str dtstr, object default=?, object day1st=?, object year1st=?, object ignoretz=?, object isoformat=?)             # <<<<<<<<<<<<<<
 *     # Process
 *     cdef inline bint _process(self, str dtstr, bint isoformat) except -1
 */
struct __pyx_opt_args_7cytimes_8cyparser_6Parser_parse {
  int __pyx_n;
  PyObject *__pyx_default;
  PyObject *day1st;
  PyObject *year1st;
  PyObject *ignoretz;
  PyObject *isoformat;
};
struct __pyx_t_7cytimes_10cydatetime_ymd;
typedef struct __pyx_t_7cytimes_10cydatetime_ymd __pyx_t_7cytimes_10cydatetime_ymd;
struct __pyx_t_7cytimes_10cydatetime_hms;
typedef struct __pyx_t_7cytimes_10cydatetime_hms __pyx_t_7cytimes_10cydatetime_hms;
struct __pyx_t_7cytimes_10cydatetime_iso;
typedef struct __pyx_t_7cytimes_10cydatetime_iso __pyx_t_7cytimes_10cydatetime_iso;
struct __pyx_opt_args_7cytimes_10cydatetime_gen_date;
struct __pyx_opt_args_7cytimes_10cydatetime_date_add;
struct __pyx_opt_args_7cytimes_10cydatetime_date_replace;
struct __pyx_opt_args_7cytimes_10cydatetime_gen_dt;
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_date;
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_ordinal;
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_seconds;
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_microseconds;
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_timestamp;
struct __pyx_opt_args_7cytimes_10cydatetime_dt_add;
struct __pyx_opt_args_7cytimes_10cydatetime_dt_replace;
struct __pyx_opt_args_7cytimes_10cydatetime_gen_time;
struct __pyx_opt_args_7cytimes_10cydatetime_time_fr_seconds;
struct __pyx_opt_args_7cytimes_10cydatetime_time_fr_microseconds;
struct __pyx_opt_args_7cytimes_10cydatetime_time_replace;
struct __pyx_opt_args_7cytimes_10cydatetime_gen_td;
struct __pyx_opt_args_7cytimes_10cydatetime_td_add;
struct __pyx_opt_args_7cytimes_10cydatetime_gen_tzinfo_local;

/* "cydatetime.pxd":36
 * 
 * # Struct
 * ctypedef struct ymd:             # <<<<<<<<<<<<<<
 *     unsigned int year
 *     unsigned int month
 */
struct __pyx_t_7cytimes_10cydatetime_ymd {
  unsigned int year;
  unsigned int month;
  unsigned int day;
};

/* "cydatetime.pxd":41
 *     unsigned int day
 * 
 * ctypedef struct hms:             # <<<<<<<<<<<<<<
 *     unsigned int hour
 *     unsigned int minute
 */
struct __pyx_t_7cytimes_10cydatetime_hms {
  unsigned int hour;
  unsigned int minute;
  unsigned int second;
  unsigned int microsecond;
};

/* "cydatetime.pxd":47
 *     unsigned int microsecond
 * 
 * ctypedef struct iso:             # <<<<<<<<<<<<<<
 *     unsigned int year
 *     unsigned int week
 */
struct __pyx_t_7cytimes_10cydatetime_iso {
  unsigned int year;
  unsigned int week;
  unsigned int weekday;
};

/* "cydatetime.pxd":147
 * 
 * # Datetime.date: generate
 * cdef datetime.date gen_date(unsigned int year=?, unsigned int month=?, unsigned int day=?)             # <<<<<<<<<<<<<<
 * cdef datetime.date gen_date_now()
 * cdef datetime.date gen_date_now_utc()
 */
struct __pyx_opt_args_7cytimes_10cydatetime_gen_date {
  int __pyx_n;
  unsigned int year;
  unsigned int month;
  unsigned int day;
};

/* "cydatetime.pxd":190
 * cdef datetime.date date_fr_timestamp(double timestamp)
 * # Datetime.date: arithmetic
 * cdef datetime.date date_add(datetime.date date, int days=?, long long seconds=?, long long microseconds=?)             # <<<<<<<<<<<<<<
 * cdef datetime.date date_add_td(datetime.date date, datetime.timedelta td)
 * cdef datetime.date date_sub_td(datetime.date date, datetime.timedelta td)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_date_add {
  int __pyx_n;
  int days;
  PY_LONG_LONG seconds;
  PY_LONG_LONG microseconds;
};

/* "cydatetime.pxd":196
 * cdef int date_sub_date_days(datetime.date date_l, datetime.date date_r)
 * # Datetime.date: manipulation
 * cdef datetime.date date_replace(datetime.date date, int year=?, int month=?, int day=?)             # <<<<<<<<<<<<<<
 * cdef datetime.date date_adj_weekday(datetime.date date, unsigned int weekday)
 * 
 */
struct __pyx_opt_args_7cytimes_10cydatetime_date_replace {
  int __pyx_n;
  int year;
  int month;
  int day;
};

/* "cydatetime.pxd":200
 * 
 * # Datetime.datetime: generate
 * cdef datetime.datetime gen_dt(             # <<<<<<<<<<<<<<
 *     unsigned int year=?, unsigned int month=?, unsigned int day=?,
 *     unsigned int hour=?, unsigned int minute=?, unsigned int second=?,
 */
struct __pyx_opt_args_7cytimes_10cydatetime_gen_dt {
  int __pyx_n;
  unsigned int year;
  unsigned int month;
  unsigned int day;
  unsigned int hour;
  unsigned int minute;
  unsigned int second;
  unsigned int microsecond;
  PyDateTime_TZInfo *tzinfo;
  unsigned int fold;
};

/* "cydatetime.pxd":252
 * cdef tm dt_to_stime_utc(datetime.datetime dt) except *
 * cdef datetime.datetime dt_fr_dt(datetime.datetime dt)
 * cdef datetime.datetime dt_fr_date(datetime.date date, datetime.tzinfo tzinfo=?, unsigned int fold=?)             # <<<<<<<<<<<<<<
 * cdef datetime.datetime dt_fr_time(datetime.time time)
 * cdef datetime.datetime dt_fr_date_n_time(datetime.date date, datetime.time time)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_date {
  int __pyx_n;
  PyDateTime_TZInfo *tzinfo;
  unsigned int fold;
};

/* "cydatetime.pxd":255
 * cdef datetime.datetime dt_fr_time(datetime.time time)
 * cdef datetime.datetime dt_fr_date_n_time(datetime.date date, datetime.time time)
 * cdef datetime.datetime dt_fr_ordinal(int ordinal, datetime.tzinfo tzinfo=?, unsigned int fold=?)             # <<<<<<<<<<<<<<
 * cdef datetime.datetime dt_fr_seconds(double seconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * cdef datetime.datetime dt_fr_microseconds(long long microseconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_ordinal {
  int __pyx_n;
  PyDateTime_TZInfo *tzinfo;
  unsigned int fold;
};

/* "cydatetime.pxd":256
 * cdef datetime.datetime dt_fr_date_n_time(datetime.date date, datetime.time time)
 * cdef datetime.datetime dt_fr_ordinal(int ordinal, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * cdef datetime.datetime dt_fr_seconds(double seconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)             # <<<<<<<<<<<<<<
 * cdef datetime.datetime dt_fr_microseconds(long long microseconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * cdef datetime.datetime dt_fr_timestamp(double timestamp, datetime.tzinfo tzinfo=?)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_seconds {
  int __pyx_n;
  PyDateTime_TZInfo *tzinfo;
  unsigned int fold;
};

/* "cydatetime.pxd":257
 * cdef datetime.datetime dt_fr_ordinal(int ordinal, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * cdef datetime.datetime dt_fr_seconds(double seconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * cdef datetime.datetime dt_fr_microseconds(long long microseconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)             # <<<<<<<<<<<<<<
 * cdef datetime.datetime dt_fr_timestamp(double timestamp, datetime.tzinfo tzinfo=?)
 * # Datetime.datetime: arithmetic
 */
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_microseconds {
  int __pyx_n;
  PyDateTime_TZInfo *tzinfo;
  unsigned int fold;
};

/* "cydatetime.pxd":258
 * cdef datetime.datetime dt_fr_seconds(double seconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * cdef datetime.datetime dt_fr_microseconds(long long microseconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * cdef datetime.datetime dt_fr_timestamp(double timestamp, datetime.tzinfo tzinfo=?)             # <<<<<<<<<<<<<<
 * # Datetime.datetime: arithmetic
 * cdef datetime.datetime dt_add(datetime.datetime dt, int days=?, long long seconds=?, long long microseconds=?)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_timestamp {
  int __pyx_n;
  PyDateTime_TZInfo *tzinfo;
};

/* "cydatetime.pxd":260
 * cdef datetime.datetime dt_fr_timestamp(double timestamp, datetime.tzinfo tzinfo=?)
 * # Datetime.datetime: arithmetic
 * cdef datetime.datetime dt_add(datetime.datetime dt, int days=?, long long seconds=?, long long microseconds=?)             # <<<<<<<<<<<<<<
 * cdef datetime.datetime dt_add_td(datetime.datetime dt, datetime.timedelta td)
 * cdef datetime.datetime dt_sub_td(datetime.datetime dt, datetime.timedelta td)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_dt_add {
  int __pyx_n;
  int days;
  PY_LONG_LONG seconds;
  PY_LONG_LONG microseconds;
};

/* "cydatetime.pxd":266
 * cdef long long dt_sub_dt_us(datetime.datetime dt_l, datetime.datetime dt_r)
 * # Datetime.datetime: manipulation
 * cdef datetime.datetime dt_replace(             # <<<<<<<<<<<<<<
 *     datetime.datetime dt, int year=?, int month=?, int day=?, int hour=?,
 *     int minute=?, int second=?, int microsecond=?, object tzinfo=?, int fold=?)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_dt_replace {
  int __pyx_n;
  int year;
  int month;
  int day;
  int hour;
  int minute;
  int second;
  int microsecond;
  PyObject *tzinfo;
  int fold;
};

/* "cydatetime.pxd":275
 * 
 * # Datetime.time: generate
 * cdef datetime.time gen_time(             # <<<<<<<<<<<<<<
 *     unsigned int hour=?, unsigned int minute=?, unsigned int second=?,
 *     unsigned int microsecond=?, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_gen_time {
  int __pyx_n;
  unsigned int hour;
  unsigned int minute;
  unsigned int second;
  unsigned int microsecond;
  PyDateTime_TZInfo *tzinfo;
  unsigned int fold;
};

/* "cydatetime.pxd":294
 * cdef long long time_to_microseconds(datetime.time time) noexcept
 * cdef datetime.time time_fr_dt(datetime.datetime dt)
 * cdef datetime.time time_fr_seconds(double seconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)             # <<<<<<<<<<<<<<
 * cdef datetime.time time_fr_microseconds(long long microseconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * # Datetime.time: manipulation
 */
struct __pyx_opt_args_7cytimes_10cydatetime_time_fr_seconds {
  int __pyx_n;
  PyDateTime_TZInfo *tzinfo;
  unsigned int fold;
};

/* "cydatetime.pxd":295
 * cdef datetime.time time_fr_dt(datetime.datetime dt)
 * cdef datetime.time time_fr_seconds(double seconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * cdef datetime.time time_fr_microseconds(long long microseconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)             # <<<<<<<<<<<<<<
 * # Datetime.time: manipulation
 * cdef datetime.time time_replace(
 */
struct __pyx_opt_args_7cytimes_10cydatetime_time_fr_microseconds {
  int __pyx_n;
  PyDateTime_TZInfo *tzinfo;
  unsigned int fold;
};

/* "cydatetime.pxd":297
 * cdef datetime.time time_fr_microseconds(long long microseconds, datetime.tzinfo tzinfo=?, unsigned int fold=?)
 * # Datetime.time: manipulation
 * cdef datetime.time time_replace(             # <<<<<<<<<<<<<<
 *     datetime.time time, int hour=?, int minute=?, int second=?,
 *     int microsecond=?, object tzinfo=?, int fold=?)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_time_replace {
  int __pyx_n;
  int hour;
  int minute;
  int second;
  int microsecond;
  PyObject *tzinfo;
  int fold;
};

/* "cydatetime.pxd":304
 * 
 * # Datetime.timedelta: generate
 * cdef datetime.timedelta gen_td(int days=?, int seconds=?, int microseconds=?)             # <<<<<<<<<<<<<<
 * # Datetime.timedelta: check types
 * cdef bint is_td(object obj) except -1
 */
struct __pyx_opt_args_7cytimes_10cydatetime_gen_td {
  int __pyx_n;
  int days;
  int seconds;
  int microseconds;
};

/* "cydatetime.pxd":317
 * cdef datetime.timedelta td_fr_microseconds(long long microseconds)
 * # Datetime.timedelta: arithmetic
 * cdef datetime.timedelta td_add(datetime.timedelta td, int days=?, int seconds=?, int microseconds=?)             # <<<<<<<<<<<<<<
 * cdef datetime.timedelta td_add_td(datetime.timedelta td_l, datetime.timedelta td_r)
 * cdef datetime.timedelta td_sub_td(datetime.timedelta td_l, datetime.timedelta td_r)
 */
struct __pyx_opt_args_7cytimes_10cydatetime_td_add {
  int __pyx_n;
  int days;
  int seconds;
  int microseconds;
};

/* "cydatetime.pxd":323
 * # Datetime.tzinfo: generate
 * cdef datetime.tzinfo gen_tzinfo(int offset)
 * cdef datetime.tzinfo gen_tzinfo_local(datetime.datetime dt=?)             # <<<<<<<<<<<<<<
 * # Datetime.tzinfo: check types
 * cdef bint is_tzinfo(object obj) except -1
 */
struct __pyx_opt_args_7cytimes_10cydatetime_gen_tzinfo_local {
  int __pyx_n;
  PyDateTime_DateTime *dt;
};
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_year;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_year;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_year;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_year;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_quarter;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_quarter;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_quarter;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_quarter;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_month;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_month;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_month;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_month;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_weekday;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_weekday;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_weekday;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_weekday;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_day;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_time;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_localize;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_convert;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_switch;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_astimezone;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_add_delta;
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_sub_delta;

/* "cytimes/pydatetime.pxd":77
 *     cpdef pydt to_year_1st(self)
 *     cpdef pydt to_year_lst(self)
 *     cpdef pydt to_curr_year(self, object month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_prev_year(self, object month=?, int day=?)
 *     cpdef pydt to_next_year(self, object month=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_year {
  int __pyx_n;
  PyObject *month;
  int day;
};

/* "cytimes/pydatetime.pxd":78
 *     cpdef pydt to_year_lst(self)
 *     cpdef pydt to_curr_year(self, object month=?, int day=?)
 *     cpdef pydt to_prev_year(self, object month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_next_year(self, object month=?, int day=?)
 *     cpdef pydt to_year(self, int offset=?, object month=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_year {
  int __pyx_n;
  PyObject *month;
  int day;
};

/* "cytimes/pydatetime.pxd":79
 *     cpdef pydt to_curr_year(self, object month=?, int day=?)
 *     cpdef pydt to_prev_year(self, object month=?, int day=?)
 *     cpdef pydt to_next_year(self, object month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_year(self, int offset=?, object month=?, int day=?)
 *     # C-API: Quater
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_year {
  int __pyx_n;
  PyObject *month;
  int day;
};

/* "cytimes/pydatetime.pxd":80
 *     cpdef pydt to_prev_year(self, object month=?, int day=?)
 *     cpdef pydt to_next_year(self, object month=?, int day=?)
 *     cpdef pydt to_year(self, int offset=?, object month=?, int day=?)             # <<<<<<<<<<<<<<
 *     # C-API: Quater
 *     cdef inline int _c_days_in_quarter(self) except -1
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_year {
  int __pyx_n;
  int offset;
  PyObject *month;
  int day;
};

/* "cytimes/pydatetime.pxd":92
 *     cpdef pydt to_quarter_1st(self)
 *     cpdef pydt to_quarter_lst(self)
 *     cpdef pydt to_curr_quarter(self, int month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_prev_quarter(self, int month=?, int day=?)
 *     cpdef pydt to_next_quarter(self, int month=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_quarter {
  int __pyx_n;
  int month;
  int day;
};

/* "cytimes/pydatetime.pxd":93
 *     cpdef pydt to_quarter_lst(self)
 *     cpdef pydt to_curr_quarter(self, int month=?, int day=?)
 *     cpdef pydt to_prev_quarter(self, int month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_next_quarter(self, int month=?, int day=?)
 *     cpdef pydt to_quarter(self, int offset=?, int month=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_quarter {
  int __pyx_n;
  int month;
  int day;
};

/* "cytimes/pydatetime.pxd":94
 *     cpdef pydt to_curr_quarter(self, int month=?, int day=?)
 *     cpdef pydt to_prev_quarter(self, int month=?, int day=?)
 *     cpdef pydt to_next_quarter(self, int month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_quarter(self, int offset=?, int month=?, int day=?)
 *     # C-API: Month
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_quarter {
  int __pyx_n;
  int month;
  int day;
};

/* "cytimes/pydatetime.pxd":95
 *     cpdef pydt to_prev_quarter(self, int month=?, int day=?)
 *     cpdef pydt to_next_quarter(self, int month=?, int day=?)
 *     cpdef pydt to_quarter(self, int offset=?, int month=?, int day=?)             # <<<<<<<<<<<<<<
 *     # C-API: Month
 *     cdef inline int _c_days_in_month(self) except -1
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_quarter {
  int __pyx_n;
  int offset;
  int month;
  int day;
};

/* "cytimes/pydatetime.pxd":104
 *     cpdef pydt to_month_1st(self)
 *     cpdef pydt to_month_lst(self)
 *     cpdef pydt to_curr_month(self, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_prev_month(self, int day=?)
 *     cpdef pydt to_next_month(self, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_month {
  int __pyx_n;
  int day;
};

/* "cytimes/pydatetime.pxd":105
 *     cpdef pydt to_month_lst(self)
 *     cpdef pydt to_curr_month(self, int day=?)
 *     cpdef pydt to_prev_month(self, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_next_month(self, int day=?)
 *     cpdef pydt to_month(self, int offset=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_month {
  int __pyx_n;
  int day;
};

/* "cytimes/pydatetime.pxd":106
 *     cpdef pydt to_curr_month(self, int day=?)
 *     cpdef pydt to_prev_month(self, int day=?)
 *     cpdef pydt to_next_month(self, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_month(self, int offset=?, int day=?)
 *     # C-API: Weekday
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_month {
  int __pyx_n;
  int day;
};

/* "cytimes/pydatetime.pxd":107
 *     cpdef pydt to_prev_month(self, int day=?)
 *     cpdef pydt to_next_month(self, int day=?)
 *     cpdef pydt to_month(self, int offset=?, int day=?)             # <<<<<<<<<<<<<<
 *     # C-API: Weekday
 *     cdef inline int _c_weekday(self) except -1
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_month {
  int __pyx_n;
  int offset;
  int day;
};

/* "cytimes/pydatetime.pxd":123
 *     cpdef pydt to_saturday(self)
 *     cpdef pydt to_sunday(self)
 *     cpdef pydt to_curr_weekday(self, object weekday=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_prev_weekday(self, object weekday=?)
 *     cpdef pydt to_next_weekday(self, object weekday=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_weekday {
  int __pyx_n;
  PyObject *weekday;
};

/* "cytimes/pydatetime.pxd":124
 *     cpdef pydt to_sunday(self)
 *     cpdef pydt to_curr_weekday(self, object weekday=?)
 *     cpdef pydt to_prev_weekday(self, object weekday=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_next_weekday(self, object weekday=?)
 *     cpdef pydt to_weekday(self, int offset=?, object weekday=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_weekday {
  int __pyx_n;
  PyObject *weekday;
};

/* "cytimes/pydatetime.pxd":125
 *     cpdef pydt to_curr_weekday(self, object weekday=?)
 *     cpdef pydt to_prev_weekday(self, object weekday=?)
 *     cpdef pydt to_next_weekday(self, object weekday=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt to_weekday(self, int offset=?, object weekday=?)
 *     # C-API: Day
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_weekday {
  int __pyx_n;
  PyObject *weekday;
};

/* "cytimes/pydatetime.pxd":126
 *     cpdef pydt to_prev_weekday(self, object weekday=?)
 *     cpdef pydt to_next_weekday(self, object weekday=?)
 *     cpdef pydt to_weekday(self, int offset=?, object weekday=?)             # <<<<<<<<<<<<<<
 *     # C-API: Day
 *     cdef inline bint _c_is_day(self, int day) except -1
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_weekday {
  int __pyx_n;
  int offset;
  PyObject *weekday;
};

/* "cytimes/pydatetime.pxd":131
 *     cpdef pydt to_yesterday(self)
 *     cpdef pydt to_tomorrow(self)
 *     cpdef pydt to_day(self, int offset=?)             # <<<<<<<<<<<<<<
 *     # C-API: Time
 *     cdef inline bint _c_is_time_start(self) except -1
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_day {
  int __pyx_n;
  int offset;
};

/* "cytimes/pydatetime.pxd":137
 *     cpdef pydt to_time_start(self)
 *     cpdef pydt to_time_end(self)
 *     cpdef pydt to_time(             # <<<<<<<<<<<<<<
 *         self, int hour=?, int minute=?, int
 *         second=?, int millisecond=?, int microsecond=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_time {
  int __pyx_n;
  int hour;
  int minute;
  int second;
  int millisecond;
  int microsecond;
};

/* "cytimes/pydatetime.pxd":141
 *         second=?, int millisecond=?, int microsecond=?)
 *     # C-API: Timezone
 *     cpdef pydt tz_localize(self, object tz=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt tz_convert(self, object tz=?)
 *     cpdef pydt tz_switch(self, object targ_tz, object base_tz=?, object naive=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_localize {
  int __pyx_n;
  PyObject *tz;
};

/* "cytimes/pydatetime.pxd":142
 *     # C-API: Timezone
 *     cpdef pydt tz_localize(self, object tz=?)
 *     cpdef pydt tz_convert(self, object tz=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt tz_switch(self, object targ_tz, object base_tz=?, object naive=?)
 *     cpdef pydt astimezone(self, object tz=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_convert {
  int __pyx_n;
  PyObject *tz;
};

/* "cytimes/pydatetime.pxd":143
 *     cpdef pydt tz_localize(self, object tz=?)
 *     cpdef pydt tz_convert(self, object tz=?)
 *     cpdef pydt tz_switch(self, object targ_tz, object base_tz=?, object naive=?)             # <<<<<<<<<<<<<<
 *     cpdef pydt astimezone(self, object tz=?)
 *     # C-API: Frequency
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_switch {
  int __pyx_n;
  PyObject *base_tz;
  PyObject *naive;
};

/* "cytimes/pydatetime.pxd":144
 *     cpdef pydt tz_convert(self, object tz=?)
 *     cpdef pydt tz_switch(self, object targ_tz, object base_tz=?, object naive=?)
 *     cpdef pydt astimezone(self, object tz=?)             # <<<<<<<<<<<<<<
 *     # C-API: Frequency
 *     cpdef pydt freq_round(self, object freq)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_astimezone {
  int __pyx_n;
  PyObject *tz;
};

/* "cytimes/pydatetime.pxd":151
 *     # C-API: Delta
 *     cdef inline long long _c_cal_delta(self, object other, object unit, object inclusive) except -2
 *     cpdef pydt add_delta(             # <<<<<<<<<<<<<<
 *         self,  int years=?, int months=?, int days=?, int weeks=?,
 *         int hours=?, int minutes=?, int seconds=?, int milliseconds=?, int microseconds=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_add_delta {
  int __pyx_n;
  int years;
  int months;
  int days;
  int weeks;
  int hours;
  int minutes;
  int seconds;
  int milliseconds;
  int microseconds;
};

/* "cytimes/pydatetime.pxd":154
 *         self,  int years=?, int months=?, int days=?, int weeks=?,
 *         int hours=?, int minutes=?, int seconds=?, int milliseconds=?, int microseconds=?)
 *     cpdef pydt sub_delta(             # <<<<<<<<<<<<<<
 *         self,  int years=?, int months=?, int days=?, int weeks=?,
 *         int hours=?, int minutes=?, int seconds=?, int milliseconds=?, int microseconds=?)
 */
struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_sub_delta {
  int __pyx_n;
  int years;
  int months;
  int days;
  int weeks;
  int hours;
  int minutes;
  int seconds;
  int milliseconds;
  int microseconds;
};
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_year;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_year;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_year;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_quarter;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_quarter;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_quarter;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_month;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_month;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_weekday;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_weekday;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_weekday;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_time;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_localize;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_convert;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_switch;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_astimezone;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_round;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_ceil;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_floor;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_add_delta;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_sub_delta;
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error;

/* "cytimes/pddatetime.pxd":57
 *     cpdef pddt to_year_1st(self)
 *     cpdef pddt to_year_lst(self)
 *     cpdef pddt to_curr_year(self, object month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_prev_year(self, object month=?, int day=?)
 *     cpdef pddt to_next_year(self, object month=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_year {
  int __pyx_n;
  PyObject *month;
  int day;
};

/* "cytimes/pddatetime.pxd":58
 *     cpdef pddt to_year_lst(self)
 *     cpdef pddt to_curr_year(self, object month=?, int day=?)
 *     cpdef pddt to_prev_year(self, object month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_next_year(self, object month=?, int day=?)
 *     cpdef pddt to_year(self, int offset=?, object month=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_year {
  int __pyx_n;
  PyObject *month;
  int day;
};

/* "cytimes/pddatetime.pxd":59
 *     cpdef pddt to_curr_year(self, object month=?, int day=?)
 *     cpdef pddt to_prev_year(self, object month=?, int day=?)
 *     cpdef pddt to_next_year(self, object month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_year(self, int offset=?, object month=?, int day=?)
 *     # C-API: Quarter
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_year {
  int __pyx_n;
  PyObject *month;
  int day;
};

/* "cytimes/pddatetime.pxd":60
 *     cpdef pddt to_prev_year(self, object month=?, int day=?)
 *     cpdef pddt to_next_year(self, object month=?, int day=?)
 *     cpdef pddt to_year(self, int offset=?, object month=?, int day=?)             # <<<<<<<<<<<<<<
 *     # C-API: Quarter
 *     cpdef pddt to_quarter_1st(self)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year {
  int __pyx_n;
  int offset;
  PyObject *month;
  int day;
};

/* "cytimes/pddatetime.pxd":64
 *     cpdef pddt to_quarter_1st(self)
 *     cpdef pddt to_quarter_lst(self)
 *     cpdef pddt to_curr_quarter(self, int month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_prev_quarter(self, int month=?, int day=?)
 *     cpdef pddt to_next_quarter(self, int month=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_quarter {
  int __pyx_n;
  int month;
  int day;
};

/* "cytimes/pddatetime.pxd":65
 *     cpdef pddt to_quarter_lst(self)
 *     cpdef pddt to_curr_quarter(self, int month=?, int day=?)
 *     cpdef pddt to_prev_quarter(self, int month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_next_quarter(self, int month=?, int day=?)
 *     cpdef pddt to_quarter(self, int offset=?, int month=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_quarter {
  int __pyx_n;
  int month;
  int day;
};

/* "cytimes/pddatetime.pxd":66
 *     cpdef pddt to_curr_quarter(self, int month=?, int day=?)
 *     cpdef pddt to_prev_quarter(self, int month=?, int day=?)
 *     cpdef pddt to_next_quarter(self, int month=?, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_quarter(self, int offset=?, int month=?, int day=?)
 *     # C-API: Month
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_quarter {
  int __pyx_n;
  int month;
  int day;
};

/* "cytimes/pddatetime.pxd":67
 *     cpdef pddt to_prev_quarter(self, int month=?, int day=?)
 *     cpdef pddt to_next_quarter(self, int month=?, int day=?)
 *     cpdef pddt to_quarter(self, int offset=?, int month=?, int day=?)             # <<<<<<<<<<<<<<
 *     # C-API: Month
 *     cpdef pddt to_month_1st(self)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter {
  int __pyx_n;
  int offset;
  int month;
  int day;
};

/* "cytimes/pddatetime.pxd":71
 *     cpdef pddt to_month_1st(self)
 *     cpdef pddt to_month_lst(self)
 *     cpdef pddt to_curr_month(self, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_prev_month(self, int day=?)
 *     cpdef pddt to_next_month(self, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month {
  int __pyx_n;
  int day;
};

/* "cytimes/pddatetime.pxd":72
 *     cpdef pddt to_month_lst(self)
 *     cpdef pddt to_curr_month(self, int day=?)
 *     cpdef pddt to_prev_month(self, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_next_month(self, int day=?)
 *     cpdef pddt to_month(self, int offset=?, int day=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_month {
  int __pyx_n;
  int day;
};

/* "cytimes/pddatetime.pxd":73
 *     cpdef pddt to_curr_month(self, int day=?)
 *     cpdef pddt to_prev_month(self, int day=?)
 *     cpdef pddt to_next_month(self, int day=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_month(self, int offset=?, int day=?)
 *     # C-API: Weekday
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_month {
  int __pyx_n;
  int day;
};

/* "cytimes/pddatetime.pxd":74
 *     cpdef pddt to_prev_month(self, int day=?)
 *     cpdef pddt to_next_month(self, int day=?)
 *     cpdef pddt to_month(self, int offset=?, int day=?)             # <<<<<<<<<<<<<<
 *     # C-API: Weekday
 *     cdef inline pddt _c_to_curr_weekday(self, int weekday)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month {
  int __pyx_n;
  int offset;
  int day;
};

/* "cytimes/pddatetime.pxd":84
 *     cpdef pddt to_saturday(self)
 *     cpdef pddt to_sunday(self)
 *     cpdef pddt to_curr_weekday(self, object weekday=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_prev_weekday(self, object weekday=?)
 *     cpdef pddt to_next_weekday(self, object weekday=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_weekday {
  int __pyx_n;
  PyObject *weekday;
};

/* "cytimes/pddatetime.pxd":85
 *     cpdef pddt to_sunday(self)
 *     cpdef pddt to_curr_weekday(self, object weekday=?)
 *     cpdef pddt to_prev_weekday(self, object weekday=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_next_weekday(self, object weekday=?)
 *     cpdef pddt to_weekday(self, int offset=?, object weekday=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_weekday {
  int __pyx_n;
  PyObject *weekday;
};

/* "cytimes/pddatetime.pxd":86
 *     cpdef pddt to_curr_weekday(self, object weekday=?)
 *     cpdef pddt to_prev_weekday(self, object weekday=?)
 *     cpdef pddt to_next_weekday(self, object weekday=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt to_weekday(self, int offset=?, object weekday=?)
 *     # C-API: Day
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_weekday {
  int __pyx_n;
  PyObject *weekday;
};

/* "cytimes/pddatetime.pxd":87
 *     cpdef pddt to_prev_weekday(self, object weekday=?)
 *     cpdef pddt to_next_weekday(self, object weekday=?)
 *     cpdef pddt to_weekday(self, int offset=?, object weekday=?)             # <<<<<<<<<<<<<<
 *     # C-API: Day
 *     cpdef pddt to_yesterday(self)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday {
  int __pyx_n;
  int offset;
  PyObject *weekday;
};

/* "cytimes/pddatetime.pxd":95
 *     cpdef pddt to_time_start(self)
 *     cpdef pddt to_time_end(self)
 *     cpdef pddt to_time(self, int hour=?, int minute=?, int second=?, int millisecond=?, int microsecond=?)             # <<<<<<<<<<<<<<
 *     # C-API: Timezone
 *     cdef inline object _c_tz_localize(self, object dt, object tz, object ambiguous, object nonexistent)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_time {
  int __pyx_n;
  int hour;
  int minute;
  int second;
  int millisecond;
  int microsecond;
};

/* "cytimes/pddatetime.pxd":99
 *     cdef inline object _c_tz_localize(self, object dt, object tz, object ambiguous, object nonexistent)
 *     cdef inline object _c_tz_convert(self, object dt, object tz, object ambiguous, object nonexistent)
 *     cpdef pddt tz_localize(self, object tz=?, object ambiguous=?, object nonexistent=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt tz_convert(self, object tz=?, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt tz_switch(self, object targ_tz, object base_tz=?, object naive=?, object ambiguous=?, object nonexistent=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_localize {
  int __pyx_n;
  PyObject *tz;
  PyObject *ambiguous;
  PyObject *nonexistent;
};

/* "cytimes/pddatetime.pxd":100
 *     cdef inline object _c_tz_convert(self, object dt, object tz, object ambiguous, object nonexistent)
 *     cpdef pddt tz_localize(self, object tz=?, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt tz_convert(self, object tz=?, object ambiguous=?, object nonexistent=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt tz_switch(self, object targ_tz, object base_tz=?, object naive=?, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt astimezone(self, object tz=?, object ambiguous=?, object nonexistent=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_convert {
  int __pyx_n;
  PyObject *tz;
  PyObject *ambiguous;
  PyObject *nonexistent;
};

/* "cytimes/pddatetime.pxd":101
 *     cpdef pddt tz_localize(self, object tz=?, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt tz_convert(self, object tz=?, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt tz_switch(self, object targ_tz, object base_tz=?, object naive=?, object ambiguous=?, object nonexistent=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt astimezone(self, object tz=?, object ambiguous=?, object nonexistent=?)
 *     # C-API: Frequency
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_switch {
  int __pyx_n;
  PyObject *base_tz;
  PyObject *naive;
  PyObject *ambiguous;
  PyObject *nonexistent;
};

/* "cytimes/pddatetime.pxd":102
 *     cpdef pddt tz_convert(self, object tz=?, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt tz_switch(self, object targ_tz, object base_tz=?, object naive=?, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt astimezone(self, object tz=?, object ambiguous=?, object nonexistent=?)             # <<<<<<<<<<<<<<
 *     # C-API: Frequency
 *     cpdef pddt freq_round(self, object freq, object ambiguous=?, object nonexistent=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_astimezone {
  int __pyx_n;
  PyObject *tz;
  PyObject *ambiguous;
  PyObject *nonexistent;
};

/* "cytimes/pddatetime.pxd":104
 *     cpdef pddt astimezone(self, object tz=?, object ambiguous=?, object nonexistent=?)
 *     # C-API: Frequency
 *     cpdef pddt freq_round(self, object freq, object ambiguous=?, object nonexistent=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt freq_ceil(self, object freq, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt freq_floor(self, object freq, object ambiguous=?, object nonexistent=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_round {
  int __pyx_n;
  PyObject *ambiguous;
  PyObject *nonexistent;
};

/* "cytimes/pddatetime.pxd":105
 *     # C-API: Frequency
 *     cpdef pddt freq_round(self, object freq, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt freq_ceil(self, object freq, object ambiguous=?, object nonexistent=?)             # <<<<<<<<<<<<<<
 *     cpdef pddt freq_floor(self, object freq, object ambiguous=?, object nonexistent=?)
 *     # C-API: Delta
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_ceil {
  int __pyx_n;
  PyObject *ambiguous;
  PyObject *nonexistent;
};

/* "cytimes/pddatetime.pxd":106
 *     cpdef pddt freq_round(self, object freq, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt freq_ceil(self, object freq, object ambiguous=?, object nonexistent=?)
 *     cpdef pddt freq_floor(self, object freq, object ambiguous=?, object nonexistent=?)             # <<<<<<<<<<<<<<
 *     # C-API: Delta
 *     cdef inline object _c_cal_delta(self, object other, object unit, object inclusive)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_floor {
  int __pyx_n;
  PyObject *ambiguous;
  PyObject *nonexistent;
};

/* "cytimes/pddatetime.pxd":109
 *     # C-API: Delta
 *     cdef inline object _c_cal_delta(self, object other, object unit, object inclusive)
 *     cpdef pddt add_delta(             # <<<<<<<<<<<<<<
 *         self, int years=?, int months=?, int days=?, int weeks=?,
 *         int hours=?, int minutes=?, int seconds=?, int milliseconds=?, int microseconds=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_add_delta {
  int __pyx_n;
  int years;
  int months;
  int days;
  int weeks;
  int hours;
  int minutes;
  int seconds;
  int milliseconds;
  int microseconds;
};

/* "cytimes/pddatetime.pxd":112
 *         self, int years=?, int months=?, int days=?, int weeks=?,
 *         int hours=?, int minutes=?, int seconds=?, int milliseconds=?, int microseconds=?)
 *     cpdef pddt sub_delta(             # <<<<<<<<<<<<<<
 *         self, int years=?, int months=?, int days=?, int weeks=?,
 *         int hours=?, int minutes=?, int seconds=?, int milliseconds=?, int microseconds=?)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_sub_delta {
  int __pyx_n;
  int years;
  int months;
  int days;
  int weeks;
  int hours;
  int minutes;
  int seconds;
  int milliseconds;
  int microseconds;
};

/* "cytimes/pddatetime.pxd":131
 *     cdef inline object _obj_to_series(self, object obj)
 *     cdef inline bint _validate_amb_nonex(self, object ambiguous, object nonexistent) except -1
 *     cdef inline bint _raise_error(self, Exception err, str msg=?) except -1             # <<<<<<<<<<<<<<
 *     # Special methods
 *     cpdef pddt copy(self)
 */
struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error {
  int __pyx_n;
  PyObject *msg;
};

/* "cytimes/cyparser.pxd":153
 * 
 * # Result
 * cdef class Result:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # Y/M/D
 */
struct __pyx_obj_7cytimes_8cyparser_Result {
  PyObject_HEAD
  struct __pyx_vtabstruct_7cytimes_8cyparser_Result *__pyx_vtab;
  int _ymd[3];
  int _idx;
  int _yidx;
  int _midx;
  int _didx;
  int year;
  int month;
  int day;
  int weekday;
  int hour;
  int minute;
  int second;
  int microsecond;
  int ampm;
  int tzoffset;
  PyObject *tzname;
  int century_specified;
};


/* "cytimes/cyparser.pxd":174
 * 
 * # Config
 * cdef class Config:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # Settings
 */
struct __pyx_obj_7cytimes_8cyparser_Config {
  PyObject_HEAD
  struct __pyx_vtabstruct_7cytimes_8cyparser_Config *__pyx_vtab;
  int _day1st;
  int _year1st;
  PyObject *_pertain;
  PyObject *_jump;
  PyObject *_utc;
  PyObject *_tz;
  PyObject *_month;
  PyObject *_weekday;
  PyObject *_hms;
  PyObject *_ampm;
  PyObject *_words;
};


/* "cytimes/cyparser.pxd":188
 * 
 * # Parser
 * cdef class Parser:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # Config
 */
struct __pyx_obj_7cytimes_8cyparser_Parser {
  PyObject_HEAD
  struct __pyx_vtabstruct_7cytimes_8cyparser_Parser *__pyx_vtab;
  int _day1st;
  int _year1st;
  int _ignoretz;
  PyObject *_pertain;
  PyObject *_jump;
  PyObject *_utc;
  PyObject *_tz;
  PyObject *_month;
  PyObject *_weekday;
  PyObject *_hms;
  PyObject *_ampm;
  struct __pyx_obj_7cytimes_8cyparser_Result *_result;
  unsigned int _iso_type;
  PyObject *_tokens;
  Py_ssize_t _token_count;
  Py_ssize_t _index;
  PyObject *_token1;
  PyObject *_token2;
  PyObject *_token3;
  PyObject *_token4;
};


/* "cytimes/cydelta.pxd":28
 * 
 * # cytimedelta
 * cdef class cytimedelta:             # <<<<<<<<<<<<<<
 *     cdef:
 *         int _years, _months, _days, _hours
 */
struct __pyx_obj_7cytimes_7cydelta_cytimedelta {
  PyObject_HEAD
  struct __pyx_vtabstruct_7cytimes_7cydelta_cytimedelta *__pyx_vtab;
  int _years;
  int _months;
  int _days;
  int _hours;
  int _minutes;
  int _seconds;
  int _microseconds;
  int _year;
  int _month;
  int _day;
  int _weekday;
  int _hour;
  int _minute;
  int _second;
  int _microsecond;
  Py_ssize_t _hashcode;
};


/* "cytimes/pydatetime.pxd":35
 * 
 * # pydt (Python Datetime)
 * cdef class pydt:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # . value
 */
struct __pyx_obj_7cytimes_10pydatetime_pydt {
  PyObject_HEAD
  struct __pyx_vtabstruct_7cytimes_10pydatetime_pydt *__pyx_vtab;
  PyDateTime_DateTime *_dt;
  struct __pyx_obj_7cytimes_8cyparser_Config *_cfg;
  PyObject *_day1st;
  PyObject *_year1st;
  PyObject *_ignoretz;
  PyObject *_isoformat;
  PyObject *_default;
  Py_ssize_t _hashcode;
};


/* "cytimes/pddatetime.pxd":45
 * 
 * # pddt (Pandas Datetime)
 * cdef class pddt:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # . value
 */
struct __pyx_obj_7cytimes_10pddatetime_pddt {
  PyObject_HEAD
  struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *__pyx_vtab;
  PyObject *_dt;
  struct __pyx_obj_7cytimes_8cyparser_Config *_cfg;
  PyObject *_day1st;
  PyObject *_year1st;
  PyObject *_utc;
  PyObject *_format;
  PyObject *_exact;
  PyObject *_default;
};


/* "cytimes/pddatetime.py":1780
 * 
 *     # Replace ---------------------------------------------------------------------------------
 *     def replace(             # <<<<<<<<<<<<<<
 *         self,
 *         year: cython.int = -1,
 */
struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace {
  PyObject_HEAD
  int __pyx_v_day;
  int __pyx_v_hour;
  int __pyx_v_microsecond;
  int __pyx_v_minute;
  int __pyx_v_month;
  int __pyx_v_second;
  int __pyx_v_year;
};



/* "cytimes/cyparser.pxd":153
 * 
 * # Result
 * cdef class Result:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # Y/M/D
 */

struct __pyx_vtabstruct_7cytimes_8cyparser_Result {
  int (*append)(struct __pyx_obj_7cytimes_8cyparser_Result *, PyObject *, unsigned int);
  unsigned int (*populated)(struct __pyx_obj_7cytimes_8cyparser_Result *);
  unsigned int (*labeled)(struct __pyx_obj_7cytimes_8cyparser_Result *);
  int (*could_be_day)(struct __pyx_obj_7cytimes_8cyparser_Result *, int);
  int (*prepare)(struct __pyx_obj_7cytimes_8cyparser_Result *, int, int);
  int (*valid)(struct __pyx_obj_7cytimes_8cyparser_Result *);
};
static struct __pyx_vtabstruct_7cytimes_8cyparser_Result *__pyx_vtabptr_7cytimes_8cyparser_Result;


/* "cytimes/cyparser.pxd":174
 * 
 * # Config
 * cdef class Config:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # Settings
 */

struct __pyx_vtabstruct_7cytimes_8cyparser_Config {
  int (*_construct_words)(struct __pyx_obj_7cytimes_8cyparser_Config *);
  PyObject *(*_validate_word)(struct __pyx_obj_7cytimes_8cyparser_Config *, PyObject *, PyObject *);
  PyObject *(*_validate_value)(struct __pyx_obj_7cytimes_8cyparser_Config *, PyObject *, PyObject *, int, int);
};
static struct __pyx_vtabstruct_7cytimes_8cyparser_Config *__pyx_vtabptr_7cytimes_8cyparser_Config;


/* "cytimes/cyparser.pxd":188
 * 
 * # Parser
 * cdef class Parser:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # Config
 */

struct __pyx_vtabstruct_7cytimes_8cyparser_Parser {
  PyDateTime_DateTime *(*parse)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_8cyparser_6Parser_parse *__pyx_optional_args);
  int (*_process)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, int);
  int (*_process_isoformat)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_process_tokens)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  PyDateTime_DateTime *(*_build)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, PyObject *);
  PyDateTime_DateTime *(*_build_datetime)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, PyObject *, PyObject *);
  PyDateTime_DateTime *(*_handle_ambiguous_time)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyDateTime_DateTime *, PyObject *);
  int (*_parse_iso_date)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, Py_ssize_t);
  int (*_parse_iso_time)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, Py_ssize_t);
  int (*_parse_iso_hms)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, Py_ssize_t);
  int (*_parse_iso_extra)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, Py_ssize_t, int);
  Py_ssize_t (*_find_iso_sep)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, Py_ssize_t);
  Py_ssize_t (*_find_iso_utc)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, Py_ssize_t);
  int (*_parse_token_numeric)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_parse_token_month)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_parse_token_weekday)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_parse_token_hms)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, double);
  int (*_parse_token_ampm)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_parse_token_tzname)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_parse_token_tzoffset)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_set_hms)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, double, int);
  int (*_set_hm)(struct __pyx_obj_7cytimes_8cyparser_Parser *, double);
  int (*_set_ms)(struct __pyx_obj_7cytimes_8cyparser_Parser *, double);
  int (*_set_sf)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  unsigned int (*_adjust_ampm)(struct __pyx_obj_7cytimes_8cyparser_Parser *, int, int);
  unsigned int (*_could_be_tzname)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_parse_tokens)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *, Py_ssize_t);
  PyObject *(*_access_token)(struct __pyx_obj_7cytimes_8cyparser_Parser *, Py_ssize_t);
  PyObject *(*_access_token1)(struct __pyx_obj_7cytimes_8cyparser_Parser *);
  PyObject *(*_access_token2)(struct __pyx_obj_7cytimes_8cyparser_Parser *);
  PyObject *(*_access_token3)(struct __pyx_obj_7cytimes_8cyparser_Parser *);
  PyObject *(*_access_token4)(struct __pyx_obj_7cytimes_8cyparser_Parser *);
  int (*_reset_tokens)(struct __pyx_obj_7cytimes_8cyparser_Parser *);
  int (*_is_token_pertain)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_is_token_jump)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_is_token_utc)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_token_to_month)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_token_to_weekday)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_token_to_hms)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_token_to_ampm)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
  int (*_token_to_tzoffset)(struct __pyx_obj_7cytimes_8cyparser_Parser *, PyObject *);
};
static struct __pyx_vtabstruct_7cytimes_8cyparser_Parser *__pyx_vtabptr_7cytimes_8cyparser_Parser;


/* "cytimes/cydelta.pxd":28
 * 
 * # cytimedelta
 * cdef class cytimedelta:             # <<<<<<<<<<<<<<
 *     cdef:
 *         int _years, _months, _days, _hours
 */

struct __pyx_vtabstruct_7cytimes_7cydelta_cytimedelta {
  PyDateTime_DateTime *(*_add_date)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyDateTime_Date *);
  PyDateTime_DateTime *(*_add_datetime)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyDateTime_DateTime *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_add_timedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyDateTime_Delta *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_add_cytimedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, struct __pyx_obj_7cytimes_7cydelta_cytimedelta *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_add_relativedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyObject *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_add_int)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, int);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_add_float)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, double);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_radd_relativedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyObject *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_sub_timedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyDateTime_Delta *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_sub_cytimedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, struct __pyx_obj_7cytimes_7cydelta_cytimedelta *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_sub_relativedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyObject *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_sub_int)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, int);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_sub_float)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, double);
  PyDateTime_DateTime *(*_rsub_date)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyDateTime_Date *);
  PyDateTime_DateTime *(*_rsub_datetime)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyDateTime_DateTime *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_rsub_timedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyDateTime_Delta *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_rsub_relativedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyObject *);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_rsub_int)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, int);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_rsub_float)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, double);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_mul_int)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, int);
  struct __pyx_obj_7cytimes_7cydelta_cytimedelta *(*_mul_float)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, double);
  int (*_eq_timedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyDateTime_Delta *);
  int (*_eq_cytimedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, struct __pyx_obj_7cytimes_7cydelta_cytimedelta *);
  int (*_eq_relativedelta)(struct __pyx_obj_7cytimes_7cydelta_cytimedelta *, PyObject *);
};
static struct __pyx_vtabstruct_7cytimes_7cydelta_cytimedelta *__pyx_vtabptr_7cytimes_7cydelta_cytimedelta;


/* "cytimes/pydatetime.pxd":35
 * 
 * # pydt (Python Datetime)
 * cdef class pydt:             # <<<<<<<<<<<<<<
 *     cdef:
 *         # . value
 */

struct __pyx_vtabstruct_7cytimes_10pydatetime_pydt {
  PyObject *(*_c_tzname)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyDateTime_Delta *(*_c_dst)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyDateTime_Delta *(*_c_utcoffset)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyObject *(*_c_dt_str)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyObject *(*_c_dt_strtz)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyObject *(*_c_dt_iso)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyObject *(*_c_dt_isotz)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyDateTime_Date *(*_c_date)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyObject *(*_c_date_iso)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyDateTime_Time *(*_c_time)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyDateTime_Time *(*_c_timetz)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PyObject *(*_c_time_iso)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  struct tm (*_c_stime)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  struct tm (*_c_stime_utc)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_ordinal)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  double (*_c_seconds)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  double (*_c_seconds_utc)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PY_LONG_LONG (*_c_microseconds)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  PY_LONG_LONG (*_c_microseconds_utc)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  double (*_c_timestamp)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_leapyear)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_leap_bt_years)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int);
  int (*_c_days_in_year)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_days_bf_year)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_days_of_year)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_year)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int);
  int (*_c_is_year_1st)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_year_lst)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_year_1st)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_year_lst)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_curr_year)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_year *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_prev_year)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_year *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_next_year)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_year *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_year)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_year *__pyx_optional_args);
  int (*_c_days_in_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_days_bf_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_days_of_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_quarter_1st_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_quarter_lst_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int);
  int (*_c_is_quarter_1st)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_quarter_lst)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_quarter_1st)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_quarter_lst)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_curr_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_quarter *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_prev_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_quarter *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_next_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_quarter *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_quarter)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_quarter *__pyx_optional_args);
  int (*_c_days_in_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_days_bf_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *);
  int (*_c_is_month_1st)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_month_lst)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_month_1st)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_month_lst)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_curr_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_month *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_prev_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_month *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_next_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_month *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_month *__pyx_optional_args);
  int (*_c_weekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_isoweekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_isoweek)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_isoyear)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  __pyx_t_7cytimes_10cydatetime_iso (*_c_isocalendar)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_weekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*_c_to_curr_weekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_monday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_tuesday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_wednesday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_thursday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_friday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_saturday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_sunday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_curr_weekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_curr_weekday *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_prev_weekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_prev_weekday *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_next_weekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_next_weekday *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_weekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_weekday *__pyx_optional_args);
  int (*_c_is_day)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_yesterday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_tomorrow)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_day)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_day *__pyx_optional_args);
  int (*_c_is_time_start)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  int (*_c_is_time_end)(struct __pyx_obj_7cytimes_10pydatetime_pydt *);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_time_start)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_time_end)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*to_time)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_to_time *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*tz_localize)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_localize *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*tz_convert)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_convert *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*tz_switch)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_tz_switch *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*astimezone)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_astimezone *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*freq_round)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*freq_ceil)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*freq_floor)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *, int __pyx_skip_dispatch);
  PY_LONG_LONG (*_c_cal_delta)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *, PyObject *, PyObject *);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*add_delta)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_add_delta *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*sub_delta)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pydatetime_4pydt_sub_delta *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pydatetime_pydt *(*_new)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *);
  PyDateTime_DateTime *(*_parse_dtobj)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *, PyObject *);
  int (*_parse_month)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *);
  int (*_parse_weekday)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *);
  PY_LONG_LONG (*_parse_frequency)(struct __pyx_obj_7cytimes_10pydatetime_pydt *, PyObject *);
};
static struct __pyx_vtabstruct_7cytimes_10pydatetime_pydt *__pyx_vtabptr_7cytimes_10pydatetime_pydt;


/* "cytimes/pddatetime.py":54
 * # pddt (Pandas Datetime) ----------------------------------------------------------------------
 * @cython.cclass
 * class pddt:             # <<<<<<<<<<<<<<
 *     """Represents the pddt (Pandas Datetime) that makes
 *     working with Series[Timestamp] easier.
 */

struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt {
  PyObject *(*_c_unit)(struct __pyx_obj_7cytimes_10pddatetime_pddt *);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_year_1st)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_year_lst)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_curr_year)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_year *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_prev_year)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_year *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_next_year)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_year *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_year)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_quarter_1st)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_quarter_lst)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_curr_quarter)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_quarter *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_prev_quarter)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_quarter *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_next_quarter)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_quarter *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_quarter)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_month_1st)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_month_lst)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_curr_month)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_prev_month)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_month *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_next_month)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_month *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_month)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*_c_to_curr_weekday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_monday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_tuesday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_wednesday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_thursday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_friday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_saturday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_sunday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_curr_weekday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_weekday *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_prev_weekday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_weekday *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_next_weekday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_weekday *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_weekday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_yesterday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_tomorrow)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_day)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_time_start)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_time_end)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*to_time)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_time *__pyx_optional_args);
  PyObject *(*_c_tz_localize)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *);
  PyObject *(*_c_tz_convert)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*tz_localize)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_localize *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*tz_convert)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_convert *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*tz_switch)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_switch *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*astimezone)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_astimezone *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*freq_round)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_round *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*freq_ceil)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_ceil *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*freq_floor)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_floor *__pyx_optional_args);
  PyObject *(*_c_cal_delta)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*add_delta)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_add_delta *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*sub_delta)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_sub_delta *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*as_unit)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*_new)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *);
  PyDateTime_DateTime *(*_parse_dtobj)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, int);
  PyObject *(*_parse_dtsobj)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *, int);
  PyObject *(*_parse_dtsobj_fallback)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *);
  int (*_parse_month)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
  int (*_parse_weekday)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
  PyObject *(*_parse_frequency)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
  PyObject *(*_adjust_unit)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, int);
  PyObject *(*_arr_to_series)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
  PyObject *(*_arr_to_tdindex)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *);
  PyObject *(*_obj_to_pddt)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *);
  PyObject *(*_obj_to_series)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
  int (*_validate_amb_nonex)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *);
  int (*_raise_error)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error *__pyx_optional_args);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *(*copy)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *__pyx_vtabptr_7cytimes_10pddatetime_pddt;
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *);
static CYTHON_INLINE struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_tz_localize(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_tz_convert(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_cal_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *);
static CYTHON_INLINE struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt__new(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *);
static CYTHON_INLINE PyDateTime_DateTime *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtobj(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, int);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *, int);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj_fallback(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *);
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__parse_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__parse_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_frequency(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, int);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__obj_to_pddt(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *);
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *);
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__validate_amb_nonex(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *);
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error *__pyx_optional_args);
/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__))
  #define __Pyx_RefNannyFinishContextNogil() __Pyx_RefNannyFinishContext()
#endif
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_XINCREF(r)  do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyErrExceptionMatches.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyObjectGetAttrStrNoError.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* GetTopmostException.proto */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#if !CYTHON_VECTORCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
#endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\
    (sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif
#if !CYTHON_VECTORCALL
#if PY_VERSION_HEX >= 0x03080000
  #include "frameobject.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
  #define __Pxy_PyFrame_Initialize_Offsets()
  #define __Pyx_PyFrame_GetLocalsplus(frame)  ((frame)->f_localsplus)
#else
  static size_t __pyx_pyframe_localsplus_offset = 0;
  #include "frameobject.h"
  #define __Pxy_PyFrame_Initialize_Offsets()\
    ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
     (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
  #define __Pyx_PyFrame_GetLocalsplus(frame)\
    (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
#endif
#endif
#endif

/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs);

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* pybytes_as_double.proto */
static double __Pyx_SlowPyString_AsDouble(PyObject *obj);
static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length);
static CYTHON_INLINE double __Pyx_PyBytes_AsDouble(PyObject *obj) {
    char* as_c_string;
    Py_ssize_t size;
#if CYTHON_ASSUME_SAFE_MACROS
    as_c_string = PyBytes_AS_STRING(obj);
    size = PyBytes_GET_SIZE(obj);
#else
    if (PyBytes_AsStringAndSize(obj, &as_c_string, &size) < 0) {
        return (double)-1;
    }
#endif
    return __Pyx__PyBytes_AsDouble(obj, as_c_string, size);
}
static CYTHON_INLINE double __Pyx_PyByteArray_AsDouble(PyObject *obj) {
    char* as_c_string;
    Py_ssize_t size;
#if CYTHON_ASSUME_SAFE_MACROS
    as_c_string = PyByteArray_AS_STRING(obj);
    size = PyByteArray_GET_SIZE(obj);
#else
    as_c_string = PyByteArray_AsString(obj);
    if (as_c_string == NULL) {
        return (double)-1;
    }
    size = PyByteArray_Size(obj);
#endif
    return __Pyx__PyBytes_AsDouble(obj, as_c_string, size);
}

/* pyunicode_as_double.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY && CYTHON_ASSUME_SAFE_MACROS
static const char* __Pyx__PyUnicode_AsDouble_Copy(const void* data, const int kind, char* buffer, Py_ssize_t start, Py_ssize_t end) {
    int last_was_punctuation;
    Py_ssize_t i;
    last_was_punctuation = 1;
    for (i=start; i <= end; i++) {
        Py_UCS4 chr = PyUnicode_READ(kind, data, i);
        int is_punctuation = (chr == '_') | (chr == '.');
        *buffer = (char)chr;
        buffer += (chr != '_');
        if (unlikely(chr > 127)) goto parse_failure;
        if (unlikely(last_was_punctuation & is_punctuation)) goto parse_failure;
        last_was_punctuation = is_punctuation;
    }
    if (unlikely(last_was_punctuation)) goto parse_failure;
    *buffer = '\0';
    return buffer;
parse_failure:
    return NULL;
}
static double __Pyx__PyUnicode_AsDouble_inf_nan(const void* data, int kind, Py_ssize_t start, Py_ssize_t length) {
    int matches = 1;
    Py_UCS4 chr;
    Py_UCS4 sign = PyUnicode_READ(kind, data, start);
    int is_signed = (sign == '-') | (sign == '+');
    start += is_signed;
    length -= is_signed;
    switch (PyUnicode_READ(kind, data, start)) {
        #ifdef Py_NAN
        case 'n':
        case 'N':
            if (unlikely(length != 3)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+1);
            matches &= (chr == 'a') | (chr == 'A');
            chr = PyUnicode_READ(kind, data, start+2);
            matches &= (chr == 'n') | (chr == 'N');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_NAN : Py_NAN;
        #endif
        case 'i':
        case 'I':
            if (unlikely(length < 3)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+1);
            matches &= (chr == 'n') | (chr == 'N');
            chr = PyUnicode_READ(kind, data, start+2);
            matches &= (chr == 'f') | (chr == 'F');
            if (likely(length == 3 && matches))
                return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
            if (unlikely(length != 8)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+3);
            matches &= (chr == 'i') | (chr == 'I');
            chr = PyUnicode_READ(kind, data, start+4);
            matches &= (chr == 'n') | (chr == 'N');
            chr = PyUnicode_READ(kind, data, start+5);
            matches &= (chr == 'i') | (chr == 'I');
            chr = PyUnicode_READ(kind, data, start+6);
            matches &= (chr == 't') | (chr == 'T');
            chr = PyUnicode_READ(kind, data, start+7);
            matches &= (chr == 'y') | (chr == 'Y');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
        case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':
            break;
        default:
            goto parse_failure;
    }
    return 0.0;
parse_failure:
    return -1.0;
}
static double __Pyx_PyUnicode_AsDouble_WithSpaces(PyObject *obj) {
    double value;
    const char *last;
    char *end;
    Py_ssize_t start, length = PyUnicode_GET_LENGTH(obj);
    const int kind = PyUnicode_KIND(obj);
    const void* data = PyUnicode_DATA(obj);
    start = 0;
    while (Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, start)))
        start++;
    while (start < length - 1 && Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, length - 1)))
        length--;
    length -= start;
    if (unlikely(length <= 0)) goto fallback;
    value = __Pyx__PyUnicode_AsDouble_inf_nan(data, kind, start, length);
    if (unlikely(value == -1.0)) goto fallback;
    if (value != 0.0) return value;
    if (length < 40) {
        char number[40];
        last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length);
        if (unlikely(!last)) goto fallback;
        value = PyOS_string_to_double(number, &end, NULL);
    } else {
        char *number = (char*) PyMem_Malloc((length + 1) * sizeof(char));
        if (unlikely(!number)) goto fallback;
        last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length);
        if (unlikely(!last)) {
            PyMem_Free(number);
            goto fallback;
        }
        value = PyOS_string_to_double(number, &end, NULL);
        PyMem_Free(number);
    }
    if (likely(end == last) || (value == (double)-1 && PyErr_Occurred())) {
        return value;
    }
fallback:
    return __Pyx_SlowPyString_AsDouble(obj);
}
#endif
static CYTHON_INLINE double __Pyx_PyUnicode_AsDouble(PyObject *obj) {
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY && CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(__Pyx_PyUnicode_READY(obj) == -1))
        return (double)-1;
    if (likely(PyUnicode_IS_ASCII(obj))) {
        const char *s;
        Py_ssize_t length;
        s = PyUnicode_AsUTF8AndSize(obj, &length);
        return __Pyx__PyBytes_AsDouble(obj, s, length);
    }
    return __Pyx_PyUnicode_AsDouble_WithSpaces(obj);
#else
    return __Pyx_SlowPyString_AsDouble(obj);
#endif
}

/* PyDictVersioning.proto */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __pyx_dict_cached_value;\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyObjectFormatAndDecref.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f);
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f);

/* IncludeStringH.proto */
#include <string.h>

/* JoinPyUnicode.proto */
static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char);

/* ModInt[long].proto */
static CYTHON_INLINE long __Pyx_mod_long(long, long);

/* TupleAndListFromArray.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* BytesEquals.proto */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_Arg_VARARGS(args, i) PySequence_GetItem(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_Arg_VARARGS(args, i) PyTuple_GET_ITEM(args, i)
#else
    #define __Pyx_Arg_VARARGS(args, i) PyTuple_GetItem(args, i)
#endif
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_Arg_NewRef_VARARGS(arg) __Pyx_NewRef(arg)
    #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg)
#else
    #define __Pyx_Arg_NewRef_VARARGS(arg) arg
    #define __Pyx_Arg_XDECREF_VARARGS(arg)
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_Arg_FASTCALL(args, i) args[i]
    #define __Pyx_NumKwargs_FASTCALL(kwds) PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
    #define __Pyx_Arg_NewRef_FASTCALL(arg) arg  /* no-op, __Pyx_Arg_FASTCALL is direct and this needs
                                                   to have the same reference counting */
    #define __Pyx_Arg_XDECREF_FASTCALL(arg)
#else
    #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
    #define __Pyx_Arg_NewRef_FASTCALL(arg) __Pyx_Arg_NewRef_VARARGS(arg)
    #define __Pyx_Arg_XDECREF_FASTCALL(arg) __Pyx_Arg_XDECREF_VARARGS(arg)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_VARARGS(args, start), stop - start)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_FASTCALL(args, start), stop - start)
#else
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject *const *kwvalues,
    PyObject **argnames[],
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,
    const char* function_name);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* RaiseUnexpectedTypeError.proto */
static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)

/* PyObjectSetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

/* KeywordStringCheck.proto */
static int __Pyx_CheckKeywordStrings(PyObject *kw, const char* function_name, int kw_allowed);

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
#endif

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_FloorDivideObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyInt_FloorDivideObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceFloorDivide(op1, op2) : PyNumber_FloorDivide(op1, op2))
#endif

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* RaiseUnboundLocalError.proto */
static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname);

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyInt_MultiplyObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceMultiply(op1, op2) : PyNumber_Multiply(op1, op2))
#endif

/* DictGetItem.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* IncludeStructmemberH.proto */
#include <structmember.h>

/* FixUpExtensionType.proto */
#if CYTHON_USE_TYPE_SPECS
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);
#endif

/* FetchSharedCythonModule.proto */
static PyObject *__Pyx_FetchSharedCythonABIModule(void);

/* FetchCommonType.proto */
#if !CYTHON_USE_TYPE_SPECS
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);
#else
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases);
#endif

/* PyMethodNew.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    PyObject *typesModule=NULL, *methodType=NULL, *result=NULL;
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    typesModule = PyImport_ImportModule("types");
    if (!typesModule) return NULL;
    methodType = PyObject_GetAttrString(typesModule, "MethodType");
    Py_DECREF(typesModule);
    if (!methodType) return NULL;
    result = PyObject_CallFunctionObjArgs(methodType, func, self, NULL);
    Py_DECREF(methodType);
    return result;
}
#elif PY_MAJOR_VERSION >= 3
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#else
    #define __Pyx_PyMethod_New PyMethod_New
#endif

/* PyVectorcallFastCallDict.proto */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_CyFunction_GetClassObj(f)\
      (((__pyx_CyFunctionObject *) (f))->func_classobj)
#else
  #define __Pyx_CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject_HEAD
    PyObject *func;
#elif PY_VERSION_HEX < 0x030900B1
    PyCFunctionObject func;
#else
    PyCMethodObject func;
#endif
#if CYTHON_BACKPORT_VECTORCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if PY_VERSION_HEX < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
    PyObject *func_dict;
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    void *defaults;
    int defaults_pyobjects;
    size_t defaults_size;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
    PyObject *func_is_coroutine;
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc);
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m,
                                                         size_t size,
                                                         int pyobjects);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_BACKPORT_VECTORCALL
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* UnpackUnboundCMethod.proto */
typedef struct {
    PyObject *type;
    PyObject **method_name;
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;

/* CallUnboundCMethod0.proto */
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CallUnboundCMethod0(cfunc, self)\
    (likely((cfunc)->func) ?\
        (likely((cfunc)->flag == METH_NOARGS) ?  (*((cfunc)->func))(self, NULL) :\
         (PY_VERSION_HEX >= 0x030600B1 && likely((cfunc)->flag == METH_FASTCALL) ?\
            (PY_VERSION_HEX >= 0x030700A0 ?\
                (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0) :\
                (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL)) :\
          (PY_VERSION_HEX >= 0x030700A0 && (cfunc)->flag == (METH_FASTCALL | METH_KEYWORDS) ?\
            (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL) :\
            (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ?  ((*(PyCFunctionWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\
               ((cfunc)->flag == METH_VARARGS ?  (*((cfunc)->func))(self, __pyx_empty_tuple) :\
               __Pyx__CallUnboundCMethod0(cfunc, self)))))) :\
        __Pyx__CallUnboundCMethod0(cfunc, self))
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* PyUnicode_Unicode.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj);

/* GCCDiagnostics.proto */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* BuildPyUnicode.proto */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, char* chars, int clength,
                                                int prepend_sign, char padding_char);

/* CIntToPyUnicode.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_From_Py_ssize_t(Py_ssize_t value, Py_ssize_t width, char padding_char, char format_char);

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);

/* HasAttr.proto */
#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
#define __Pyx_HasAttr(o, n)  PyObject_HasAttrWithError(o, n)
#else
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
#endif

/* PyObjectCallNoArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

/* PyObjectGetMethod.proto */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);

/* PyObjectCallMethod0.proto */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* ValidateBasesTuple.proto */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases);
#endif

/* PyType_Ready.proto */
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);

/* PyObject_GenericGetAttrNoDict.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
#endif

/* PyObject_GenericGetAttr.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
#endif

/* SetVTable.proto */
static int __Pyx_SetVtable(PyTypeObject* typeptr , void* vtable);

/* GetVTable.proto */
static void* __Pyx_GetVtable(PyTypeObject *type);

/* MergeVTables.proto */
#if !CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_MergeVtables(PyTypeObject *type);
#endif

/* SetupReduce.proto */
#if !CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_setup_reduce(PyObject* type_obj);
#endif

/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_10
#define __PYX_HAVE_RT_ImportType_proto_3_0_10
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
#include <stdalign.h>
#endif
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) alignof(s)
#else
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) sizeof(void*)
#endif
enum __Pyx_ImportType_CheckSize_3_0_10 {
   __Pyx_ImportType_CheckSize_Error_3_0_10 = 0,
   __Pyx_ImportType_CheckSize_Warn_3_0_10 = 1,
   __Pyx_ImportType_CheckSize_Ignore_3_0_10 = 2
};
static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size);
#endif

/* ImportDottedModule.proto */
static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple);
#if PY_MAJOR_VERSION >= 3
static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple);
#endif

/* ClassMethod.proto */
#include "descrobject.h"
CYTHON_UNUSED static PyObject* __Pyx_Method_ClassMethod(PyObject *method);

/* GetNameInClass.proto */
#define __Pyx_GetNameInClass(var, nmspace, name)  (var) = __Pyx__GetNameInClass(nmspace, name)
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name);

/* CLineInTraceback.proto */
#ifdef CYTHON_CLINE_IN_TRACEBACK
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#else
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#endif

/* CodeObjectCache.proto */
#if !CYTHON_COMPILING_IN_LIMITED_API
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
#endif

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* RealImag.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    #define __Pyx_CREAL(z) ((z).real())
    #define __Pyx_CIMAG(z) ((z).imag())
  #else
    #define __Pyx_CREAL(z) (__real__(z))
    #define __Pyx_CIMAG(z) (__imag__(z))
  #endif
#else
    #define __Pyx_CREAL(z) ((z).real)
    #define __Pyx_CIMAG(z) ((z).imag)
#endif
#if defined(__cplusplus) && CYTHON_CCOMPLEX\
        && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
    #define __Pyx_SET_CREAL(z,x) ((z).real(x))
    #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
#else
    #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
    #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
#endif

/* Arithmetic.proto */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
    #define __Pyx_c_eq_float(a, b)   ((a)==(b))
    #define __Pyx_c_sum_float(a, b)  ((a)+(b))
    #define __Pyx_c_diff_float(a, b) ((a)-(b))
    #define __Pyx_c_prod_float(a, b) ((a)*(b))
    #define __Pyx_c_quot_float(a, b) ((a)/(b))
    #define __Pyx_c_neg_float(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
    #define __Pyx_c_conj_float(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs_float(z)     (::std::abs(z))
        #define __Pyx_c_pow_float(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero_float(z) ((z)==0)
    #define __Pyx_c_conj_float(z)    (conjf(z))
    #if 1
        #define __Pyx_c_abs_float(z)     (cabsf(z))
        #define __Pyx_c_pow_float(a, b)  (cpowf(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
    #if 1
        static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex);
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
    #endif
#endif

/* Arithmetic.proto */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
    #define __Pyx_c_eq_double(a, b)   ((a)==(b))
    #define __Pyx_c_sum_double(a, b)  ((a)+(b))
    #define __Pyx_c_diff_double(a, b) ((a)-(b))
    #define __Pyx_c_prod_double(a, b) ((a)*(b))
    #define __Pyx_c_quot_double(a, b) ((a)/(b))
    #define __Pyx_c_neg_double(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
    #define __Pyx_c_conj_double(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs_double(z)     (::std::abs(z))
        #define __Pyx_c_pow_double(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero_double(z) ((z)==0)
    #define __Pyx_c_conj_double(z)    (conj(z))
    #if 1
        #define __Pyx_c_abs_double(z)     (cabs(z))
        #define __Pyx_c_pow_double(a, b)  (cpow(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex);
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
    #endif
#endif

/* Arithmetic.proto */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
    #define __Pyx_c_eq_long__double(a, b)   ((a)==(b))
    #define __Pyx_c_sum_long__double(a, b)  ((a)+(b))
    #define __Pyx_c_diff_long__double(a, b) ((a)-(b))
    #define __Pyx_c_prod_long__double(a, b) ((a)*(b))
    #define __Pyx_c_quot_long__double(a, b) ((a)/(b))
    #define __Pyx_c_neg_long__double(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero_long__double(z) ((z)==(long double)0)
    #define __Pyx_c_conj_long__double(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs_long__double(z)     (::std::abs(z))
        #define __Pyx_c_pow_long__double(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero_long__double(z) ((z)==0)
    #define __Pyx_c_conj_long__double(z)    (conjl(z))
    #if 1
        #define __Pyx_c_abs_long__double(z)     (cabsl(z))
        #define __Pyx_c_pow_long__double(a, b)  (cpowl(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex);
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex);
    #if 1
        static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex);
        static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
    #endif
#endif

/* PyUCS4InUnicode.proto */
static CYTHON_INLINE int __Pyx_UnicodeContainsUCS4(PyObject* unicode, Py_UCS4 character);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PY_LONG_LONG(PY_LONG_LONG value);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp);
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#else
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* CheckBinaryVersion.proto */
static unsigned long __Pyx_get_runtime_version(void);
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* VoidPtrExport.proto */
static int __Pyx_ExportVoidPtr(PyObject *name, void *p, const char *sig);

/* VoidPtrImport.proto */
static int __Pyx_ImportVoidPtr_3_0_10(PyObject *module, const char *name, void **p, const char *sig);

/* FunctionImport.proto */
static int __Pyx_ImportFunction_3_0_10(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);

/* #### Code section: module_declarations ### */
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self); /* proto*/
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self); /* proto*/
static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self); /* proto*/
static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE double __pyx_f_7cpython_7complex_7complex_4real_real(PyComplexObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE double __pyx_f_7cpython_7complex_7complex_4imag_imag(PyComplexObject *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4date_4year_year(PyDateTime_Date *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4date_5month_month(PyDateTime_Date *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4date_3day_day(PyDateTime_Date *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_4hour_hour(PyDateTime_Time *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_6minute_minute(PyDateTime_Time *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_6second_second(PyDateTime_Time *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_11microsecond_microsecond(PyDateTime_Time *__pyx_v_self); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cpython_8datetime_4time_6tzinfo_tzinfo(PyDateTime_Time *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_4fold_fold(PyDateTime_Time *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_4year_year(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_5month_month(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_3day_day(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_4hour_hour(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_6minute_minute(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_6second_second(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_11microsecond_microsecond(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cpython_8datetime_8datetime_6tzinfo_tzinfo(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_4fold_fold(PyDateTime_DateTime *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_9timedelta_3day_day(PyDateTime_Delta *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_9timedelta_6second_second(PyDateTime_Delta *__pyx_v_self); /* proto*/
static CYTHON_INLINE int __pyx_f_7cpython_8datetime_9timedelta_11microsecond_microsecond(PyDateTime_Delta *__pyx_v_self); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_year_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_year_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_year *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_year *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_next_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_year *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_quarter *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_quarter *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_next_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_quarter *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_month_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_month_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_month *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_next_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_month *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_monday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_tuesday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_wednesday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_thursday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_friday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_saturday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_sunday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_weekday *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_weekday *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_next_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_weekday *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_yesterday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_tomorrow(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_day(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_time_start(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_time_end(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_time(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_time *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_tz_localize(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_localize *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_tz_convert(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_convert *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_tz_switch(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_targ_tz, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_switch *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_astimezone(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_astimezone *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_freq_round(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_round *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_freq_ceil(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_ceil *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_freq_floor(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_floor *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_add_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_add_delta *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_sub_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_sub_delta *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_as_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_unit, int __pyx_skip_dispatch); /* proto*/
static CYTHON_INLINE struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt__new(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtsobj, PyObject *__pyx_v_name, PyObject *__pyx_v_unit, PyObject *__pyx_v_copy); /* proto*/
static CYTHON_INLINE PyDateTime_DateTime *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtobj(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtobj, PyObject *__pyx_v_default, int __pyx_v_strict); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtsobj, PyObject *__pyx_v_default, PyObject *__pyx_v_name, PyObject *__pyx_v_unit, int __pyx_v_copy); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj_fallback(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtsobj, PyObject *__pyx_v_default, PyObject *__pyx_v_name, PyObject *__pyx_v_unit, int __pyx_v_is_series, PyObject *__pyx_v_exc); /* proto*/
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__parse_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month); /* proto*/
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__parse_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_frequency(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dt, PyObject *__pyx_v_unit, int __pyx_v_copy); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_arr); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_arr, PyObject *__pyx_v_unit); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__obj_to_pddt(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_name, PyObject *__pyx_v_unit); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_obj); /* proto*/
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__validate_amb_nonex(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto*/
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_err, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error *__pyx_optional_args); /* proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_copy(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto*/
static CYTHON_INLINE struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_weekday); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_tz_localize(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dt, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_tz_convert(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dt, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_cal_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_unit, PyObject *__pyx_v_inclusive); /* proto*/

/* Module declarations from "libc.string" */

/* Module declarations from "libc.stdio" */

/* Module declarations from "__builtin__" */

/* Module declarations from "cpython.type" */

/* Module declarations from "cpython.version" */

/* Module declarations from "cpython.exc" */

/* Module declarations from "cpython.module" */

/* Module declarations from "cpython.mem" */

/* Module declarations from "cpython.tuple" */

/* Module declarations from "cpython.list" */

/* Module declarations from "cpython.sequence" */

/* Module declarations from "cpython.mapping" */

/* Module declarations from "cpython.iterator" */

/* Module declarations from "cpython.number" */

/* Module declarations from "cpython.int" */

/* Module declarations from "__builtin__" */

/* Module declarations from "cpython.bool" */

/* Module declarations from "cpython.long" */

/* Module declarations from "cpython.float" */

/* Module declarations from "__builtin__" */

/* Module declarations from "cpython.complex" */

/* Module declarations from "cpython.string" */

/* Module declarations from "libc.stddef" */

/* Module declarations from "cpython.unicode" */

/* Module declarations from "cpython.pyport" */

/* Module declarations from "cpython.dict" */

/* Module declarations from "cpython.instance" */

/* Module declarations from "cpython.function" */

/* Module declarations from "cpython.method" */

/* Module declarations from "cpython.weakref" */

/* Module declarations from "cpython.getargs" */

/* Module declarations from "cpython.pythread" */

/* Module declarations from "cpython.pystate" */

/* Module declarations from "cpython.cobject" */

/* Module declarations from "cpython.oldbuffer" */

/* Module declarations from "cpython.set" */

/* Module declarations from "cpython.buffer" */

/* Module declarations from "cpython.bytes" */

/* Module declarations from "cpython.pycapsule" */

/* Module declarations from "cpython.contextvars" */

/* Module declarations from "cpython" */

/* Module declarations from "cpython.object" */

/* Module declarations from "cpython.ref" */

/* Module declarations from "numpy" */

/* Module declarations from "numpy" */
static CYTHON_INLINE int __pyx_f_5numpy_import_array(void); /*proto*/
static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void); /*proto*/
static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *); /*proto*/

/* Module declarations from "datetime" */

/* Module declarations from "cpython.datetime" */
static CYTHON_INLINE void __pyx_f_7cpython_8datetime_import_datetime(void); /*proto*/
static CYTHON_INLINE PyDateTime_DateTime *__pyx_f_7cpython_8datetime_datetime_new(int, int, int, int, int, int, int, PyObject *, struct __pyx_opt_args_7cpython_8datetime_datetime_new *__pyx_optional_args); /*proto*/

/* Module declarations from "libc.math" */

/* Module declarations from "libc.stdlib" */

/* Module declarations from "cytimes.cyparser" */
static PyObject **__pyx_vp_7cytimes_8cyparser_CONFIG_PERTAIN = 0;
#define __pyx_v_7cytimes_8cyparser_CONFIG_PERTAIN (*__pyx_vp_7cytimes_8cyparser_CONFIG_PERTAIN)
static PyObject **__pyx_vp_7cytimes_8cyparser_CONFIG_JUMP = 0;
#define __pyx_v_7cytimes_8cyparser_CONFIG_JUMP (*__pyx_vp_7cytimes_8cyparser_CONFIG_JUMP)
static PyObject **__pyx_vp_7cytimes_8cyparser_CONFIG_UTC = 0;
#define __pyx_v_7cytimes_8cyparser_CONFIG_UTC (*__pyx_vp_7cytimes_8cyparser_CONFIG_UTC)
static PyObject **__pyx_vp_7cytimes_8cyparser_CONFIG_TZ = 0;
#define __pyx_v_7cytimes_8cyparser_CONFIG_TZ (*__pyx_vp_7cytimes_8cyparser_CONFIG_TZ)
static PyObject **__pyx_vp_7cytimes_8cyparser_CONFIG_MONTH = 0;
#define __pyx_v_7cytimes_8cyparser_CONFIG_MONTH (*__pyx_vp_7cytimes_8cyparser_CONFIG_MONTH)
static PyObject **__pyx_vp_7cytimes_8cyparser_CONFIG_WEEKDAY = 0;
#define __pyx_v_7cytimes_8cyparser_CONFIG_WEEKDAY (*__pyx_vp_7cytimes_8cyparser_CONFIG_WEEKDAY)
static PyObject **__pyx_vp_7cytimes_8cyparser_CONFIG_HMS = 0;
#define __pyx_v_7cytimes_8cyparser_CONFIG_HMS (*__pyx_vp_7cytimes_8cyparser_CONFIG_HMS)
static PyObject **__pyx_vp_7cytimes_8cyparser_CONFIG_AMPM = 0;
#define __pyx_v_7cytimes_8cyparser_CONFIG_AMPM (*__pyx_vp_7cytimes_8cyparser_CONFIG_AMPM)
static unsigned int (*__pyx_vp_7cytimes_8cyparser_US_FRACTION_CORRECTION)[5] = 0;
#define __pyx_v_7cytimes_8cyparser_US_FRACTION_CORRECTION (*__pyx_vp_7cytimes_8cyparser_US_FRACTION_CORRECTION)
static PyObject **__pyx_vp_7cytimes_8cyparser_TIMEZONE_NAME_LOCAL = 0;
#define __pyx_v_7cytimes_8cyparser_TIMEZONE_NAME_LOCAL (*__pyx_vp_7cytimes_8cyparser_TIMEZONE_NAME_LOCAL)
static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_ascii_digit(Py_UCS4); /*proto*/
static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_ascii_alpha_upper(Py_UCS4); /*proto*/
static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_ascii_alpha_lower(Py_UCS4); /*proto*/

/* Module declarations from "cytimes" */

/* Module declarations from "cytimes.typeref" */
static PyObject **__pyx_vp_7cytimes_7typeref_ZONEINFO = 0;
#define __pyx_v_7cytimes_7typeref_ZONEINFO (*__pyx_vp_7cytimes_7typeref_ZONEINFO)
static PyObject **__pyx_vp_7cytimes_7typeref_STRUCT_TIME = 0;
#define __pyx_v_7cytimes_7typeref_STRUCT_TIME (*__pyx_vp_7cytimes_7typeref_STRUCT_TIME)
static PyObject **__pyx_vp_7cytimes_7typeref_DATETIME64 = 0;
#define __pyx_v_7cytimes_7typeref_DATETIME64 (*__pyx_vp_7cytimes_7typeref_DATETIME64)
static PyObject **__pyx_vp_7cytimes_7typeref_DT64_ARRAY = 0;
#define __pyx_v_7cytimes_7typeref_DT64_ARRAY (*__pyx_vp_7cytimes_7typeref_DT64_ARRAY)
static PyObject **__pyx_vp_7cytimes_7typeref_TIMEDELTA64 = 0;
#define __pyx_v_7cytimes_7typeref_TIMEDELTA64 (*__pyx_vp_7cytimes_7typeref_TIMEDELTA64)
static PyObject **__pyx_vp_7cytimes_7typeref_TD64_ARRAY = 0;
#define __pyx_v_7cytimes_7typeref_TD64_ARRAY (*__pyx_vp_7cytimes_7typeref_TD64_ARRAY)
static PyObject **__pyx_vp_7cytimes_7typeref_SERIES = 0;
#define __pyx_v_7cytimes_7typeref_SERIES (*__pyx_vp_7cytimes_7typeref_SERIES)
static PyObject **__pyx_vp_7cytimes_7typeref_DATETIMEINDEX = 0;
#define __pyx_v_7cytimes_7typeref_DATETIMEINDEX (*__pyx_vp_7cytimes_7typeref_DATETIMEINDEX)
static PyObject **__pyx_vp_7cytimes_7typeref_TIMESTAMP = 0;
#define __pyx_v_7cytimes_7typeref_TIMESTAMP (*__pyx_vp_7cytimes_7typeref_TIMESTAMP)
static PyObject **__pyx_vp_7cytimes_7typeref_DT64TZ_ARRAY = 0;
#define __pyx_v_7cytimes_7typeref_DT64TZ_ARRAY (*__pyx_vp_7cytimes_7typeref_DT64TZ_ARRAY)
static PyObject **__pyx_vp_7cytimes_7typeref_TIMEDELTAINDEX = 0;
#define __pyx_v_7cytimes_7typeref_TIMEDELTAINDEX (*__pyx_vp_7cytimes_7typeref_TIMEDELTAINDEX)
static PyObject **__pyx_vp_7cytimes_7typeref_TIMEDELTA = 0;
#define __pyx_v_7cytimes_7typeref_TIMEDELTA (*__pyx_vp_7cytimes_7typeref_TIMEDELTA)
static PyObject **__pyx_vp_7cytimes_7typeref_BASEOFFSET = 0;
#define __pyx_v_7cytimes_7typeref_BASEOFFSET (*__pyx_vp_7cytimes_7typeref_BASEOFFSET)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_DATEOFFSET = 0;
#define __pyx_v_7cytimes_7typeref_OFST_DATEOFFSET (*__pyx_vp_7cytimes_7typeref_OFST_DATEOFFSET)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_MICRO = 0;
#define __pyx_v_7cytimes_7typeref_OFST_MICRO (*__pyx_vp_7cytimes_7typeref_OFST_MICRO)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_DAY = 0;
#define __pyx_v_7cytimes_7typeref_OFST_DAY (*__pyx_vp_7cytimes_7typeref_OFST_DAY)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_MONTHBEGIN = 0;
#define __pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN (*__pyx_vp_7cytimes_7typeref_OFST_MONTHBEGIN)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_MONTHEND = 0;
#define __pyx_v_7cytimes_7typeref_OFST_MONTHEND (*__pyx_vp_7cytimes_7typeref_OFST_MONTHEND)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_QUARTERBEGIN = 0;
#define __pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN (*__pyx_vp_7cytimes_7typeref_OFST_QUARTERBEGIN)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_QUARTEREND = 0;
#define __pyx_v_7cytimes_7typeref_OFST_QUARTEREND (*__pyx_vp_7cytimes_7typeref_OFST_QUARTEREND)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_YEARBEGIN = 0;
#define __pyx_v_7cytimes_7typeref_OFST_YEARBEGIN (*__pyx_vp_7cytimes_7typeref_OFST_YEARBEGIN)
static PyObject **__pyx_vp_7cytimes_7typeref_OFST_YEAREND = 0;
#define __pyx_v_7cytimes_7typeref_OFST_YEAREND (*__pyx_vp_7cytimes_7typeref_OFST_YEAREND)
static PyObject **__pyx_vp_7cytimes_7typeref_PARSERINFO = 0;
#define __pyx_v_7cytimes_7typeref_PARSERINFO (*__pyx_vp_7cytimes_7typeref_PARSERINFO)
static PyObject **__pyx_vp_7cytimes_7typeref_RELATIVEDELTA = 0;
#define __pyx_v_7cytimes_7typeref_RELATIVEDELTA (*__pyx_vp_7cytimes_7typeref_RELATIVEDELTA)

/* Module declarations from "cython" */

/* Module declarations from "libc.time" */

/* Module declarations from "cytimes.cydatetime" */
static unsigned int (*__pyx_vp_7cytimes_10cydatetime_DAYS_BR_MONTH)[13] = 0;
#define __pyx_v_7cytimes_10cydatetime_DAYS_BR_MONTH (*__pyx_vp_7cytimes_10cydatetime_DAYS_BR_MONTH)
static unsigned int (*__pyx_vp_7cytimes_10cydatetime_DAYS_IN_MONTH)[13] = 0;
#define __pyx_v_7cytimes_10cydatetime_DAYS_IN_MONTH (*__pyx_vp_7cytimes_10cydatetime_DAYS_IN_MONTH)
static unsigned int (*__pyx_vp_7cytimes_10cydatetime_DAYS_BR_QUARTER)[5] = 0;
#define __pyx_v_7cytimes_10cydatetime_DAYS_BR_QUARTER (*__pyx_vp_7cytimes_10cydatetime_DAYS_BR_QUARTER)
static PyArrayObject **__pyx_vp_7cytimes_10cydatetime_DAYS_BR_QUARTER_NDARRAY = 0;
#define __pyx_v_7cytimes_10cydatetime_DAYS_BR_QUARTER_NDARRAY (*__pyx_vp_7cytimes_10cydatetime_DAYS_BR_QUARTER_NDARRAY)
static unsigned int (*__pyx_vp_7cytimes_10cydatetime_DAYS_IN_QUARTER)[5] = 0;
#define __pyx_v_7cytimes_10cydatetime_DAYS_IN_QUARTER (*__pyx_vp_7cytimes_10cydatetime_DAYS_IN_QUARTER)
static unsigned int (*__pyx_vp_7cytimes_10cydatetime_MONTH_TO_QUARTER)[13] = 0;
#define __pyx_v_7cytimes_10cydatetime_MONTH_TO_QUARTER (*__pyx_vp_7cytimes_10cydatetime_MONTH_TO_QUARTER)
static PyDateTime_TZInfo **__pyx_vp_7cytimes_10cydatetime_UTC = 0;
#define __pyx_v_7cytimes_10cydatetime_UTC (*__pyx_vp_7cytimes_10cydatetime_UTC)
static PyDateTime_DateTime **__pyx_vp_7cytimes_10cydatetime_EPOCH_UTC = 0;
#define __pyx_v_7cytimes_10cydatetime_EPOCH_UTC (*__pyx_vp_7cytimes_10cydatetime_EPOCH_UTC)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_EPOCH_US = 0;
#define __pyx_v_7cytimes_10cydatetime_EPOCH_US (*__pyx_vp_7cytimes_10cydatetime_EPOCH_US)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_EPOCH_SEC = 0;
#define __pyx_v_7cytimes_10cydatetime_EPOCH_SEC (*__pyx_vp_7cytimes_10cydatetime_EPOCH_SEC)
static int *__pyx_vp_7cytimes_10cydatetime_EPOCH_DAY = 0;
#define __pyx_v_7cytimes_10cydatetime_EPOCH_DAY (*__pyx_vp_7cytimes_10cydatetime_EPOCH_DAY)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_DT_MAX_US = 0;
#define __pyx_v_7cytimes_10cydatetime_DT_MAX_US (*__pyx_vp_7cytimes_10cydatetime_DT_MAX_US)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_DT_MIN_US = 0;
#define __pyx_v_7cytimes_10cydatetime_DT_MIN_US (*__pyx_vp_7cytimes_10cydatetime_DT_MIN_US)
static PyDateTime_Time **__pyx_vp_7cytimes_10cydatetime_TIME_START = 0;
#define __pyx_v_7cytimes_10cydatetime_TIME_START (*__pyx_vp_7cytimes_10cydatetime_TIME_START)
static PyDateTime_Time **__pyx_vp_7cytimes_10cydatetime_TIME_END = 0;
#define __pyx_v_7cytimes_10cydatetime_TIME_END (*__pyx_vp_7cytimes_10cydatetime_TIME_END)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_US_DAY = 0;
#define __pyx_v_7cytimes_10cydatetime_US_DAY (*__pyx_vp_7cytimes_10cydatetime_US_DAY)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_US_HOUR = 0;
#define __pyx_v_7cytimes_10cydatetime_US_HOUR (*__pyx_vp_7cytimes_10cydatetime_US_HOUR)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_NS_DAY = 0;
#define __pyx_v_7cytimes_10cydatetime_NS_DAY (*__pyx_vp_7cytimes_10cydatetime_NS_DAY)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_NS_HOUR = 0;
#define __pyx_v_7cytimes_10cydatetime_NS_HOUR (*__pyx_vp_7cytimes_10cydatetime_NS_HOUR)
static PY_LONG_LONG *__pyx_vp_7cytimes_10cydatetime_NS_MINUTE = 0;
#define __pyx_v_7cytimes_10cydatetime_NS_MINUTE (*__pyx_vp_7cytimes_10cydatetime_NS_MINUTE)
static PyObject **__pyx_vp_7cytimes_10cydatetime_TD_UNIT_ADJUSTMENT = 0;
#define __pyx_v_7cytimes_10cydatetime_TD_UNIT_ADJUSTMENT (*__pyx_vp_7cytimes_10cydatetime_TD_UNIT_ADJUSTMENT)
static PyObject **__pyx_vp_7cytimes_10cydatetime_FN_TIME_LOCALTIME = 0;
#define __pyx_v_7cytimes_10cydatetime_FN_TIME_LOCALTIME (*__pyx_vp_7cytimes_10cydatetime_FN_TIME_LOCALTIME)
static CYTHON_INLINE struct tm __pyx_f_7cytimes_10cydatetime_localize_time(double); /*proto*/
static CYTHON_INLINE int __pyx_f_7cytimes_10cydatetime_raise_from_errno(void); /*proto*/
static unsigned int (*__pyx_f_7cytimes_10cydatetime_ymd_to_ordinal)(unsigned int, unsigned int, unsigned int); /*proto*/
static PyDateTime_DateTime *(*__pyx_f_7cytimes_10cydatetime_gen_dt_now)(void); /*proto*/
static PyDateTime_DateTime *(*__pyx_f_7cytimes_10cydatetime_gen_dt_now_tz)(PyDateTime_TZInfo *); /*proto*/
static PyDateTime_DateTime *(*__pyx_f_7cytimes_10cydatetime_dt_fr_dt)(PyDateTime_DateTime *); /*proto*/
static PyDateTime_DateTime *(*__pyx_f_7cytimes_10cydatetime_dt_fr_date)(PyDateTime_Date *, struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_date *__pyx_optional_args); /*proto*/
static PyDateTime_DateTime *(*__pyx_f_7cytimes_10cydatetime_dt_replace)(PyDateTime_DateTime *, struct __pyx_opt_args_7cytimes_10cydatetime_dt_replace *__pyx_optional_args); /*proto*/
static PyDateTime_DateTime *(*__pyx_f_7cytimes_10cydatetime_dt_replace_tzinfo)(PyDateTime_DateTime *, PyDateTime_TZInfo *); /*proto*/
static PyDateTime_DateTime *(*__pyx_f_7cytimes_10cydatetime_dt_astimezone)(PyDateTime_DateTime *, PyDateTime_TZInfo *); /*proto*/
static PyDateTime_TZInfo *(*__pyx_f_7cytimes_10cydatetime_gen_tzinfo_local)(struct __pyx_opt_args_7cytimes_10cydatetime_gen_tzinfo_local *__pyx_optional_args); /*proto*/
static PyObject *(*__pyx_f_7cytimes_10cydatetime_tzinfo_name)(PyObject *, PyDateTime_DateTime *); /*proto*/
static PyDateTime_DateTime *(*__pyx_f_7cytimes_10cydatetime_dt64_to_dt)(PyObject *); /*proto*/
static PyArrayObject *(*__pyx_f_7cytimes_10cydatetime_dt64array_to_days)(PyArrayObject *); /*proto*/
static PyArrayObject *(*__pyx_f_7cytimes_10cydatetime_dt64array_to_hours)(PyArrayObject *); /*proto*/
static PyArrayObject *(*__pyx_f_7cytimes_10cydatetime_dt64array_to_minutes)(PyArrayObject *); /*proto*/
static PyArrayObject *(*__pyx_f_7cytimes_10cydatetime_dt64array_to_seconds)(PyArrayObject *); /*proto*/
static PyArrayObject *(*__pyx_f_7cytimes_10cydatetime_dt64array_to_milliseconds)(PyArrayObject *); /*proto*/
static PyArrayObject *(*__pyx_f_7cytimes_10cydatetime_dt64array_to_microseconds)(PyArrayObject *); /*proto*/
static PyArrayObject *(*__pyx_f_7cytimes_10cydatetime_dt64array_to_nanoseconds)(PyArrayObject *); /*proto*/
static PyObject *(*__pyx_f_7cytimes_10cydatetime_get_dt64series_unit)(PyObject *); /*proto*/
static PyObject *(*__pyx_f_7cytimes_10cydatetime_dt64series_to_seconds)(PyObject *); /*proto*/
static PyObject *(*__pyx_f_7cytimes_10cydatetime_dt64series_to_microseconds)(PyObject *); /*proto*/
static PyObject *(*__pyx_f_7cytimes_10cydatetime_dt64series_to_ordinals)(PyObject *); /*proto*/
static PyObject *(*__pyx_f_7cytimes_10cydatetime_dt64series_to_timestamps)(PyObject *); /*proto*/
static PyObject *(*__pyx_f_7cytimes_10cydatetime_get_td64series_unit)(PyObject *); /*proto*/

/* Module declarations from "cytimes.cydelta" */
static PyObject **__pyx_vp_7cytimes_7cydelta_WEEKDAY_REPRS = 0;
#define __pyx_v_7cytimes_7cydelta_WEEKDAY_REPRS (*__pyx_vp_7cytimes_7cydelta_WEEKDAY_REPRS)
static CYTHON_INLINE int __pyx_f_7cytimes_7cydelta_combine_ms_us(int, int); /*proto*/

/* Module declarations from "cytimes.pydatetime" */
static PyObject **__pyx_vp_7cytimes_10pydatetime_TIMEZONE_AVAILABLE = 0;
#define __pyx_v_7cytimes_10pydatetime_TIMEZONE_AVAILABLE (*__pyx_vp_7cytimes_10pydatetime_TIMEZONE_AVAILABLE)
static CYTHON_INLINE PyDateTime_DateTime *__pyx_f_7cytimes_10pydatetime_access_pydt(struct __pyx_obj_7cytimes_10pydatetime_pydt *); /*proto*/

/* Module declarations from "cytimes.pddatetime" */
static PyObject *__pyx_v_7cytimes_10pddatetime_UNIT_FREQUENCY = 0;
static PyObject *__pyx_v_7cytimes_10pddatetime_FN_PD_DATERANGE = 0;
static PyObject *__pyx_v_7cytimes_10pddatetime_FN_PD_TODATETIME = 0;
static PyObject *__pyx_v_7cytimes_10pddatetime_FN_PD_TOTIMEDELTA = 0;
static PyObject *__pyx_v_7cytimes_10pddatetime_FN_NP_ABS = 0;
static PyObject *__pyx_v_7cytimes_10pddatetime_FN_NP_FULL = 0;
static PyObject *__pyx_v_7cytimes_10pddatetime_FN_NP_WHERE = 0;
static PyObject *__pyx_v_7cytimes_10pddatetime_FN_NP_MIN = 0;
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_access_pddt(struct __pyx_obj_7cytimes_10pddatetime_pddt *); /*proto*/
static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_parse_tzinfo(PyObject *); /*proto*/
static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_ndarray_setitem_1d(PyArrayObject *, npy_intp, PyObject *); /*proto*/
static PyObject *__pyx_f_7cytimes_10pddatetime___pyx_unpickle_pddt__set_state(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *); /*proto*/
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "cytimes.pddatetime"
extern int __pyx_module_is_main_cytimes__pddatetime;
int __pyx_module_is_main_cytimes__pddatetime = 0;

/* Implementation of "cytimes.pddatetime" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_OverflowError;
static PyObject *__pyx_builtin_ImportError;
static PyObject *__pyx_builtin_RuntimeError;
static PyObject *__pyx_builtin_MemoryError;
static PyObject *__pyx_builtin_range;
/* #### Code section: string_decls ### */
static const char __pyx_k_D[] = "D";
static const char __pyx_k_M[] = "M";
static const char __pyx_k_W[] = "W";
static const char __pyx_k_Y[] = "Y";
static const char __pyx_k_d[] = "d";
static const char __pyx_k_h[] = "h";
static const char __pyx_k_m[] = "m";
static const char __pyx_k_o[] = "o";
static const char __pyx_k_s[] = "s";
static const char __pyx_k__7[] = " ";
static const char __pyx_k__8[] = ".";
static const char __pyx_k_dt[] = "dt";
static const char __pyx_k_gc[] = "gc";
static const char __pyx_k_ms[] = "ms";
static const char __pyx_k_np[] = "np";
static const char __pyx_k_ns[] = "ns";
static const char __pyx_k_to[] = "]' to '[";
static const char __pyx_k_tz[] = "tz";
static const char __pyx_k_us[] = "us";
static const char __pyx_k_vs[] = " vs ";
static const char __pyx_k_NaT[] = "NaT";
static const char __pyx_k__17[] = "<'";
static const char __pyx_k__18[] = "'> ";
static const char __pyx_k__19[] = "'.";
static const char __pyx_k__20[] = "]': ";
static const char __pyx_k__21[] = "'>\n";
static const char __pyx_k__22[] = ": ";
static const char __pyx_k__23[] = "<";
static const char __pyx_k__24[] = "(\n";
static const char __pyx_k__25[] = ")>";
static const char __pyx_k__27[] = "*";
static const char __pyx_k_abs[] = "abs";
static const char __pyx_k_all[] = "__all__";
static const char __pyx_k_and[] = "' and '";
static const char __pyx_k_arr[] = "arr";
static const char __pyx_k_cfg[] = "cfg";
static const char __pyx_k_cls[] = "cls";
static const char __pyx_k_day[] = "day";
static const char __pyx_k_end[] = "end";
static const char __pyx_k_err[] = "err";
static const char __pyx_k_int[] = "int";
static const char __pyx_k_min[] = "min";
static const char __pyx_k_new[] = "__new__";
static const char __pyx_k_now[] = "now";
static const char __pyx_k_one[] = "one";
static const char __pyx_k_str[] = "str";
static const char __pyx_k_utc[] = "utc";
static const char __pyx_k_None[] = "None";
static const char __pyx_k__155[] = "?";
static const char __pyx_k_args[] = "args";
static const char __pyx_k_bool[] = "bool";
static const char __pyx_k_both[] = "both";
static const char __pyx_k_ceil[] = "ceil";
static const char __pyx_k_copy[] = "copy";
static const char __pyx_k_cydt[] = "cydt";
static const char __pyx_k_date[] = "date";
static const char __pyx_k_days[] = "days";
static const char __pyx_k_dict[] = "__dict__";
static const char __pyx_k_freq[] = "freq";
static const char __pyx_k_full[] = "full";
static const char __pyx_k_hour[] = "hour";
static const char __pyx_k_iter[] = "__iter__";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_name[] = "name";
static const char __pyx_k_pddt[] = "pddt";
static const char __pyx_k_pydt[] = "pydt";
static const char __pyx_k_repr[] = "__repr__";
static const char __pyx_k_self[] = "self";
static const char __pyx_k_size[] = "size";
static const char __pyx_k_spec[] = "__spec__";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_time[] = "time";
static const char __pyx_k_unit[] = "unit";
static const char __pyx_k_week[] = "week";
static const char __pyx_k_year[] = "year";
static const char __pyx_k_Index[] = "Index";
static const char __pyx_k_M8_us[] = "<M8[us]";
static const char __pyx_k_Y_m_d[] = "%Y-%m-%d";
static const char __pyx_k_apply[] = "apply";
static const char __pyx_k_array[] = "__array__";
static const char __pyx_k_cache[] = "cache";
static const char __pyx_k_class[] = "__class__";
static const char __pyx_k_dtobj[] = "dtobj";
static const char __pyx_k_dtype[] = "dtype";
static const char __pyx_k_exact[] = "exact";
static const char __pyx_k_floor[] = "floor";
static const char __pyx_k_hours[] = "hours";
static const char __pyx_k_index[] = "index";
static const char __pyx_k_infer[] = "infer";
static const char __pyx_k_lower[] = "lower";
static const char __pyx_k_month[] = "month";
static const char __pyx_k_naive[] = "naive";
static const char __pyx_k_numpy[] = "numpy";
static const char __pyx_k_other[] = "other";
static const char __pyx_k_raise[] = "raise";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_round[] = "round";
static const char __pyx_k_start[] = "start";
static const char __pyx_k_state[] = "state";
static const char __pyx_k_weeks[] = "weeks";
static const char __pyx_k_where[] = "where";
static const char __pyx_k_years[] = "years";
static const char __pyx_k_Config[] = "Config";
static const char __pyx_k_Series[] = "Series";
static const char __pyx_k_copy_2[] = "__copy__";
static const char __pyx_k_day1st[] = "day1st";
static const char __pyx_k_dict_2[] = "_dict";
static const char __pyx_k_dtsobj[] = "dtsobj";
static const char __pyx_k_enable[] = "enable";
static const char __pyx_k_equals[] = "equals";
static const char __pyx_k_errors[] = "errors";
static const char __pyx_k_format[] = "format";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_is_day[] = "is_day";
static const char __pyx_k_kwargs[] = "kwargs";
static const char __pyx_k_minute[] = "minute";
static const char __pyx_k_months[] = "months";
static const char __pyx_k_name_2[] = "__name__";
static const char __pyx_k_object[] = "object";
static const char __pyx_k_offset[] = "offset";
static const char __pyx_k_pandas[] = "pandas";
static const char __pyx_k_pddt_s[] = "<'pddt'> %s.";
static const char __pyx_k_pickle[] = "pickle";
static const char __pyx_k_reduce[] = "__reduce__";
static const char __pyx_k_return[] = "return";
static const char __pyx_k_second[] = "second";
static const char __pyx_k_timetz[] = "timetz";
static const char __pyx_k_to_day[] = "to_day";
static const char __pyx_k_typing[] = "typing";
static const char __pyx_k_update[] = "update";
static const char __pyx_k_values[] = "values";
static const char __pyx_k_y1_arr[] = "y1_arr";
static const char __pyx_k_y2_arr[] = "y2_arr";
static const char __pyx_k_H_M_S_f[] = "%H:%M:%S.%f";
static const char __pyx_k_Literal[] = "Literal";
static const char __pyx_k_as_unit[] = "as_unit";
static const char __pyx_k_base_tz[] = "base_tz";
static const char __pyx_k_cytimes[] = "cytimes";
static const char __pyx_k_default[] = "default";
static const char __pyx_k_disable[] = "disable";
static const char __pyx_k_getitem[] = "__getitem__";
static const char __pyx_k_int_str[] = "int | str";
static const char __pyx_k_is_year[] = "is_year";
static const char __pyx_k_minimum[] = "minimum";
static const char __pyx_k_minutes[] = "minutes";
static const char __pyx_k_neither[] = "neither";
static const char __pyx_k_ordinal[] = "ordinal";
static const char __pyx_k_periods[] = "periods";
static const char __pyx_k_quarter[] = "quarter";
static const char __pyx_k_replace[] = "replace";
static const char __pyx_k_seconds[] = "seconds";
static const char __pyx_k_targ_tz[] = "targ_tz";
static const char __pyx_k_to_time[] = "to_time";
static const char __pyx_k_to_year[] = "to_year";
static const char __pyx_k_typeref[] = "typeref";
static const char __pyx_k_weekday[] = "weekday";
static const char __pyx_k_year1st[] = "year1st";
static const char __pyx_k_Iterator[] = "Iterator";
static const char __pyx_k_contains[] = "__contains__";
static const char __pyx_k_datetime[] = "datetime";
static const char __pyx_k_dayfirst[] = "dayfirst";
static const char __pyx_k_deepcopy[] = "__deepcopy__";
static const char __pyx_k_getstate[] = "__getstate__";
static const char __pyx_k_is_month[] = "is_month";
static const char __pyx_k_pddt_now[] = "pddt.now";
static const char __pyx_k_pyx_capi[] = "__pyx_capi__";
static const char __pyx_k_pyx_type[] = "__pyx_type";
static const char __pyx_k_setstate[] = "__setstate__";
static const char __pyx_k_str_None[] = "str | None";
static const char __pyx_k_strftime[] = "strftime";
static const char __pyx_k_to_month[] = "to_month";
static const char __pyx_k_DataFrame[] = "DataFrame";
static const char __pyx_k_FN_NP_ABS[] = "FN_NP_ABS";
static const char __pyx_k_FN_NP_MIN[] = "FN_NP_MIN";
static const char __pyx_k_PddtError[] = "PddtError";
static const char __pyx_k_Timestamp[] = "Timestamp";
static const char __pyx_k_add_delta[] = "add_delta";
static const char __pyx_k_ambiguous[] = "ambiguous";
static const char __pyx_k_bool_None[] = "bool | None";
static const char __pyx_k_cal_delta[] = "cal_delta";
static const char __pyx_k_freq_ceil[] = "freq_ceil";
static const char __pyx_k_inclusive[] = "inclusive";
static const char __pyx_k_isenabled[] = "isenabled";
static const char __pyx_k_normalize[] = "normalize";
static const char __pyx_k_pddt_copy[] = "pddt.copy";
static const char __pyx_k_pyx_state[] = "__pyx_state";
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
static const char __pyx_k_sub_delta[] = "sub_delta";
static const char __pyx_k_to_friday[] = "to_friday";
static const char __pyx_k_to_monday[] = "to_monday";
static const char __pyx_k_to_sunday[] = "to_sunday";
static const char __pyx_k_tz_switch[] = "tz_switch";
static const char __pyx_k_yearfirst[] = "yearfirst";
static const char __pyx_k_FN_NP_FULL[] = "FN_NP_FULL";
static const char __pyx_k_Series_int[] = "Series[int]";
static const char __pyx_k_Series_str[] = "Series[str]";
static const char __pyx_k_ValueError[] = "ValueError";
static const char __pyx_k_astimezone[] = "astimezone";
static const char __pyx_k_cydatetime[] = "cydatetime";
static const char __pyx_k_cython_int[] = "cython.int";
static const char __pyx_k_date_range[] = "date_range";
static const char __pyx_k_freq_floor[] = "freq_floor";
static const char __pyx_k_freq_round[] = "freq_round";
static const char __pyx_k_from_dtobj[] = "from_dtobj";
static const char __pyx_k_from_range[] = "from_range";
static const char __pyx_k_is_quarter[] = "is_quarter";
static const char __pyx_k_is_weekday[] = "is_weekday";
static const char __pyx_k_nanosecond[] = "nanosecond";
static const char __pyx_k_np_ndarray[] = "np.ndarray";
static const char __pyx_k_pyx_result[] = "__pyx_result";
static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static const char __pyx_k_to_quarter[] = "to_quarter";
static const char __pyx_k_to_tuesday[] = "to_tuesday";
static const char __pyx_k_to_weekday[] = "to_weekday";
static const char __pyx_k_tz_convert[] = "tz_convert";
static const char __pyx_k_Config_None[] = "Config | None";
static const char __pyx_k_FN_NP_WHERE[] = "FN_NP_WHERE";
static const char __pyx_k_ImportError[] = "ImportError";
static const char __pyx_k_MemoryError[] = "MemoryError";
static const char __pyx_k_PickleError[] = "PickleError";
static const char __pyx_k_Series_bool[] = "Series[bool]";
static const char __pyx_k_day_of_year[] = "day_of_year";
static const char __pyx_k_is_leapyear[] = "is_leapyear";
static const char __pyx_k_is_time_end[] = "is_time_end";
static const char __pyx_k_is_year_1st[] = "is_year_1st";
static const char __pyx_k_is_year_end[] = "is_year_end";
static const char __pyx_k_is_year_lst[] = "is_year_lst";
static const char __pyx_k_isocalendar[] = "isocalendar";
static const char __pyx_k_microsecond[] = "microsecond";
static const char __pyx_k_millisecond[] = "millisecond";
static const char __pyx_k_nonexistent[] = "nonexistent";
static const char __pyx_k_object_None[] = "object | None";
static const char __pyx_k_pddt___copy[] = "pddt.__copy__";
static const char __pyx_k_pddt_equals[] = "pddt.equals";
static const char __pyx_k_pddt_is_day[] = "pddt.is_day";
static const char __pyx_k_pddt_to_day[] = "pddt.to_day";
static const char __pyx_k_to_datetime[] = "to_datetime";
static const char __pyx_k_to_saturday[] = "to_saturday";
static const char __pyx_k_to_thursday[] = "to_thursday";
static const char __pyx_k_to_time_end[] = "to_time_end";
static const char __pyx_k_to_tomorrow[] = "to_tomorrow";
static const char __pyx_k_to_year_1st[] = "to_year_1st";
static const char __pyx_k_to_year_lst[] = "to_year_lst";
static const char __pyx_k_tz_localize[] = "tz_localize";
static const char __pyx_k_RuntimeError[] = "RuntimeError";
static const char __pyx_k_initializing[] = "_initializing";
static const char __pyx_k_int_str_None[] = "int | str | None";
static const char __pyx_k_is_coroutine[] = "_is_coroutine";
static const char __pyx_k_is_leap_year[] = "is_leap_year";
static const char __pyx_k_is_month_1st[] = "is_month_1st";
static const char __pyx_k_is_month_end[] = "is_month_end";
static const char __pyx_k_is_month_lst[] = "is_month_lst";
static const char __pyx_k_microseconds[] = "microseconds";
static const char __pyx_k_milliseconds[] = "milliseconds";
static const char __pyx_k_pddt___array[] = "pddt.__array__";
static const char __pyx_k_pddt_as_unit[] = "pddt.as_unit";
static const char __pyx_k_pddt_is_year[] = "pddt.is_year";
static const char __pyx_k_pddt_replace[] = "pddt.replace";
static const char __pyx_k_pddt_to_time[] = "pddt.to_time";
static const char __pyx_k_pddt_to_year[] = "pddt.to_year";
static const char __pyx_k_pyx_checksum[] = "__pyx_checksum";
static const char __pyx_k_stringsource[] = "<stringsource>";
static const char __pyx_k_to_curr_year[] = "to_curr_year";
static const char __pyx_k_to_month_1st[] = "to_month_1st";
static const char __pyx_k_to_month_lst[] = "to_month_lst";
static const char __pyx_k_to_next_year[] = "to_next_year";
static const char __pyx_k_to_prev_year[] = "to_prev_year";
static const char __pyx_k_to_timedelta[] = "to_timedelta";
static const char __pyx_k_to_wednesday[] = "to_wednesday";
static const char __pyx_k_to_yesterday[] = "to_yesterday";
static const char __pyx_k_use_setstate[] = "use_setstate";
static const char __pyx_k_OverflowError[] = "OverflowError";
static const char __pyx_k_Y_m_d_H_M_S_f[] = "%Y-%m-%d %H:%M:%S.%f";
static const char __pyx_k_class_getitem[] = "__class_getitem__";
static const char __pyx_k_days_in_month[] = "days_in_month";
static const char __pyx_k_from_datetime[] = "from_datetime";
static const char __pyx_k_is_time_start[] = "is_time_start";
static const char __pyx_k_is_year_start[] = "is_year_start";
static const char __pyx_k_leap_bt_years[] = "leap_bt_years";
static const char __pyx_k_pandas_errors[] = "pandas.errors";
static const char __pyx_k_pddt_is_month[] = "pddt.is_month";
static const char __pyx_k_pddt_strftime[] = "pddt.strftime";
static const char __pyx_k_pddt_to_month[] = "pddt.to_month";
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
static const char __pyx_k_shift_forward[] = "shift_forward";
static const char __pyx_k_startingMonth[] = "startingMonth";
static const char __pyx_k_to_curr_month[] = "to_curr_month";
static const char __pyx_k_to_next_month[] = "to_next_month";
static const char __pyx_k_to_prev_month[] = "to_prev_month";
static const char __pyx_k_to_pydatetime[] = "to_pydatetime";
static const char __pyx_k_to_time_start[] = "to_time_start";
static const char __pyx_k_PddtValueError[] = "PddtValueError";
static const char __pyx_k_TimedeltaIndex[] = "TimedeltaIndex";
static const char __pyx_k_UNIT_FREQUENCY[] = "UNIT_FREQUENCY";
static const char __pyx_k_Y_m_dT_H_M_S_f[] = "%Y-%m-%dT%H:%M:%S.%f";
static const char __pyx_k_is_month_start[] = "is_month_start";
static const char __pyx_k_is_quarter_1st[] = "is_quarter_1st";
static const char __pyx_k_is_quarter_end[] = "is_quarter_end";
static const char __pyx_k_is_quarter_lst[] = "is_quarter_lst";
static const char __pyx_k_pddt_add_delta[] = "pddt.add_delta";
static const char __pyx_k_pddt_cal_delta[] = "pddt.cal_delta";
static const char __pyx_k_pddt_freq_ceil[] = "pddt.freq_ceil";
static const char __pyx_k_pddt_sub_delta[] = "pddt.sub_delta";
static const char __pyx_k_pddt_to_friday[] = "pddt.to_friday";
static const char __pyx_k_pddt_to_monday[] = "pddt.to_monday";
static const char __pyx_k_pddt_to_sunday[] = "pddt.to_sunday";
static const char __pyx_k_pddt_tz_switch[] = "pddt.tz_switch";
static const char __pyx_k_shift_backward[] = "shift_backward";
static const char __pyx_k_to_quarter_1st[] = "to_quarter_1st";
static const char __pyx_k_to_quarter_lst[] = "to_quarter_lst";
static const char __pyx_k_Addition_failed[] = "Addition failed";
static const char __pyx_k_FN_PD_DATERANGE[] = "FN_PD_DATERANGE";
static const char __pyx_k_Y_m_d_H_M_S_f_z[] = "%Y-%m-%d %H:%M:%S.%f%z";
static const char __pyx_k_pddt___deepcopy[] = "pddt.__deepcopy__";
static const char __pyx_k_pddt_astimezone[] = "pddt.astimezone";
static const char __pyx_k_pddt_freq_floor[] = "pddt.freq_floor";
static const char __pyx_k_pddt_freq_round[] = "pddt.freq_round";
static const char __pyx_k_pddt_from_dtobj[] = "pddt.from_dtobj";
static const char __pyx_k_pddt_from_range[] = "pddt.from_range";
static const char __pyx_k_pddt_is_quarter[] = "pddt.is_quarter";
static const char __pyx_k_pddt_is_weekday[] = "pddt.is_weekday";
static const char __pyx_k_pddt_to_quarter[] = "pddt.to_quarter";
static const char __pyx_k_pddt_to_tuesday[] = "pddt.to_tuesday";
static const char __pyx_k_pddt_to_weekday[] = "pddt.to_weekday";
static const char __pyx_k_pddt_tz_convert[] = "pddt.tz_convert";
static const char __pyx_k_pyx_PickleError[] = "__pyx_PickleError";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_to_curr_quarter[] = "to_curr_quarter";
static const char __pyx_k_to_curr_weekday[] = "to_curr_weekday";
static const char __pyx_k_to_next_quarter[] = "to_next_quarter";
static const char __pyx_k_to_next_weekday[] = "to_next_weekday";
static const char __pyx_k_to_prev_quarter[] = "to_prev_quarter";
static const char __pyx_k_to_prev_weekday[] = "to_prev_weekday";
static const char __pyx_k_FN_PD_TODATETIME[] = "FN_PD_TODATETIME";
static const char __pyx_k_Y_m_dT_H_M_S_f_z[] = "%Y-%m-%dT%H:%M:%S.%f%z";
static const char __pyx_k_cytimes_cyparser[] = "cytimes.cyparser";
static const char __pyx_k_is_quarter_start[] = "is_quarter_start";
static const char __pyx_k_pddt_is_leapyear[] = "pddt.is_leapyear";
static const char __pyx_k_pddt_is_time_end[] = "pddt.is_time_end";
static const char __pyx_k_pddt_is_year_1st[] = "pddt.is_year_1st";
static const char __pyx_k_pddt_is_year_lst[] = "pddt.is_year_lst";
static const char __pyx_k_pddt_to_saturday[] = "pddt.to_saturday";
static const char __pyx_k_pddt_to_thursday[] = "pddt.to_thursday";
static const char __pyx_k_pddt_to_time_end[] = "pddt.to_time_end";
static const char __pyx_k_pddt_to_tomorrow[] = "pddt.to_tomorrow";
static const char __pyx_k_pddt_to_year_1st[] = "pddt.to_year_1st";
static const char __pyx_k_pddt_to_year_lst[] = "pddt.to_year_lst";
static const char __pyx_k_pddt_tz_localize[] = "pddt.tz_localize";
static const char __pyx_k_Comparison_failed[] = "Comparison failed";
static const char __pyx_k_FN_PD_TOTIMEDELTA[] = "FN_PD_TOTIMEDELTA";
static const char __pyx_k_InvalidMonthError[] = "InvalidMonthError";
static const char __pyx_k_pddt_is_month_1st[] = "pddt.is_month_1st";
static const char __pyx_k_pddt_is_month_lst[] = "pddt.is_month_lst";
static const char __pyx_k_pddt_to_curr_year[] = "pddt.to_curr_year";
static const char __pyx_k_pddt_to_month_1st[] = "pddt.to_month_1st";
static const char __pyx_k_pddt_to_month_lst[] = "pddt.to_month_lst";
static const char __pyx_k_pddt_to_next_year[] = "pddt.to_next_year";
static const char __pyx_k_pddt_to_prev_year[] = "pddt.to_prev_year";
static const char __pyx_k_pddt_to_wednesday[] = "pddt.to_wednesday";
static const char __pyx_k_pddt_to_yesterday[] = "pddt.to_yesterday";
static const char __pyx_k_pyx_unpickle_pddt[] = "__pyx_unpickle_pddt";
static const char __pyx_k_Invalid_freq_input[] = "'>\nInvalid 'freq' input: ";
static const char __pyx_k_Literal_s_ms_us_ns[] = "Literal['s', 'ms', 'us', 'ns']";
static const char __pyx_k_asyncio_coroutines[] = "asyncio.coroutines";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_cytimes_pddatetime[] = "cytimes.pddatetime";
static const char __pyx_k_cytimes_pydatetime[] = "cytimes.pydatetime";
static const char __pyx_k_pddt_from_datetime[] = "pddt.from_datetime";
static const char __pyx_k_pddt_is_time_start[] = "pddt.is_time_start";
static const char __pyx_k_pddt_leap_bt_years[] = "pddt.leap_bt_years";
static const char __pyx_k_pddt_to_curr_month[] = "pddt.to_curr_month";
static const char __pyx_k_pddt_to_next_month[] = "pddt.to_next_month";
static const char __pyx_k_pddt_to_prev_month[] = "pddt.to_prev_month";
static const char __pyx_k_pddt_to_time_start[] = "pddt.to_time_start";
static const char __pyx_k_InvalidWeekdayError[] = "InvalidWeekdayError";
static const char __pyx_k_Invalid_month_value[] = "'>\nInvalid 'month' value '";
static const char __pyx_k_Invalid_tz_timezone[] = "'>\nInvalid 'tz' timezone: ";
static const char __pyx_k_OutOfBoundsDatetime[] = "OutOfBoundsDatetime";
static const char __pyx_k_Substraction_failed[] = "Substraction failed";
static const char __pyx_k_Value_out_of_bounds[] = "Value out of bounds";
static const char __pyx_k_cython_int_str_None[] = "cython.int | str | None";
static const char __pyx_k_pddt_is_quarter_1st[] = "pddt.is_quarter_1st";
static const char __pyx_k_pddt_is_quarter_lst[] = "pddt.is_quarter_lst";
static const char __pyx_k_pddt_to_quarter_1st[] = "pddt.to_quarter_1st";
static const char __pyx_k_pddt_to_quarter_lst[] = "pddt.to_quarter_lst";
static const char __pyx_k_InvalidTimeUnitError[] = "InvalidTimeUnitError";
static const char __pyx_k_InvalidTimezoneError[] = "InvalidTimezoneError";
static const char __pyx_k_pddt___reduce_cython[] = "pddt.__reduce_cython__";
static const char __pyx_k_pddt_to_curr_quarter[] = "pddt.to_curr_quarter";
static const char __pyx_k_pddt_to_curr_weekday[] = "pddt.to_curr_weekday";
static const char __pyx_k_pddt_to_next_quarter[] = "pddt.to_next_quarter";
static const char __pyx_k_pddt_to_next_weekday[] = "pddt.to_next_weekday";
static const char __pyx_k_pddt_to_prev_quarter[] = "pddt.to_prev_quarter";
static const char __pyx_k_pddt_to_prev_weekday[] = "pddt.to_prev_weekday";
static const char __pyx_k_InvalidDeltaUnitError[] = "InvalidDeltaUnitError";
static const char __pyx_k_InvalidFrequencyError[] = "InvalidFrequencyError";
static const char __pyx_k_Invalid_weekday_value[] = "'>\nInvalid 'weekday' value '";
static const char __pyx_k_pddt_Invalid_timezone[] = "<'pddt'>\nInvalid timezone: ";
static const char __pyx_k_pydt_Invalid_timezone[] = "<'pydt'>\nInvalid timezone: ";
static const char __pyx_k_replace_locals_lambda[] = "replace.<locals>.<lambda>";
static const char __pyx_k_Failed_to_parse_dtsobj[] = "'>\nFailed to parse 'dtsobj': ";
static const char __pyx_k_Unsupported_dtobj_type[] = "'>\nUnsupported 'dtobj' type: ";
static const char __pyx_k_pddt___setstate_cython[] = "pddt.__setstate_cython__";
static const char __pyx_k_Invalid_inclusive_input[] = "'>\nInvalid 'inclusive' input: ";
static const char __pyx_k_Invalid_month_data_type[] = "'>\nInvalid 'month' data type: ";
static const char __pyx_k_Literal_s_ms_us_ns_None[] = "Literal['s', 'ms', 'us', 'ns'] | None";
static const char __pyx_k_Unsupported_dtsobj_type[] = "'>\nUnsupported 'dtsobj' type: ";
static const char __pyx_k_DatetimeOutOfBoundsError[] = "DatetimeOutOfBoundsError";
static const char __pyx_k_Invalid_delta_unit_input[] = "'>\nInvalid delta 'unit' input: ";
static const char __pyx_k_Literal_D_h_m_s_ms_us_ns[] = "Literal['D', 'h', 'm', 's', 'ms', 'us', 'ns']";
static const char __pyx_k_Literal_one_both_neither[] = "Literal['one', 'both', 'neither']";
static const char __pyx_k_str_datetime_tzinfo_None[] = "str | datetime.tzinfo | None";
static const char __pyx_k_Empty_microsecond_token_s[] = "Empty microsecond token: '%s'.";
static const char __pyx_k_Invalid_weekday_data_type[] = "'>\nInvalid 'weekday' data type: ";
static const char __pyx_k_must_between_1_Jan_12_Dec[] = "', must between 1(Jan)..12(Dec).";
static const char __pyx_k_src_cytimes_pddatetime_py[] = "src/cytimes/pddatetime.py";
static const char __pyx_k_InvalidDatetimeObjectError[] = "InvalidDatetimeObjectError";
static const char __pyx_k_InvalidDeltaInclusiveError[] = "InvalidDeltaInclusiveError";
static const char __pyx_k_Invalid_microsecond_token_s[] = "Invalid microsecond token: '%s'.";
static const char __pyx_k_pddt_Unsupported_dtobj_type[] = "<'pddt'>\nUnsupported 'dtobj' type: ";
static const char __pyx_k_Failed_to_parse_month_string[] = "'>\nFailed to parse 'month' string: '";
static const char __pyx_k_Can_t_convert_token_s_to_float[] = "Can't convert token '%s' to float.";
static const char __pyx_k_Failed_to_parse_weekday_string[] = "'>\nFailed to parse 'weekday' string: '";
static const char __pyx_k_Literal_Y_M_W_D_h_m_s_ms_us_ns[] = "Literal['Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns']";
static const char __pyx_k_must_between_0_Monday_6_Sunday[] = "', must between 0(Monday)..6(Sunday).";
static const char __pyx_k_Cannot_calculate_delta_for_obje[] = "'>\nCannot calculate 'delta' for object with different shape: ";
static const char __pyx_k_Cannot_parse_dtsobj_into_Dateti[] = "'>\nCannot parse 'dtsobj' into DatetimeArray when it contains different timezones, unless setting 'utc=True'.\nConflict timezones: '";
static const char __pyx_k_Cannot_switch_timezone_naive_pd[] = "'>\nCannot switch timezone-naive '<'pddt'>' without a valid 'base_tz': ";
static const char __pyx_k_Literal_Y_M_W_D_Bh_m_s_ms_us_ns[] = "Literal['Y', 'M', 'W', 'D', 'Bh', 'm', 's', 'ms', 'us', 'ns']";
static const char __pyx_k_Literal_left_right_both_neither[] = "Literal['left', 'right', 'both', 'neither']";
static const char __pyx_k_Must_be_one_of_the_following_st[] = ". Must be one of the following <'str'>: ['D', 'h', 'm', 's', 'ms', 'us'].";
static const char __pyx_k_Unable_to_adjust_time_unit_from[] = "'>\nUnable to adjust time unit from '[";
static const char __pyx_k_s_Argument_ambiguous_NaT_is_not[] = "<'%s'>\nArgument `ambiguous='NaT'` is not supported.";
static const char __pyx_k_s_Argument_nonexistent_NaT_is_n[] = "<'%s'>\nArgument `nonexistent='NaT'` is not supported.";
static const char __pyx_k_Can_t_convert_token_s_to_integer[] = "Can't convert token '%s' to integer.";
static const char __pyx_k_Failed_to_allocate_memory_for_th[] = "Failed to allocate memory for the string slice.";
static const char __pyx_k_Incompatible_checksums_0x_x_vs_0[] = "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))";
static const char __pyx_k_Invalid_character_to_slice_to_fl[] = "Invalid character to slice to float.";
static const char __pyx_k_Invalid_character_to_slice_to_in[] = "Invalid character to slice to integer.";
static const char __pyx_k_Literal_shift_forward_shift_back[] = "Literal['shift_forward', 'shift_backward', 'raise']";
static const char __pyx_k_The_format_string_for_datetime_i[] = "The format string for datetime is too long:\n'%s'";
static const char __pyx_k_Time_zones_are_not_available_fro[] = "Time zones are not available from the C-API.";
static const char __pyx_k_Token_s_does_not_represent_a_fin[] = "Token '%s' does not represent a finite number.";
static const char __pyx_k_Value_out_of_bounds_for_datetime[] = "Value out of bounds for datetime64[%s]";
static const char __pyx_k_bool_Series_bool_Literal_raise_i[] = "bool | Series[bool] | Literal['raise', 'infer']";
static const char __pyx_k_numpy__core_multiarray_failed_to[] = "numpy._core.multiarray failed to import";
static const char __pyx_k_numpy__core_umath_failed_to_impo[] = "numpy._core.umath failed to import";
static const char __pyx_k_Must_be_one_of_the_following_st_2[] = ". Must be one of the following <'str'>: ['one', 'both', 'neither'].";
static const char __pyx_k_Must_be_one_of_the_following_st_3[] = ". Must be one of the following <'str'>: ['Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns'].";
/* #### Code section: decls ### */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_now(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_size, PyObject *__pyx_v_tz, PyObject *__pyx_v_name, PyObject *__pyx_v_unit); /* proto */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_2from_dtobj(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_size, PyObject *__pyx_v_dtobj, PyObject *__pyx_v_default, PyObject *__pyx_v_day1st, PyObject *__pyx_v_year1st, PyObject *__pyx_v_cfg, PyObject *__pyx_v_name, PyObject *__pyx_v_unit); /* proto */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_4from_datetime(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_size, PyObject *__pyx_v_year, PyObject *__pyx_v_month, PyObject *__pyx_v_day, PyObject *__pyx_v_hour, PyObject *__pyx_v_minute, PyObject *__pyx_v_second, PyObject *__pyx_v_microsecond, PyObject *__pyx_v_nanosecond, PyObject *__pyx_v_tz, PyObject *__pyx_v_name, PyObject *__pyx_v_unit); /* proto */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_6from_range(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_start, PyObject *__pyx_v_end, PyObject *__pyx_v_freq, PyObject *__pyx_v_periods, PyObject *__pyx_v_tz, PyObject *__pyx_v_inclusive, PyObject *__pyx_v_normalize, PyObject *__pyx_v_name, PyObject *__pyx_v_unit); /* proto */
static int __pyx_pf_7cytimes_10pddatetime_4pddt_8__init__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtsobj, PyObject *__pyx_v_default, PyObject *__pyx_v_day1st, PyObject *__pyx_v_year1st, PyObject *__pyx_v_utc, PyObject *__pyx_v_format, PyObject *__pyx_v_exact, PyObject *__pyx_v_cfg, PyObject *__pyx_v_name, PyObject *__pyx_v_unit, PyObject *__pyx_v_copy); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4name___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static int __pyx_pf_7cytimes_10pddatetime_4pddt_4name_2__set__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_5index___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4unit___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4year___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7quarter___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_5month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_3day___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4hour___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6minute___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6second___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_11microsecond___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_10nanosecond___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6tzinfo___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6tzname___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_2dt___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6dt_str___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_8dt_strtz___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6dt_iso___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_8dt_isotz___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4dt64___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4dtpy___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4pydt___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4date___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_8date_iso___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4time___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6timetz___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_8time_iso___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7ordinal___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7seconds___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_11seconds_utc___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12microseconds___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_16microseconds_utc___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_9timestamp___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_10is_leapyear(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12leap_bt_years(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_year); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12days_in_year___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12days_bf_year___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12days_of_year___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_14is_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_year); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_16is_year_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_18is_year_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_20to_year_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_22to_year_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_24to_curr_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_26to_prev_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_28to_next_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_30to_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, PyObject *__pyx_v_month, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_15days_in_quarter___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_15days_bf_quarter___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_15days_of_quarter___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_17quarter_1st_month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_17quarter_lst_month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_32is_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_quarter); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_34is_quarter_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_36is_quarter_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_38to_quarter_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_40to_quarter_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_42to_curr_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_month, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_44to_prev_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_month, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_46to_next_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_month, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_48to_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, int __pyx_v_month, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_13days_in_month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_13days_bf_month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_50is_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_52is_month_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_54is_month_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_56to_month_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_58to_month_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_60to_curr_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_62to_prev_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_64to_next_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_66to_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, int __pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7weekday___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_10isoweekday___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7isoweek___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7isoyear___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_11isocalendar___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_68is_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_70to_monday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_72to_tuesday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_74to_wednesday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_76to_thursday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_78to_friday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_80to_saturday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_82to_sunday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_84to_curr_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_86to_prev_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_88to_next_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_90to_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, PyObject *__pyx_v_weekday); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_92is_day(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_day); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_94to_yesterday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_96to_tomorrow(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_98to_day(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_100is_time_start(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_102is_time_end(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_104to_time_start(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_106to_time_end(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_108to_time(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_hour, int __pyx_v_minute, int __pyx_v_second, int __pyx_v_millisecond, int __pyx_v_microsecond); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12tz_available___get__(CYTHON_UNUSED struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_110tz_localize(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_112tz_convert(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_114tz_switch(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_targ_tz, PyObject *__pyx_v_base_tz, PyObject *__pyx_v_naive, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_116astimezone(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_118freq_round(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_120freq_ceil(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_122freq_floor(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_124add_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_years, int __pyx_v_months, int __pyx_v_days, int __pyx_v_weeks, int __pyx_v_hours, int __pyx_v_minutes, int __pyx_v_seconds, int __pyx_v_milliseconds, int __pyx_v_microseconds); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_126sub_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_years, int __pyx_v_months, int __pyx_v_days, int __pyx_v_weeks, int __pyx_v_hours, int __pyx_v_minutes, int __pyx_v_seconds, int __pyx_v_milliseconds, int __pyx_v_microseconds); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_128cal_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_unit, PyObject *__pyx_v_inclusive); /* proto */
static PyObject *__pyx_lambda_funcdef_lambda(PyObject *__pyx_self, PyObject *__pyx_v_dt); /* proto */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_130replace(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_year, int __pyx_v_month, int __pyx_v_day, int __pyx_v_hour, int __pyx_v_minute, int __pyx_v_second, int __pyx_v_millisecond, int __pyx_v_microsecond); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_132strftime(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_format); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_134as_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_unit); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_136__add__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_138__radd__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_140__sub__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_142__rsub__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_144__eq__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_146__ne__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_148__gt__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_150__ge__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_152__lt__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_154__le__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_156equals(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_158copy(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_160__copy__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_162__deepcopy__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_164__repr__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_166__str__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_7cytimes_10pddatetime_4pddt_168__len__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static int __pyx_pf_7cytimes_10pddatetime_4pddt_170__contains__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_172__getitem__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_174__iter__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyArrayObject *__pyx_pf_7cytimes_10pddatetime_4pddt_176__array__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_178__reduce_cython__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_180__setstate_cython__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_7cytimes_10pddatetime___pyx_unpickle_pddt(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_7cytimes_10pddatetime_pddt(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_7cytimes_10pddatetime___pyx_scope_struct__replace(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static __Pyx_CachedCFunction __pyx_umethod_PyUnicode_Type_lower = {0, 0, 0, 0, 0};
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  #ifdef __Pyx_CyFunction_USED
  PyTypeObject *__pyx_CyFunctionType;
  #endif
  #ifdef __Pyx_FusedFunction_USED
  PyTypeObject *__pyx_FusedFunctionType;
  #endif
  #ifdef __Pyx_Generator_USED
  PyTypeObject *__pyx_GeneratorType;
  #endif
  #ifdef __Pyx_IterableCoroutine_USED
  PyTypeObject *__pyx_IterableCoroutineType;
  #endif
  #ifdef __Pyx_Coroutine_USED
  PyTypeObject *__pyx_CoroutineAwaitType;
  #endif
  #ifdef __Pyx_Coroutine_USED
  PyTypeObject *__pyx_CoroutineType;
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  PyTypeObject *__pyx_ptype_7cpython_4type_type;
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  PyTypeObject *__pyx_ptype_7cpython_4bool_bool;
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  PyTypeObject *__pyx_ptype_7cpython_7complex_complex;
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  PyTypeObject *__pyx_ptype_5numpy_dtype;
  PyTypeObject *__pyx_ptype_5numpy_flatiter;
  PyTypeObject *__pyx_ptype_5numpy_broadcast;
  PyTypeObject *__pyx_ptype_5numpy_ndarray;
  PyTypeObject *__pyx_ptype_5numpy_generic;
  PyTypeObject *__pyx_ptype_5numpy_number;
  PyTypeObject *__pyx_ptype_5numpy_integer;
  PyTypeObject *__pyx_ptype_5numpy_signedinteger;
  PyTypeObject *__pyx_ptype_5numpy_unsignedinteger;
  PyTypeObject *__pyx_ptype_5numpy_inexact;
  PyTypeObject *__pyx_ptype_5numpy_floating;
  PyTypeObject *__pyx_ptype_5numpy_complexfloating;
  PyTypeObject *__pyx_ptype_5numpy_flexible;
  PyTypeObject *__pyx_ptype_5numpy_character;
  PyTypeObject *__pyx_ptype_5numpy_ufunc;
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  PyTypeObject *__pyx_ptype_7cpython_8datetime_date;
  PyTypeObject *__pyx_ptype_7cpython_8datetime_time;
  PyTypeObject *__pyx_ptype_7cpython_8datetime_datetime;
  PyTypeObject *__pyx_ptype_7cpython_8datetime_timedelta;
  PyTypeObject *__pyx_ptype_7cpython_8datetime_tzinfo;
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  PyTypeObject *__pyx_ptype_7cytimes_8cyparser_Result;
  PyTypeObject *__pyx_ptype_7cytimes_8cyparser_Config;
  PyTypeObject *__pyx_ptype_7cytimes_8cyparser_Parser;
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  #if CYTHON_USE_MODULE_STATE
  #endif
  PyTypeObject *__pyx_ptype_7cytimes_7cydelta_cytimedelta;
  #if CYTHON_USE_MODULE_STATE
  #endif
  PyTypeObject *__pyx_ptype_7cytimes_10pydatetime_pydt;
  #if CYTHON_USE_MODULE_STATE
  PyObject *__pyx_type_7cytimes_10pddatetime_pddt;
  PyObject *__pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace;
  #endif
  PyTypeObject *__pyx_ptype_7cytimes_10pddatetime_pddt;
  PyTypeObject *__pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace;
  PyObject *__pyx_kp_u_Addition_failed;
  PyObject *__pyx_kp_u_Can_t_convert_token_s_to_float;
  PyObject *__pyx_kp_u_Can_t_convert_token_s_to_integer;
  PyObject *__pyx_kp_u_Cannot_calculate_delta_for_obje;
  PyObject *__pyx_kp_u_Cannot_parse_dtsobj_into_Dateti;
  PyObject *__pyx_kp_u_Cannot_switch_timezone_naive_pd;
  PyObject *__pyx_kp_u_Comparison_failed;
  PyObject *__pyx_n_s_Config;
  PyObject *__pyx_kp_s_Config_None;
  PyObject *__pyx_n_u_D;
  PyObject *__pyx_n_s_DataFrame;
  PyObject *__pyx_n_s_DatetimeOutOfBoundsError;
  PyObject *__pyx_kp_u_Empty_microsecond_token_s;
  PyObject *__pyx_n_s_FN_NP_ABS;
  PyObject *__pyx_n_s_FN_NP_FULL;
  PyObject *__pyx_n_s_FN_NP_MIN;
  PyObject *__pyx_n_s_FN_NP_WHERE;
  PyObject *__pyx_n_s_FN_PD_DATERANGE;
  PyObject *__pyx_n_s_FN_PD_TODATETIME;
  PyObject *__pyx_n_s_FN_PD_TOTIMEDELTA;
  PyObject *__pyx_kp_u_Failed_to_allocate_memory_for_th;
  PyObject *__pyx_kp_u_Failed_to_parse_dtsobj;
  PyObject *__pyx_kp_u_Failed_to_parse_month_string;
  PyObject *__pyx_kp_u_Failed_to_parse_weekday_string;
  PyObject *__pyx_kp_u_H_M_S_f;
  PyObject *__pyx_n_s_ImportError;
  PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0;
  PyObject *__pyx_n_s_Index;
  PyObject *__pyx_n_s_InvalidDatetimeObjectError;
  PyObject *__pyx_n_s_InvalidDeltaInclusiveError;
  PyObject *__pyx_n_s_InvalidDeltaUnitError;
  PyObject *__pyx_n_s_InvalidFrequencyError;
  PyObject *__pyx_n_s_InvalidMonthError;
  PyObject *__pyx_n_s_InvalidTimeUnitError;
  PyObject *__pyx_n_s_InvalidTimezoneError;
  PyObject *__pyx_n_s_InvalidWeekdayError;
  PyObject *__pyx_kp_u_Invalid_character_to_slice_to_fl;
  PyObject *__pyx_kp_u_Invalid_character_to_slice_to_in;
  PyObject *__pyx_kp_u_Invalid_delta_unit_input;
  PyObject *__pyx_kp_u_Invalid_freq_input;
  PyObject *__pyx_kp_u_Invalid_inclusive_input;
  PyObject *__pyx_kp_u_Invalid_microsecond_token_s;
  PyObject *__pyx_kp_u_Invalid_month_data_type;
  PyObject *__pyx_kp_u_Invalid_month_value;
  PyObject *__pyx_kp_u_Invalid_tz_timezone;
  PyObject *__pyx_kp_u_Invalid_weekday_data_type;
  PyObject *__pyx_kp_u_Invalid_weekday_value;
  PyObject *__pyx_n_s_Iterator;
  PyObject *__pyx_n_s_Literal;
  PyObject *__pyx_kp_s_Literal_D_h_m_s_ms_us_ns;
  PyObject *__pyx_kp_s_Literal_Y_M_W_D_Bh_m_s_ms_us_ns;
  PyObject *__pyx_kp_s_Literal_Y_M_W_D_h_m_s_ms_us_ns;
  PyObject *__pyx_kp_s_Literal_left_right_both_neither;
  PyObject *__pyx_kp_s_Literal_one_both_neither;
  PyObject *__pyx_kp_s_Literal_s_ms_us_ns;
  PyObject *__pyx_kp_s_Literal_s_ms_us_ns_None;
  PyObject *__pyx_kp_s_Literal_shift_forward_shift_back;
  PyObject *__pyx_n_u_M;
  PyObject *__pyx_kp_u_M8_us;
  PyObject *__pyx_n_s_MemoryError;
  PyObject *__pyx_kp_u_Must_be_one_of_the_following_st;
  PyObject *__pyx_kp_u_Must_be_one_of_the_following_st_2;
  PyObject *__pyx_kp_u_Must_be_one_of_the_following_st_3;
  PyObject *__pyx_n_u_NaT;
  PyObject *__pyx_kp_u_None;
  PyObject *__pyx_n_s_OutOfBoundsDatetime;
  PyObject *__pyx_n_s_OverflowError;
  PyObject *__pyx_n_s_PddtError;
  PyObject *__pyx_n_s_PddtValueError;
  PyObject *__pyx_n_s_PickleError;
  PyObject *__pyx_n_s_RuntimeError;
  PyObject *__pyx_n_s_Series;
  PyObject *__pyx_kp_s_Series_bool;
  PyObject *__pyx_kp_s_Series_int;
  PyObject *__pyx_kp_s_Series_str;
  PyObject *__pyx_kp_u_Substraction_failed;
  PyObject *__pyx_kp_u_The_format_string_for_datetime_i;
  PyObject *__pyx_kp_u_Time_zones_are_not_available_fro;
  PyObject *__pyx_n_s_TimedeltaIndex;
  PyObject *__pyx_n_s_Timestamp;
  PyObject *__pyx_kp_u_Token_s_does_not_represent_a_fin;
  PyObject *__pyx_n_s_UNIT_FREQUENCY;
  PyObject *__pyx_kp_u_Unable_to_adjust_time_unit_from;
  PyObject *__pyx_kp_u_Unsupported_dtobj_type;
  PyObject *__pyx_kp_u_Unsupported_dtsobj_type;
  PyObject *__pyx_n_s_ValueError;
  PyObject *__pyx_kp_u_Value_out_of_bounds;
  PyObject *__pyx_kp_u_Value_out_of_bounds_for_datetime;
  PyObject *__pyx_n_u_W;
  PyObject *__pyx_n_u_Y;
  PyObject *__pyx_kp_u_Y_m_d;
  PyObject *__pyx_kp_u_Y_m_dT_H_M_S_f;
  PyObject *__pyx_kp_u_Y_m_dT_H_M_S_f_z;
  PyObject *__pyx_kp_u_Y_m_d_H_M_S_f;
  PyObject *__pyx_kp_u_Y_m_d_H_M_S_f_z;
  PyObject *__pyx_n_s__155;
  PyObject *__pyx_kp_u__17;
  PyObject *__pyx_kp_u__18;
  PyObject *__pyx_kp_u__19;
  PyObject *__pyx_kp_u__20;
  PyObject *__pyx_kp_u__21;
  PyObject *__pyx_kp_u__22;
  PyObject *__pyx_kp_u__23;
  PyObject *__pyx_kp_u__24;
  PyObject *__pyx_kp_u__25;
  PyObject *__pyx_n_s__27;
  PyObject *__pyx_kp_u__7;
  PyObject *__pyx_kp_u__8;
  PyObject *__pyx_n_s_abs;
  PyObject *__pyx_n_s_add_delta;
  PyObject *__pyx_n_s_all;
  PyObject *__pyx_n_s_ambiguous;
  PyObject *__pyx_kp_u_and;
  PyObject *__pyx_n_s_apply;
  PyObject *__pyx_n_s_args;
  PyObject *__pyx_n_s_arr;
  PyObject *__pyx_n_s_array;
  PyObject *__pyx_n_s_as_unit;
  PyObject *__pyx_n_s_astimezone;
  PyObject *__pyx_n_s_asyncio_coroutines;
  PyObject *__pyx_n_s_base_tz;
  PyObject *__pyx_n_s_bool;
  PyObject *__pyx_kp_s_bool_None;
  PyObject *__pyx_kp_s_bool_Series_bool_Literal_raise_i;
  PyObject *__pyx_n_u_both;
  PyObject *__pyx_n_s_cache;
  PyObject *__pyx_n_s_cal_delta;
  PyObject *__pyx_n_s_ceil;
  PyObject *__pyx_n_s_cfg;
  PyObject *__pyx_n_s_class;
  PyObject *__pyx_n_s_class_getitem;
  PyObject *__pyx_n_s_cline_in_traceback;
  PyObject *__pyx_n_s_cls;
  PyObject *__pyx_n_s_contains;
  PyObject *__pyx_n_s_copy;
  PyObject *__pyx_n_s_copy_2;
  PyObject *__pyx_n_s_cydatetime;
  PyObject *__pyx_n_s_cydt;
  PyObject *__pyx_kp_s_cython_int;
  PyObject *__pyx_kp_s_cython_int_str_None;
  PyObject *__pyx_n_s_cytimes;
  PyObject *__pyx_n_s_cytimes_cyparser;
  PyObject *__pyx_n_s_cytimes_pddatetime;
  PyObject *__pyx_n_s_cytimes_pydatetime;
  PyObject *__pyx_n_u_d;
  PyObject *__pyx_n_s_date;
  PyObject *__pyx_n_s_date_range;
  PyObject *__pyx_n_s_datetime;
  PyObject *__pyx_n_s_day;
  PyObject *__pyx_n_s_day1st;
  PyObject *__pyx_n_s_day_of_year;
  PyObject *__pyx_n_s_dayfirst;
  PyObject *__pyx_n_s_days;
  PyObject *__pyx_n_s_days_in_month;
  PyObject *__pyx_n_s_deepcopy;
  PyObject *__pyx_n_s_default;
  PyObject *__pyx_n_s_dict;
  PyObject *__pyx_n_s_dict_2;
  PyObject *__pyx_kp_u_disable;
  PyObject *__pyx_n_s_dt;
  PyObject *__pyx_n_s_dtobj;
  PyObject *__pyx_n_s_dtsobj;
  PyObject *__pyx_n_s_dtype;
  PyObject *__pyx_kp_u_enable;
  PyObject *__pyx_n_s_end;
  PyObject *__pyx_n_s_equals;
  PyObject *__pyx_n_s_err;
  PyObject *__pyx_n_s_errors;
  PyObject *__pyx_n_s_exact;
  PyObject *__pyx_n_s_floor;
  PyObject *__pyx_n_s_format;
  PyObject *__pyx_n_s_freq;
  PyObject *__pyx_n_s_freq_ceil;
  PyObject *__pyx_n_s_freq_floor;
  PyObject *__pyx_n_s_freq_round;
  PyObject *__pyx_n_s_from_datetime;
  PyObject *__pyx_n_s_from_dtobj;
  PyObject *__pyx_n_s_from_range;
  PyObject *__pyx_n_s_full;
  PyObject *__pyx_kp_u_gc;
  PyObject *__pyx_n_s_getitem;
  PyObject *__pyx_n_s_getstate;
  PyObject *__pyx_n_u_h;
  PyObject *__pyx_n_s_hour;
  PyObject *__pyx_n_s_hours;
  PyObject *__pyx_n_s_import;
  PyObject *__pyx_n_s_inclusive;
  PyObject *__pyx_n_s_index;
  PyObject *__pyx_n_u_infer;
  PyObject *__pyx_n_s_initializing;
  PyObject *__pyx_n_s_int;
  PyObject *__pyx_kp_s_int_str;
  PyObject *__pyx_kp_s_int_str_None;
  PyObject *__pyx_n_s_is_coroutine;
  PyObject *__pyx_n_s_is_day;
  PyObject *__pyx_n_s_is_leap_year;
  PyObject *__pyx_n_s_is_leapyear;
  PyObject *__pyx_n_s_is_month;
  PyObject *__pyx_n_s_is_month_1st;
  PyObject *__pyx_n_s_is_month_end;
  PyObject *__pyx_n_s_is_month_lst;
  PyObject *__pyx_n_s_is_month_start;
  PyObject *__pyx_n_s_is_quarter;
  PyObject *__pyx_n_s_is_quarter_1st;
  PyObject *__pyx_n_s_is_quarter_end;
  PyObject *__pyx_n_s_is_quarter_lst;
  PyObject *__pyx_n_s_is_quarter_start;
  PyObject *__pyx_n_s_is_time_end;
  PyObject *__pyx_n_s_is_time_start;
  PyObject *__pyx_n_s_is_weekday;
  PyObject *__pyx_n_s_is_year;
  PyObject *__pyx_n_s_is_year_1st;
  PyObject *__pyx_n_s_is_year_end;
  PyObject *__pyx_n_s_is_year_lst;
  PyObject *__pyx_n_s_is_year_start;
  PyObject *__pyx_kp_u_isenabled;
  PyObject *__pyx_n_s_isocalendar;
  PyObject *__pyx_n_s_iter;
  PyObject *__pyx_n_s_kwargs;
  PyObject *__pyx_n_s_leap_bt_years;
  PyObject *__pyx_n_s_lower;
  PyObject *__pyx_n_u_m;
  PyObject *__pyx_n_s_main;
  PyObject *__pyx_n_s_microsecond;
  PyObject *__pyx_n_s_microseconds;
  PyObject *__pyx_n_s_millisecond;
  PyObject *__pyx_n_s_milliseconds;
  PyObject *__pyx_n_u_min;
  PyObject *__pyx_n_s_minimum;
  PyObject *__pyx_n_s_minute;
  PyObject *__pyx_n_s_minutes;
  PyObject *__pyx_n_s_month;
  PyObject *__pyx_n_s_months;
  PyObject *__pyx_n_u_ms;
  PyObject *__pyx_kp_u_must_between_0_Monday_6_Sunday;
  PyObject *__pyx_kp_u_must_between_1_Jan_12_Dec;
  PyObject *__pyx_n_s_naive;
  PyObject *__pyx_n_s_name;
  PyObject *__pyx_n_s_name_2;
  PyObject *__pyx_n_s_nanosecond;
  PyObject *__pyx_n_u_neither;
  PyObject *__pyx_n_s_new;
  PyObject *__pyx_n_s_nonexistent;
  PyObject *__pyx_n_s_normalize;
  PyObject *__pyx_n_s_now;
  PyObject *__pyx_n_s_np;
  PyObject *__pyx_kp_s_np_ndarray;
  PyObject *__pyx_n_u_ns;
  PyObject *__pyx_n_s_numpy;
  PyObject *__pyx_kp_u_numpy__core_multiarray_failed_to;
  PyObject *__pyx_kp_u_numpy__core_umath_failed_to_impo;
  PyObject *__pyx_n_s_o;
  PyObject *__pyx_n_s_object;
  PyObject *__pyx_kp_s_object_None;
  PyObject *__pyx_n_s_offset;
  PyObject *__pyx_n_u_one;
  PyObject *__pyx_n_s_ordinal;
  PyObject *__pyx_n_s_other;
  PyObject *__pyx_n_s_pandas;
  PyObject *__pyx_n_s_pandas_errors;
  PyObject *__pyx_n_s_pddt;
  PyObject *__pyx_n_u_pddt;
  PyObject *__pyx_kp_u_pddt_Invalid_timezone;
  PyObject *__pyx_kp_u_pddt_Unsupported_dtobj_type;
  PyObject *__pyx_n_s_pddt___array;
  PyObject *__pyx_n_s_pddt___copy;
  PyObject *__pyx_n_s_pddt___deepcopy;
  PyObject *__pyx_n_s_pddt___reduce_cython;
  PyObject *__pyx_n_s_pddt___setstate_cython;
  PyObject *__pyx_n_s_pddt_add_delta;
  PyObject *__pyx_n_s_pddt_as_unit;
  PyObject *__pyx_n_s_pddt_astimezone;
  PyObject *__pyx_n_s_pddt_cal_delta;
  PyObject *__pyx_n_s_pddt_copy;
  PyObject *__pyx_n_s_pddt_equals;
  PyObject *__pyx_n_s_pddt_freq_ceil;
  PyObject *__pyx_n_s_pddt_freq_floor;
  PyObject *__pyx_n_s_pddt_freq_round;
  PyObject *__pyx_n_s_pddt_from_datetime;
  PyObject *__pyx_n_s_pddt_from_dtobj;
  PyObject *__pyx_n_s_pddt_from_range;
  PyObject *__pyx_n_s_pddt_is_day;
  PyObject *__pyx_n_s_pddt_is_leapyear;
  PyObject *__pyx_n_s_pddt_is_month;
  PyObject *__pyx_n_s_pddt_is_month_1st;
  PyObject *__pyx_n_s_pddt_is_month_lst;
  PyObject *__pyx_n_s_pddt_is_quarter;
  PyObject *__pyx_n_s_pddt_is_quarter_1st;
  PyObject *__pyx_n_s_pddt_is_quarter_lst;
  PyObject *__pyx_n_s_pddt_is_time_end;
  PyObject *__pyx_n_s_pddt_is_time_start;
  PyObject *__pyx_n_s_pddt_is_weekday;
  PyObject *__pyx_n_s_pddt_is_year;
  PyObject *__pyx_n_s_pddt_is_year_1st;
  PyObject *__pyx_n_s_pddt_is_year_lst;
  PyObject *__pyx_n_s_pddt_leap_bt_years;
  PyObject *__pyx_n_s_pddt_now;
  PyObject *__pyx_n_s_pddt_replace;
  PyObject *__pyx_kp_u_pddt_s;
  PyObject *__pyx_n_s_pddt_strftime;
  PyObject *__pyx_n_s_pddt_sub_delta;
  PyObject *__pyx_n_s_pddt_to_curr_month;
  PyObject *__pyx_n_s_pddt_to_curr_quarter;
  PyObject *__pyx_n_s_pddt_to_curr_weekday;
  PyObject *__pyx_n_s_pddt_to_curr_year;
  PyObject *__pyx_n_s_pddt_to_day;
  PyObject *__pyx_n_s_pddt_to_friday;
  PyObject *__pyx_n_s_pddt_to_monday;
  PyObject *__pyx_n_s_pddt_to_month;
  PyObject *__pyx_n_s_pddt_to_month_1st;
  PyObject *__pyx_n_s_pddt_to_month_lst;
  PyObject *__pyx_n_s_pddt_to_next_month;
  PyObject *__pyx_n_s_pddt_to_next_quarter;
  PyObject *__pyx_n_s_pddt_to_next_weekday;
  PyObject *__pyx_n_s_pddt_to_next_year;
  PyObject *__pyx_n_s_pddt_to_prev_month;
  PyObject *__pyx_n_s_pddt_to_prev_quarter;
  PyObject *__pyx_n_s_pddt_to_prev_weekday;
  PyObject *__pyx_n_s_pddt_to_prev_year;
  PyObject *__pyx_n_s_pddt_to_quarter;
  PyObject *__pyx_n_s_pddt_to_quarter_1st;
  PyObject *__pyx_n_s_pddt_to_quarter_lst;
  PyObject *__pyx_n_s_pddt_to_saturday;
  PyObject *__pyx_n_s_pddt_to_sunday;
  PyObject *__pyx_n_s_pddt_to_thursday;
  PyObject *__pyx_n_s_pddt_to_time;
  PyObject *__pyx_n_s_pddt_to_time_end;
  PyObject *__pyx_n_s_pddt_to_time_start;
  PyObject *__pyx_n_s_pddt_to_tomorrow;
  PyObject *__pyx_n_s_pddt_to_tuesday;
  PyObject *__pyx_n_s_pddt_to_wednesday;
  PyObject *__pyx_n_s_pddt_to_weekday;
  PyObject *__pyx_n_s_pddt_to_year;
  PyObject *__pyx_n_s_pddt_to_year_1st;
  PyObject *__pyx_n_s_pddt_to_year_lst;
  PyObject *__pyx_n_s_pddt_to_yesterday;
  PyObject *__pyx_n_s_pddt_tz_convert;
  PyObject *__pyx_n_s_pddt_tz_localize;
  PyObject *__pyx_n_s_pddt_tz_switch;
  PyObject *__pyx_n_s_periods;
  PyObject *__pyx_n_s_pickle;
  PyObject *__pyx_n_s_pydt;
  PyObject *__pyx_kp_u_pydt_Invalid_timezone;
  PyObject *__pyx_n_s_pyx_PickleError;
  PyObject *__pyx_n_s_pyx_capi;
  PyObject *__pyx_n_s_pyx_checksum;
  PyObject *__pyx_n_s_pyx_result;
  PyObject *__pyx_n_s_pyx_state;
  PyObject *__pyx_n_s_pyx_type;
  PyObject *__pyx_n_s_pyx_unpickle_pddt;
  PyObject *__pyx_n_s_pyx_vtable;
  PyObject *__pyx_n_s_quarter;
  PyObject *__pyx_n_u_raise;
  PyObject *__pyx_n_s_range;
  PyObject *__pyx_n_s_reduce;
  PyObject *__pyx_n_s_reduce_cython;
  PyObject *__pyx_n_s_reduce_ex;
  PyObject *__pyx_n_s_replace;
  PyObject *__pyx_n_s_replace_locals_lambda;
  PyObject *__pyx_n_s_repr;
  PyObject *__pyx_n_s_return;
  PyObject *__pyx_n_s_round;
  PyObject *__pyx_n_u_s;
  PyObject *__pyx_kp_u_s_Argument_ambiguous_NaT_is_not;
  PyObject *__pyx_kp_u_s_Argument_nonexistent_NaT_is_n;
  PyObject *__pyx_n_s_second;
  PyObject *__pyx_n_s_seconds;
  PyObject *__pyx_n_s_self;
  PyObject *__pyx_n_s_setstate;
  PyObject *__pyx_n_s_setstate_cython;
  PyObject *__pyx_n_u_shift_backward;
  PyObject *__pyx_n_u_shift_forward;
  PyObject *__pyx_n_s_size;
  PyObject *__pyx_n_s_spec;
  PyObject *__pyx_kp_s_src_cytimes_pddatetime_py;
  PyObject *__pyx_n_s_start;
  PyObject *__pyx_n_s_startingMonth;
  PyObject *__pyx_n_s_state;
  PyObject *__pyx_n_s_str;
  PyObject *__pyx_kp_s_str_None;
  PyObject *__pyx_kp_s_str_datetime_tzinfo_None;
  PyObject *__pyx_n_s_strftime;
  PyObject *__pyx_kp_s_stringsource;
  PyObject *__pyx_n_s_sub_delta;
  PyObject *__pyx_n_s_targ_tz;
  PyObject *__pyx_n_s_test;
  PyObject *__pyx_n_s_time;
  PyObject *__pyx_n_s_timetz;
  PyObject *__pyx_kp_u_to;
  PyObject *__pyx_n_s_to_curr_month;
  PyObject *__pyx_n_s_to_curr_quarter;
  PyObject *__pyx_n_s_to_curr_weekday;
  PyObject *__pyx_n_s_to_curr_year;
  PyObject *__pyx_n_s_to_datetime;
  PyObject *__pyx_n_s_to_day;
  PyObject *__pyx_n_s_to_friday;
  PyObject *__pyx_n_s_to_monday;
  PyObject *__pyx_n_s_to_month;
  PyObject *__pyx_n_s_to_month_1st;
  PyObject *__pyx_n_s_to_month_lst;
  PyObject *__pyx_n_s_to_next_month;
  PyObject *__pyx_n_s_to_next_quarter;
  PyObject *__pyx_n_s_to_next_weekday;
  PyObject *__pyx_n_s_to_next_year;
  PyObject *__pyx_n_s_to_prev_month;
  PyObject *__pyx_n_s_to_prev_quarter;
  PyObject *__pyx_n_s_to_prev_weekday;
  PyObject *__pyx_n_s_to_prev_year;
  PyObject *__pyx_n_s_to_pydatetime;
  PyObject *__pyx_n_s_to_quarter;
  PyObject *__pyx_n_s_to_quarter_1st;
  PyObject *__pyx_n_s_to_quarter_lst;
  PyObject *__pyx_n_s_to_saturday;
  PyObject *__pyx_n_s_to_sunday;
  PyObject *__pyx_n_s_to_thursday;
  PyObject *__pyx_n_s_to_time;
  PyObject *__pyx_n_s_to_time_end;
  PyObject *__pyx_n_s_to_time_start;
  PyObject *__pyx_n_s_to_timedelta;
  PyObject *__pyx_n_s_to_tomorrow;
  PyObject *__pyx_n_s_to_tuesday;
  PyObject *__pyx_n_s_to_wednesday;
  PyObject *__pyx_n_s_to_weekday;
  PyObject *__pyx_n_s_to_year;
  PyObject *__pyx_n_s_to_year_1st;
  PyObject *__pyx_n_s_to_year_lst;
  PyObject *__pyx_n_s_to_yesterday;
  PyObject *__pyx_n_s_typeref;
  PyObject *__pyx_n_s_typing;
  PyObject *__pyx_n_s_tz;
  PyObject *__pyx_n_s_tz_convert;
  PyObject *__pyx_n_s_tz_localize;
  PyObject *__pyx_n_s_tz_switch;
  PyObject *__pyx_n_s_unit;
  PyObject *__pyx_n_s_update;
  PyObject *__pyx_n_u_us;
  PyObject *__pyx_n_s_use_setstate;
  PyObject *__pyx_n_s_utc;
  PyObject *__pyx_n_s_values;
  PyObject *__pyx_kp_u_vs;
  PyObject *__pyx_n_u_week;
  PyObject *__pyx_n_s_weekday;
  PyObject *__pyx_n_s_weeks;
  PyObject *__pyx_n_s_where;
  PyObject *__pyx_n_s_y1_arr;
  PyObject *__pyx_n_s_y2_arr;
  PyObject *__pyx_n_s_year;
  PyObject *__pyx_n_u_year;
  PyObject *__pyx_n_s_year1st;
  PyObject *__pyx_n_s_yearfirst;
  PyObject *__pyx_n_s_years;
  PyObject *__pyx_int_0;
  PyObject *__pyx_int_1;
  PyObject *__pyx_int_2;
  PyObject *__pyx_int_3;
  PyObject *__pyx_int_4;
  PyObject *__pyx_int_7;
  PyObject *__pyx_int_12;
  PyObject *__pyx_int_100;
  PyObject *__pyx_int_365;
  PyObject *__pyx_int_400;
  PyObject *__pyx_int_1000000;
  PyObject *__pyx_int_60000000;
  PyObject *__pyx_int_218360617;
  PyObject *__pyx_int_221774984;
  PyObject *__pyx_int_238332308;
  PyObject *__pyx_int_neg_1;
  PyObject *__pyx_k__9;
  PyObject *__pyx_k__10;
  PyObject *__pyx_k__11;
  PyObject *__pyx_k__12;
  PyObject *__pyx_k__13;
  PyObject *__pyx_tuple_;
  PyObject *__pyx_tuple__2;
  PyObject *__pyx_tuple__3;
  PyObject *__pyx_tuple__4;
  PyObject *__pyx_tuple__5;
  PyObject *__pyx_tuple__6;
  PyObject *__pyx_tuple__14;
  PyObject *__pyx_tuple__15;
  PyObject *__pyx_tuple__16;
  PyObject *__pyx_tuple__26;
  PyObject *__pyx_tuple__28;
  PyObject *__pyx_tuple__30;
  PyObject *__pyx_tuple__31;
  PyObject *__pyx_tuple__33;
  PyObject *__pyx_tuple__34;
  PyObject *__pyx_tuple__36;
  PyObject *__pyx_tuple__38;
  PyObject *__pyx_tuple__39;
  PyObject *__pyx_tuple__41;
  PyObject *__pyx_tuple__43;
  PyObject *__pyx_tuple__49;
  PyObject *__pyx_tuple__51;
  PyObject *__pyx_tuple__54;
  PyObject *__pyx_tuple__56;
  PyObject *__pyx_tuple__57;
  PyObject *__pyx_tuple__64;
  PyObject *__pyx_tuple__68;
  PyObject *__pyx_tuple__69;
  PyObject *__pyx_tuple__75;
  PyObject *__pyx_tuple__77;
  PyObject *__pyx_tuple__80;
  PyObject *__pyx_tuple__82;
  PyObject *__pyx_tuple__83;
  PyObject *__pyx_tuple__93;
  PyObject *__pyx_tuple__96;
  PyObject *__pyx_tuple__98;
  PyObject *__pyx_tuple__102;
  PyObject *__pyx_tuple__108;
  PyObject *__pyx_tuple__110;
  PyObject *__pyx_tuple__111;
  PyObject *__pyx_tuple__113;
  PyObject *__pyx_tuple__115;
  PyObject *__pyx_tuple__116;
  PyObject *__pyx_tuple__118;
  PyObject *__pyx_tuple__120;
  PyObject *__pyx_tuple__121;
  PyObject *__pyx_tuple__123;
  PyObject *__pyx_tuple__125;
  PyObject *__pyx_tuple__127;
  PyObject *__pyx_tuple__128;
  PyObject *__pyx_tuple__130;
  PyObject *__pyx_tuple__132;
  PyObject *__pyx_tuple__134;
  PyObject *__pyx_tuple__135;
  PyObject *__pyx_tuple__137;
  PyObject *__pyx_tuple__138;
  PyObject *__pyx_tuple__140;
  PyObject *__pyx_tuple__142;
  PyObject *__pyx_tuple__145;
  PyObject *__pyx_tuple__149;
  PyObject *__pyx_tuple__151;
  PyObject *__pyx_tuple__153;
  PyObject *__pyx_codeobj__29;
  PyObject *__pyx_codeobj__32;
  PyObject *__pyx_codeobj__35;
  PyObject *__pyx_codeobj__37;
  PyObject *__pyx_codeobj__40;
  PyObject *__pyx_codeobj__42;
  PyObject *__pyx_codeobj__44;
  PyObject *__pyx_codeobj__45;
  PyObject *__pyx_codeobj__46;
  PyObject *__pyx_codeobj__47;
  PyObject *__pyx_codeobj__48;
  PyObject *__pyx_codeobj__50;
  PyObject *__pyx_codeobj__52;
  PyObject *__pyx_codeobj__53;
  PyObject *__pyx_codeobj__55;
  PyObject *__pyx_codeobj__58;
  PyObject *__pyx_codeobj__59;
  PyObject *__pyx_codeobj__60;
  PyObject *__pyx_codeobj__61;
  PyObject *__pyx_codeobj__62;
  PyObject *__pyx_codeobj__63;
  PyObject *__pyx_codeobj__65;
  PyObject *__pyx_codeobj__66;
  PyObject *__pyx_codeobj__67;
  PyObject *__pyx_codeobj__70;
  PyObject *__pyx_codeobj__71;
  PyObject *__pyx_codeobj__72;
  PyObject *__pyx_codeobj__73;
  PyObject *__pyx_codeobj__74;
  PyObject *__pyx_codeobj__76;
  PyObject *__pyx_codeobj__78;
  PyObject *__pyx_codeobj__79;
  PyObject *__pyx_codeobj__81;
  PyObject *__pyx_codeobj__84;
  PyObject *__pyx_codeobj__85;
  PyObject *__pyx_codeobj__86;
  PyObject *__pyx_codeobj__87;
  PyObject *__pyx_codeobj__88;
  PyObject *__pyx_codeobj__89;
  PyObject *__pyx_codeobj__90;
  PyObject *__pyx_codeobj__91;
  PyObject *__pyx_codeobj__92;
  PyObject *__pyx_codeobj__94;
  PyObject *__pyx_codeobj__95;
  PyObject *__pyx_codeobj__97;
  PyObject *__pyx_codeobj__99;
  PyObject *__pyx_codeobj__100;
  PyObject *__pyx_codeobj__101;
  PyObject *__pyx_codeobj__103;
  PyObject *__pyx_codeobj__104;
  PyObject *__pyx_codeobj__105;
  PyObject *__pyx_codeobj__106;
  PyObject *__pyx_codeobj__107;
  PyObject *__pyx_codeobj__109;
  PyObject *__pyx_codeobj__112;
  PyObject *__pyx_codeobj__114;
  PyObject *__pyx_codeobj__117;
  PyObject *__pyx_codeobj__119;
  PyObject *__pyx_codeobj__122;
  PyObject *__pyx_codeobj__124;
  PyObject *__pyx_codeobj__126;
  PyObject *__pyx_codeobj__129;
  PyObject *__pyx_codeobj__131;
  PyObject *__pyx_codeobj__133;
  PyObject *__pyx_codeobj__136;
  PyObject *__pyx_codeobj__139;
  PyObject *__pyx_codeobj__141;
  PyObject *__pyx_codeobj__143;
  PyObject *__pyx_codeobj__144;
  PyObject *__pyx_codeobj__146;
  PyObject *__pyx_codeobj__147;
  PyObject *__pyx_codeobj__148;
  PyObject *__pyx_codeobj__150;
  PyObject *__pyx_codeobj__152;
  PyObject *__pyx_codeobj__154;
} __pyx_mstate;

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
  extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate(o) ((__pyx_mstate *)__Pyx_PyModule_GetState(o))

#define __pyx_mstate_global (__pyx_mstate(PyState_FindModule(&__pyx_moduledef)))

#define __pyx_m (PyState_FindModule(&__pyx_moduledef))
#else
static __pyx_mstate __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstate *__pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static int __pyx_m_clear(PyObject *m) {
  __pyx_mstate *clear_module_state = __pyx_mstate(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #ifdef __Pyx_CyFunction_USED
  Py_CLEAR(clear_module_state->__pyx_CyFunctionType);
  #endif
  #ifdef __Pyx_FusedFunction_USED
  Py_CLEAR(clear_module_state->__pyx_FusedFunctionType);
  #endif
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4type_type);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4bool_bool);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_7complex_complex);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_dtype);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_flatiter);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_broadcast);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_ndarray);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_generic);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_number);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_integer);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_signedinteger);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_unsignedinteger);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_inexact);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_floating);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_complexfloating);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_flexible);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_character);
  Py_CLEAR(clear_module_state->__pyx_ptype_5numpy_ufunc);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_8datetime_date);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_8datetime_time);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_8datetime_datetime);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_8datetime_timedelta);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_8datetime_tzinfo);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cytimes_8cyparser_Result);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cytimes_8cyparser_Config);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cytimes_8cyparser_Parser);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cytimes_7cydelta_cytimedelta);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cytimes_10pydatetime_pydt);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cytimes_10pddatetime_pddt);
  Py_CLEAR(clear_module_state->__pyx_type_7cytimes_10pddatetime_pddt);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace);
  Py_CLEAR(clear_module_state->__pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Addition_failed);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Can_t_convert_token_s_to_float);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Can_t_convert_token_s_to_integer);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Cannot_calculate_delta_for_obje);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Cannot_parse_dtsobj_into_Dateti);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Cannot_switch_timezone_naive_pd);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Comparison_failed);
  Py_CLEAR(clear_module_state->__pyx_n_s_Config);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Config_None);
  Py_CLEAR(clear_module_state->__pyx_n_u_D);
  Py_CLEAR(clear_module_state->__pyx_n_s_DataFrame);
  Py_CLEAR(clear_module_state->__pyx_n_s_DatetimeOutOfBoundsError);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Empty_microsecond_token_s);
  Py_CLEAR(clear_module_state->__pyx_n_s_FN_NP_ABS);
  Py_CLEAR(clear_module_state->__pyx_n_s_FN_NP_FULL);
  Py_CLEAR(clear_module_state->__pyx_n_s_FN_NP_MIN);
  Py_CLEAR(clear_module_state->__pyx_n_s_FN_NP_WHERE);
  Py_CLEAR(clear_module_state->__pyx_n_s_FN_PD_DATERANGE);
  Py_CLEAR(clear_module_state->__pyx_n_s_FN_PD_TODATETIME);
  Py_CLEAR(clear_module_state->__pyx_n_s_FN_PD_TOTIMEDELTA);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Failed_to_allocate_memory_for_th);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Failed_to_parse_dtsobj);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Failed_to_parse_month_string);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Failed_to_parse_weekday_string);
  Py_CLEAR(clear_module_state->__pyx_kp_u_H_M_S_f);
  Py_CLEAR(clear_module_state->__pyx_n_s_ImportError);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0);
  Py_CLEAR(clear_module_state->__pyx_n_s_Index);
  Py_CLEAR(clear_module_state->__pyx_n_s_InvalidDatetimeObjectError);
  Py_CLEAR(clear_module_state->__pyx_n_s_InvalidDeltaInclusiveError);
  Py_CLEAR(clear_module_state->__pyx_n_s_InvalidDeltaUnitError);
  Py_CLEAR(clear_module_state->__pyx_n_s_InvalidFrequencyError);
  Py_CLEAR(clear_module_state->__pyx_n_s_InvalidMonthError);
  Py_CLEAR(clear_module_state->__pyx_n_s_InvalidTimeUnitError);
  Py_CLEAR(clear_module_state->__pyx_n_s_InvalidTimezoneError);
  Py_CLEAR(clear_module_state->__pyx_n_s_InvalidWeekdayError);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_character_to_slice_to_fl);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_character_to_slice_to_in);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_delta_unit_input);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_freq_input);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_inclusive_input);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_microsecond_token_s);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_month_data_type);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_month_value);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_tz_timezone);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_weekday_data_type);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Invalid_weekday_value);
  Py_CLEAR(clear_module_state->__pyx_n_s_Iterator);
  Py_CLEAR(clear_module_state->__pyx_n_s_Literal);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_D_h_m_s_ms_us_ns);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_Y_M_W_D_Bh_m_s_ms_us_ns);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_Y_M_W_D_h_m_s_ms_us_ns);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_left_right_both_neither);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_one_both_neither);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_s_ms_us_ns);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_s_ms_us_ns_None);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Literal_shift_forward_shift_back);
  Py_CLEAR(clear_module_state->__pyx_n_u_M);
  Py_CLEAR(clear_module_state->__pyx_kp_u_M8_us);
  Py_CLEAR(clear_module_state->__pyx_n_s_MemoryError);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Must_be_one_of_the_following_st);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Must_be_one_of_the_following_st_2);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Must_be_one_of_the_following_st_3);
  Py_CLEAR(clear_module_state->__pyx_n_u_NaT);
  Py_CLEAR(clear_module_state->__pyx_kp_u_None);
  Py_CLEAR(clear_module_state->__pyx_n_s_OutOfBoundsDatetime);
  Py_CLEAR(clear_module_state->__pyx_n_s_OverflowError);
  Py_CLEAR(clear_module_state->__pyx_n_s_PddtError);
  Py_CLEAR(clear_module_state->__pyx_n_s_PddtValueError);
  Py_CLEAR(clear_module_state->__pyx_n_s_PickleError);
  Py_CLEAR(clear_module_state->__pyx_n_s_RuntimeError);
  Py_CLEAR(clear_module_state->__pyx_n_s_Series);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Series_bool);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Series_int);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Series_str);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Substraction_failed);
  Py_CLEAR(clear_module_state->__pyx_kp_u_The_format_string_for_datetime_i);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Time_zones_are_not_available_fro);
  Py_CLEAR(clear_module_state->__pyx_n_s_TimedeltaIndex);
  Py_CLEAR(clear_module_state->__pyx_n_s_Timestamp);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Token_s_does_not_represent_a_fin);
  Py_CLEAR(clear_module_state->__pyx_n_s_UNIT_FREQUENCY);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Unable_to_adjust_time_unit_from);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Unsupported_dtobj_type);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Unsupported_dtsobj_type);
  Py_CLEAR(clear_module_state->__pyx_n_s_ValueError);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Value_out_of_bounds);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Value_out_of_bounds_for_datetime);
  Py_CLEAR(clear_module_state->__pyx_n_u_W);
  Py_CLEAR(clear_module_state->__pyx_n_u_Y);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Y_m_d);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Y_m_dT_H_M_S_f);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Y_m_dT_H_M_S_f_z);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Y_m_d_H_M_S_f);
  Py_CLEAR(clear_module_state->__pyx_kp_u_Y_m_d_H_M_S_f_z);
  Py_CLEAR(clear_module_state->__pyx_n_s__155);
  Py_CLEAR(clear_module_state->__pyx_kp_u__17);
  Py_CLEAR(clear_module_state->__pyx_kp_u__18);
  Py_CLEAR(clear_module_state->__pyx_kp_u__19);
  Py_CLEAR(clear_module_state->__pyx_kp_u__20);
  Py_CLEAR(clear_module_state->__pyx_kp_u__21);
  Py_CLEAR(clear_module_state->__pyx_kp_u__22);
  Py_CLEAR(clear_module_state->__pyx_kp_u__23);
  Py_CLEAR(clear_module_state->__pyx_kp_u__24);
  Py_CLEAR(clear_module_state->__pyx_kp_u__25);
  Py_CLEAR(clear_module_state->__pyx_n_s__27);
  Py_CLEAR(clear_module_state->__pyx_kp_u__7);
  Py_CLEAR(clear_module_state->__pyx_kp_u__8);
  Py_CLEAR(clear_module_state->__pyx_n_s_abs);
  Py_CLEAR(clear_module_state->__pyx_n_s_add_delta);
  Py_CLEAR(clear_module_state->__pyx_n_s_all);
  Py_CLEAR(clear_module_state->__pyx_n_s_ambiguous);
  Py_CLEAR(clear_module_state->__pyx_kp_u_and);
  Py_CLEAR(clear_module_state->__pyx_n_s_apply);
  Py_CLEAR(clear_module_state->__pyx_n_s_args);
  Py_CLEAR(clear_module_state->__pyx_n_s_arr);
  Py_CLEAR(clear_module_state->__pyx_n_s_array);
  Py_CLEAR(clear_module_state->__pyx_n_s_as_unit);
  Py_CLEAR(clear_module_state->__pyx_n_s_astimezone);
  Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_coroutines);
  Py_CLEAR(clear_module_state->__pyx_n_s_base_tz);
  Py_CLEAR(clear_module_state->__pyx_n_s_bool);
  Py_CLEAR(clear_module_state->__pyx_kp_s_bool_None);
  Py_CLEAR(clear_module_state->__pyx_kp_s_bool_Series_bool_Literal_raise_i);
  Py_CLEAR(clear_module_state->__pyx_n_u_both);
  Py_CLEAR(clear_module_state->__pyx_n_s_cache);
  Py_CLEAR(clear_module_state->__pyx_n_s_cal_delta);
  Py_CLEAR(clear_module_state->__pyx_n_s_ceil);
  Py_CLEAR(clear_module_state->__pyx_n_s_cfg);
  Py_CLEAR(clear_module_state->__pyx_n_s_class);
  Py_CLEAR(clear_module_state->__pyx_n_s_class_getitem);
  Py_CLEAR(clear_module_state->__pyx_n_s_cline_in_traceback);
  Py_CLEAR(clear_module_state->__pyx_n_s_cls);
  Py_CLEAR(clear_module_state->__pyx_n_s_contains);
  Py_CLEAR(clear_module_state->__pyx_n_s_copy);
  Py_CLEAR(clear_module_state->__pyx_n_s_copy_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_cydatetime);
  Py_CLEAR(clear_module_state->__pyx_n_s_cydt);
  Py_CLEAR(clear_module_state->__pyx_kp_s_cython_int);
  Py_CLEAR(clear_module_state->__pyx_kp_s_cython_int_str_None);
  Py_CLEAR(clear_module_state->__pyx_n_s_cytimes);
  Py_CLEAR(clear_module_state->__pyx_n_s_cytimes_cyparser);
  Py_CLEAR(clear_module_state->__pyx_n_s_cytimes_pddatetime);
  Py_CLEAR(clear_module_state->__pyx_n_s_cytimes_pydatetime);
  Py_CLEAR(clear_module_state->__pyx_n_u_d);
  Py_CLEAR(clear_module_state->__pyx_n_s_date);
  Py_CLEAR(clear_module_state->__pyx_n_s_date_range);
  Py_CLEAR(clear_module_state->__pyx_n_s_datetime);
  Py_CLEAR(clear_module_state->__pyx_n_s_day);
  Py_CLEAR(clear_module_state->__pyx_n_s_day1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_day_of_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_dayfirst);
  Py_CLEAR(clear_module_state->__pyx_n_s_days);
  Py_CLEAR(clear_module_state->__pyx_n_s_days_in_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_deepcopy);
  Py_CLEAR(clear_module_state->__pyx_n_s_default);
  Py_CLEAR(clear_module_state->__pyx_n_s_dict);
  Py_CLEAR(clear_module_state->__pyx_n_s_dict_2);
  Py_CLEAR(clear_module_state->__pyx_kp_u_disable);
  Py_CLEAR(clear_module_state->__pyx_n_s_dt);
  Py_CLEAR(clear_module_state->__pyx_n_s_dtobj);
  Py_CLEAR(clear_module_state->__pyx_n_s_dtsobj);
  Py_CLEAR(clear_module_state->__pyx_n_s_dtype);
  Py_CLEAR(clear_module_state->__pyx_kp_u_enable);
  Py_CLEAR(clear_module_state->__pyx_n_s_end);
  Py_CLEAR(clear_module_state->__pyx_n_s_equals);
  Py_CLEAR(clear_module_state->__pyx_n_s_err);
  Py_CLEAR(clear_module_state->__pyx_n_s_errors);
  Py_CLEAR(clear_module_state->__pyx_n_s_exact);
  Py_CLEAR(clear_module_state->__pyx_n_s_floor);
  Py_CLEAR(clear_module_state->__pyx_n_s_format);
  Py_CLEAR(clear_module_state->__pyx_n_s_freq);
  Py_CLEAR(clear_module_state->__pyx_n_s_freq_ceil);
  Py_CLEAR(clear_module_state->__pyx_n_s_freq_floor);
  Py_CLEAR(clear_module_state->__pyx_n_s_freq_round);
  Py_CLEAR(clear_module_state->__pyx_n_s_from_datetime);
  Py_CLEAR(clear_module_state->__pyx_n_s_from_dtobj);
  Py_CLEAR(clear_module_state->__pyx_n_s_from_range);
  Py_CLEAR(clear_module_state->__pyx_n_s_full);
  Py_CLEAR(clear_module_state->__pyx_kp_u_gc);
  Py_CLEAR(clear_module_state->__pyx_n_s_getitem);
  Py_CLEAR(clear_module_state->__pyx_n_s_getstate);
  Py_CLEAR(clear_module_state->__pyx_n_u_h);
  Py_CLEAR(clear_module_state->__pyx_n_s_hour);
  Py_CLEAR(clear_module_state->__pyx_n_s_hours);
  Py_CLEAR(clear_module_state->__pyx_n_s_import);
  Py_CLEAR(clear_module_state->__pyx_n_s_inclusive);
  Py_CLEAR(clear_module_state->__pyx_n_s_index);
  Py_CLEAR(clear_module_state->__pyx_n_u_infer);
  Py_CLEAR(clear_module_state->__pyx_n_s_initializing);
  Py_CLEAR(clear_module_state->__pyx_n_s_int);
  Py_CLEAR(clear_module_state->__pyx_kp_s_int_str);
  Py_CLEAR(clear_module_state->__pyx_kp_s_int_str_None);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_coroutine);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_day);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_leap_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_leapyear);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_month_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_month_end);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_month_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_month_start);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_quarter_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_quarter_end);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_quarter_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_quarter_start);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_time_end);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_time_start);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_year_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_year_end);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_year_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_is_year_start);
  Py_CLEAR(clear_module_state->__pyx_kp_u_isenabled);
  Py_CLEAR(clear_module_state->__pyx_n_s_isocalendar);
  Py_CLEAR(clear_module_state->__pyx_n_s_iter);
  Py_CLEAR(clear_module_state->__pyx_n_s_kwargs);
  Py_CLEAR(clear_module_state->__pyx_n_s_leap_bt_years);
  Py_CLEAR(clear_module_state->__pyx_n_s_lower);
  Py_CLEAR(clear_module_state->__pyx_n_u_m);
  Py_CLEAR(clear_module_state->__pyx_n_s_main);
  Py_CLEAR(clear_module_state->__pyx_n_s_microsecond);
  Py_CLEAR(clear_module_state->__pyx_n_s_microseconds);
  Py_CLEAR(clear_module_state->__pyx_n_s_millisecond);
  Py_CLEAR(clear_module_state->__pyx_n_s_milliseconds);
  Py_CLEAR(clear_module_state->__pyx_n_u_min);
  Py_CLEAR(clear_module_state->__pyx_n_s_minimum);
  Py_CLEAR(clear_module_state->__pyx_n_s_minute);
  Py_CLEAR(clear_module_state->__pyx_n_s_minutes);
  Py_CLEAR(clear_module_state->__pyx_n_s_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_months);
  Py_CLEAR(clear_module_state->__pyx_n_u_ms);
  Py_CLEAR(clear_module_state->__pyx_kp_u_must_between_0_Monday_6_Sunday);
  Py_CLEAR(clear_module_state->__pyx_kp_u_must_between_1_Jan_12_Dec);
  Py_CLEAR(clear_module_state->__pyx_n_s_naive);
  Py_CLEAR(clear_module_state->__pyx_n_s_name);
  Py_CLEAR(clear_module_state->__pyx_n_s_name_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_nanosecond);
  Py_CLEAR(clear_module_state->__pyx_n_u_neither);
  Py_CLEAR(clear_module_state->__pyx_n_s_new);
  Py_CLEAR(clear_module_state->__pyx_n_s_nonexistent);
  Py_CLEAR(clear_module_state->__pyx_n_s_normalize);
  Py_CLEAR(clear_module_state->__pyx_n_s_now);
  Py_CLEAR(clear_module_state->__pyx_n_s_np);
  Py_CLEAR(clear_module_state->__pyx_kp_s_np_ndarray);
  Py_CLEAR(clear_module_state->__pyx_n_u_ns);
  Py_CLEAR(clear_module_state->__pyx_n_s_numpy);
  Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
  Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
  Py_CLEAR(clear_module_state->__pyx_n_s_o);
  Py_CLEAR(clear_module_state->__pyx_n_s_object);
  Py_CLEAR(clear_module_state->__pyx_kp_s_object_None);
  Py_CLEAR(clear_module_state->__pyx_n_s_offset);
  Py_CLEAR(clear_module_state->__pyx_n_u_one);
  Py_CLEAR(clear_module_state->__pyx_n_s_ordinal);
  Py_CLEAR(clear_module_state->__pyx_n_s_other);
  Py_CLEAR(clear_module_state->__pyx_n_s_pandas);
  Py_CLEAR(clear_module_state->__pyx_n_s_pandas_errors);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt);
  Py_CLEAR(clear_module_state->__pyx_n_u_pddt);
  Py_CLEAR(clear_module_state->__pyx_kp_u_pddt_Invalid_timezone);
  Py_CLEAR(clear_module_state->__pyx_kp_u_pddt_Unsupported_dtobj_type);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt___array);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt___copy);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt___deepcopy);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt___reduce_cython);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt___setstate_cython);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_add_delta);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_as_unit);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_astimezone);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_cal_delta);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_copy);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_equals);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_freq_ceil);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_freq_floor);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_freq_round);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_from_datetime);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_from_dtobj);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_from_range);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_day);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_leapyear);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_month_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_month_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_quarter_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_quarter_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_time_end);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_time_start);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_year_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_is_year_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_leap_bt_years);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_now);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_replace);
  Py_CLEAR(clear_module_state->__pyx_kp_u_pddt_s);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_strftime);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_sub_delta);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_curr_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_curr_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_curr_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_curr_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_day);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_friday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_monday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_month_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_month_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_next_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_next_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_next_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_next_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_prev_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_prev_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_prev_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_prev_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_quarter_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_quarter_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_saturday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_sunday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_thursday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_time);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_time_end);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_time_start);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_tomorrow);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_tuesday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_wednesday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_year_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_year_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_to_yesterday);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_tz_convert);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_tz_localize);
  Py_CLEAR(clear_module_state->__pyx_n_s_pddt_tz_switch);
  Py_CLEAR(clear_module_state->__pyx_n_s_periods);
  Py_CLEAR(clear_module_state->__pyx_n_s_pickle);
  Py_CLEAR(clear_module_state->__pyx_n_s_pydt);
  Py_CLEAR(clear_module_state->__pyx_kp_u_pydt_Invalid_timezone);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_PickleError);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_capi);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_checksum);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_result);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_state);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_type);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_pddt);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_vtable);
  Py_CLEAR(clear_module_state->__pyx_n_s_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_u_raise);
  Py_CLEAR(clear_module_state->__pyx_n_s_range);
  Py_CLEAR(clear_module_state->__pyx_n_s_reduce);
  Py_CLEAR(clear_module_state->__pyx_n_s_reduce_cython);
  Py_CLEAR(clear_module_state->__pyx_n_s_reduce_ex);
  Py_CLEAR(clear_module_state->__pyx_n_s_replace);
  Py_CLEAR(clear_module_state->__pyx_n_s_replace_locals_lambda);
  Py_CLEAR(clear_module_state->__pyx_n_s_repr);
  Py_CLEAR(clear_module_state->__pyx_n_s_return);
  Py_CLEAR(clear_module_state->__pyx_n_s_round);
  Py_CLEAR(clear_module_state->__pyx_n_u_s);
  Py_CLEAR(clear_module_state->__pyx_kp_u_s_Argument_ambiguous_NaT_is_not);
  Py_CLEAR(clear_module_state->__pyx_kp_u_s_Argument_nonexistent_NaT_is_n);
  Py_CLEAR(clear_module_state->__pyx_n_s_second);
  Py_CLEAR(clear_module_state->__pyx_n_s_seconds);
  Py_CLEAR(clear_module_state->__pyx_n_s_self);
  Py_CLEAR(clear_module_state->__pyx_n_s_setstate);
  Py_CLEAR(clear_module_state->__pyx_n_s_setstate_cython);
  Py_CLEAR(clear_module_state->__pyx_n_u_shift_backward);
  Py_CLEAR(clear_module_state->__pyx_n_u_shift_forward);
  Py_CLEAR(clear_module_state->__pyx_n_s_size);
  Py_CLEAR(clear_module_state->__pyx_n_s_spec);
  Py_CLEAR(clear_module_state->__pyx_kp_s_src_cytimes_pddatetime_py);
  Py_CLEAR(clear_module_state->__pyx_n_s_start);
  Py_CLEAR(clear_module_state->__pyx_n_s_startingMonth);
  Py_CLEAR(clear_module_state->__pyx_n_s_state);
  Py_CLEAR(clear_module_state->__pyx_n_s_str);
  Py_CLEAR(clear_module_state->__pyx_kp_s_str_None);
  Py_CLEAR(clear_module_state->__pyx_kp_s_str_datetime_tzinfo_None);
  Py_CLEAR(clear_module_state->__pyx_n_s_strftime);
  Py_CLEAR(clear_module_state->__pyx_kp_s_stringsource);
  Py_CLEAR(clear_module_state->__pyx_n_s_sub_delta);
  Py_CLEAR(clear_module_state->__pyx_n_s_targ_tz);
  Py_CLEAR(clear_module_state->__pyx_n_s_test);
  Py_CLEAR(clear_module_state->__pyx_n_s_time);
  Py_CLEAR(clear_module_state->__pyx_n_s_timetz);
  Py_CLEAR(clear_module_state->__pyx_kp_u_to);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_curr_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_curr_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_curr_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_curr_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_datetime);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_day);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_friday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_monday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_month_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_month_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_next_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_next_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_next_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_next_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_prev_month);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_prev_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_prev_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_prev_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_pydatetime);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_quarter);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_quarter_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_quarter_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_saturday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_sunday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_thursday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_time);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_time_end);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_time_start);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_timedelta);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_tomorrow);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_tuesday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_wednesday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_year_1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_year_lst);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_yesterday);
  Py_CLEAR(clear_module_state->__pyx_n_s_typeref);
  Py_CLEAR(clear_module_state->__pyx_n_s_typing);
  Py_CLEAR(clear_module_state->__pyx_n_s_tz);
  Py_CLEAR(clear_module_state->__pyx_n_s_tz_convert);
  Py_CLEAR(clear_module_state->__pyx_n_s_tz_localize);
  Py_CLEAR(clear_module_state->__pyx_n_s_tz_switch);
  Py_CLEAR(clear_module_state->__pyx_n_s_unit);
  Py_CLEAR(clear_module_state->__pyx_n_s_update);
  Py_CLEAR(clear_module_state->__pyx_n_u_us);
  Py_CLEAR(clear_module_state->__pyx_n_s_use_setstate);
  Py_CLEAR(clear_module_state->__pyx_n_s_utc);
  Py_CLEAR(clear_module_state->__pyx_n_s_values);
  Py_CLEAR(clear_module_state->__pyx_kp_u_vs);
  Py_CLEAR(clear_module_state->__pyx_n_u_week);
  Py_CLEAR(clear_module_state->__pyx_n_s_weekday);
  Py_CLEAR(clear_module_state->__pyx_n_s_weeks);
  Py_CLEAR(clear_module_state->__pyx_n_s_where);
  Py_CLEAR(clear_module_state->__pyx_n_s_y1_arr);
  Py_CLEAR(clear_module_state->__pyx_n_s_y2_arr);
  Py_CLEAR(clear_module_state->__pyx_n_s_year);
  Py_CLEAR(clear_module_state->__pyx_n_u_year);
  Py_CLEAR(clear_module_state->__pyx_n_s_year1st);
  Py_CLEAR(clear_module_state->__pyx_n_s_yearfirst);
  Py_CLEAR(clear_module_state->__pyx_n_s_years);
  Py_CLEAR(clear_module_state->__pyx_int_0);
  Py_CLEAR(clear_module_state->__pyx_int_1);
  Py_CLEAR(clear_module_state->__pyx_int_2);
  Py_CLEAR(clear_module_state->__pyx_int_3);
  Py_CLEAR(clear_module_state->__pyx_int_4);
  Py_CLEAR(clear_module_state->__pyx_int_7);
  Py_CLEAR(clear_module_state->__pyx_int_12);
  Py_CLEAR(clear_module_state->__pyx_int_100);
  Py_CLEAR(clear_module_state->__pyx_int_365);
  Py_CLEAR(clear_module_state->__pyx_int_400);
  Py_CLEAR(clear_module_state->__pyx_int_1000000);
  Py_CLEAR(clear_module_state->__pyx_int_60000000);
  Py_CLEAR(clear_module_state->__pyx_int_218360617);
  Py_CLEAR(clear_module_state->__pyx_int_221774984);
  Py_CLEAR(clear_module_state->__pyx_int_238332308);
  Py_CLEAR(clear_module_state->__pyx_int_neg_1);
  Py_CLEAR(clear_module_state->__pyx_k__9);
  Py_CLEAR(clear_module_state->__pyx_k__10);
  Py_CLEAR(clear_module_state->__pyx_k__11);
  Py_CLEAR(clear_module_state->__pyx_k__12);
  Py_CLEAR(clear_module_state->__pyx_k__13);
  Py_CLEAR(clear_module_state->__pyx_tuple_);
  Py_CLEAR(clear_module_state->__pyx_tuple__2);
  Py_CLEAR(clear_module_state->__pyx_tuple__3);
  Py_CLEAR(clear_module_state->__pyx_tuple__4);
  Py_CLEAR(clear_module_state->__pyx_tuple__5);
  Py_CLEAR(clear_module_state->__pyx_tuple__6);
  Py_CLEAR(clear_module_state->__pyx_tuple__14);
  Py_CLEAR(clear_module_state->__pyx_tuple__15);
  Py_CLEAR(clear_module_state->__pyx_tuple__16);
  Py_CLEAR(clear_module_state->__pyx_tuple__26);
  Py_CLEAR(clear_module_state->__pyx_tuple__28);
  Py_CLEAR(clear_module_state->__pyx_tuple__30);
  Py_CLEAR(clear_module_state->__pyx_tuple__31);
  Py_CLEAR(clear_module_state->__pyx_tuple__33);
  Py_CLEAR(clear_module_state->__pyx_tuple__34);
  Py_CLEAR(clear_module_state->__pyx_tuple__36);
  Py_CLEAR(clear_module_state->__pyx_tuple__38);
  Py_CLEAR(clear_module_state->__pyx_tuple__39);
  Py_CLEAR(clear_module_state->__pyx_tuple__41);
  Py_CLEAR(clear_module_state->__pyx_tuple__43);
  Py_CLEAR(clear_module_state->__pyx_tuple__49);
  Py_CLEAR(clear_module_state->__pyx_tuple__51);
  Py_CLEAR(clear_module_state->__pyx_tuple__54);
  Py_CLEAR(clear_module_state->__pyx_tuple__56);
  Py_CLEAR(clear_module_state->__pyx_tuple__57);
  Py_CLEAR(clear_module_state->__pyx_tuple__64);
  Py_CLEAR(clear_module_state->__pyx_tuple__68);
  Py_CLEAR(clear_module_state->__pyx_tuple__69);
  Py_CLEAR(clear_module_state->__pyx_tuple__75);
  Py_CLEAR(clear_module_state->__pyx_tuple__77);
  Py_CLEAR(clear_module_state->__pyx_tuple__80);
  Py_CLEAR(clear_module_state->__pyx_tuple__82);
  Py_CLEAR(clear_module_state->__pyx_tuple__83);
  Py_CLEAR(clear_module_state->__pyx_tuple__93);
  Py_CLEAR(clear_module_state->__pyx_tuple__96);
  Py_CLEAR(clear_module_state->__pyx_tuple__98);
  Py_CLEAR(clear_module_state->__pyx_tuple__102);
  Py_CLEAR(clear_module_state->__pyx_tuple__108);
  Py_CLEAR(clear_module_state->__pyx_tuple__110);
  Py_CLEAR(clear_module_state->__pyx_tuple__111);
  Py_CLEAR(clear_module_state->__pyx_tuple__113);
  Py_CLEAR(clear_module_state->__pyx_tuple__115);
  Py_CLEAR(clear_module_state->__pyx_tuple__116);
  Py_CLEAR(clear_module_state->__pyx_tuple__118);
  Py_CLEAR(clear_module_state->__pyx_tuple__120);
  Py_CLEAR(clear_module_state->__pyx_tuple__121);
  Py_CLEAR(clear_module_state->__pyx_tuple__123);
  Py_CLEAR(clear_module_state->__pyx_tuple__125);
  Py_CLEAR(clear_module_state->__pyx_tuple__127);
  Py_CLEAR(clear_module_state->__pyx_tuple__128);
  Py_CLEAR(clear_module_state->__pyx_tuple__130);
  Py_CLEAR(clear_module_state->__pyx_tuple__132);
  Py_CLEAR(clear_module_state->__pyx_tuple__134);
  Py_CLEAR(clear_module_state->__pyx_tuple__135);
  Py_CLEAR(clear_module_state->__pyx_tuple__137);
  Py_CLEAR(clear_module_state->__pyx_tuple__138);
  Py_CLEAR(clear_module_state->__pyx_tuple__140);
  Py_CLEAR(clear_module_state->__pyx_tuple__142);
  Py_CLEAR(clear_module_state->__pyx_tuple__145);
  Py_CLEAR(clear_module_state->__pyx_tuple__149);
  Py_CLEAR(clear_module_state->__pyx_tuple__151);
  Py_CLEAR(clear_module_state->__pyx_tuple__153);
  Py_CLEAR(clear_module_state->__pyx_codeobj__29);
  Py_CLEAR(clear_module_state->__pyx_codeobj__32);
  Py_CLEAR(clear_module_state->__pyx_codeobj__35);
  Py_CLEAR(clear_module_state->__pyx_codeobj__37);
  Py_CLEAR(clear_module_state->__pyx_codeobj__40);
  Py_CLEAR(clear_module_state->__pyx_codeobj__42);
  Py_CLEAR(clear_module_state->__pyx_codeobj__44);
  Py_CLEAR(clear_module_state->__pyx_codeobj__45);
  Py_CLEAR(clear_module_state->__pyx_codeobj__46);
  Py_CLEAR(clear_module_state->__pyx_codeobj__47);
  Py_CLEAR(clear_module_state->__pyx_codeobj__48);
  Py_CLEAR(clear_module_state->__pyx_codeobj__50);
  Py_CLEAR(clear_module_state->__pyx_codeobj__52);
  Py_CLEAR(clear_module_state->__pyx_codeobj__53);
  Py_CLEAR(clear_module_state->__pyx_codeobj__55);
  Py_CLEAR(clear_module_state->__pyx_codeobj__58);
  Py_CLEAR(clear_module_state->__pyx_codeobj__59);
  Py_CLEAR(clear_module_state->__pyx_codeobj__60);
  Py_CLEAR(clear_module_state->__pyx_codeobj__61);
  Py_CLEAR(clear_module_state->__pyx_codeobj__62);
  Py_CLEAR(clear_module_state->__pyx_codeobj__63);
  Py_CLEAR(clear_module_state->__pyx_codeobj__65);
  Py_CLEAR(clear_module_state->__pyx_codeobj__66);
  Py_CLEAR(clear_module_state->__pyx_codeobj__67);
  Py_CLEAR(clear_module_state->__pyx_codeobj__70);
  Py_CLEAR(clear_module_state->__pyx_codeobj__71);
  Py_CLEAR(clear_module_state->__pyx_codeobj__72);
  Py_CLEAR(clear_module_state->__pyx_codeobj__73);
  Py_CLEAR(clear_module_state->__pyx_codeobj__74);
  Py_CLEAR(clear_module_state->__pyx_codeobj__76);
  Py_CLEAR(clear_module_state->__pyx_codeobj__78);
  Py_CLEAR(clear_module_state->__pyx_codeobj__79);
  Py_CLEAR(clear_module_state->__pyx_codeobj__81);
  Py_CLEAR(clear_module_state->__pyx_codeobj__84);
  Py_CLEAR(clear_module_state->__pyx_codeobj__85);
  Py_CLEAR(clear_module_state->__pyx_codeobj__86);
  Py_CLEAR(clear_module_state->__pyx_codeobj__87);
  Py_CLEAR(clear_module_state->__pyx_codeobj__88);
  Py_CLEAR(clear_module_state->__pyx_codeobj__89);
  Py_CLEAR(clear_module_state->__pyx_codeobj__90);
  Py_CLEAR(clear_module_state->__pyx_codeobj__91);
  Py_CLEAR(clear_module_state->__pyx_codeobj__92);
  Py_CLEAR(clear_module_state->__pyx_codeobj__94);
  Py_CLEAR(clear_module_state->__pyx_codeobj__95);
  Py_CLEAR(clear_module_state->__pyx_codeobj__97);
  Py_CLEAR(clear_module_state->__pyx_codeobj__99);
  Py_CLEAR(clear_module_state->__pyx_codeobj__100);
  Py_CLEAR(clear_module_state->__pyx_codeobj__101);
  Py_CLEAR(clear_module_state->__pyx_codeobj__103);
  Py_CLEAR(clear_module_state->__pyx_codeobj__104);
  Py_CLEAR(clear_module_state->__pyx_codeobj__105);
  Py_CLEAR(clear_module_state->__pyx_codeobj__106);
  Py_CLEAR(clear_module_state->__pyx_codeobj__107);
  Py_CLEAR(clear_module_state->__pyx_codeobj__109);
  Py_CLEAR(clear_module_state->__pyx_codeobj__112);
  Py_CLEAR(clear_module_state->__pyx_codeobj__114);
  Py_CLEAR(clear_module_state->__pyx_codeobj__117);
  Py_CLEAR(clear_module_state->__pyx_codeobj__119);
  Py_CLEAR(clear_module_state->__pyx_codeobj__122);
  Py_CLEAR(clear_module_state->__pyx_codeobj__124);
  Py_CLEAR(clear_module_state->__pyx_codeobj__126);
  Py_CLEAR(clear_module_state->__pyx_codeobj__129);
  Py_CLEAR(clear_module_state->__pyx_codeobj__131);
  Py_CLEAR(clear_module_state->__pyx_codeobj__133);
  Py_CLEAR(clear_module_state->__pyx_codeobj__136);
  Py_CLEAR(clear_module_state->__pyx_codeobj__139);
  Py_CLEAR(clear_module_state->__pyx_codeobj__141);
  Py_CLEAR(clear_module_state->__pyx_codeobj__143);
  Py_CLEAR(clear_module_state->__pyx_codeobj__144);
  Py_CLEAR(clear_module_state->__pyx_codeobj__146);
  Py_CLEAR(clear_module_state->__pyx_codeobj__147);
  Py_CLEAR(clear_module_state->__pyx_codeobj__148);
  Py_CLEAR(clear_module_state->__pyx_codeobj__150);
  Py_CLEAR(clear_module_state->__pyx_codeobj__152);
  Py_CLEAR(clear_module_state->__pyx_codeobj__154);
  return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstate *traverse_module_state = __pyx_mstate(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  Py_VISIT(traverse_module_state->__pyx_empty_tuple);
  Py_VISIT(traverse_module_state->__pyx_empty_bytes);
  Py_VISIT(traverse_module_state->__pyx_empty_unicode);
  #ifdef __Pyx_CyFunction_USED
  Py_VISIT(traverse_module_state->__pyx_CyFunctionType);
  #endif
  #ifdef __Pyx_FusedFunction_USED
  Py_VISIT(traverse_module_state->__pyx_FusedFunctionType);
  #endif
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4type_type);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4bool_bool);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_7complex_complex);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_dtype);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_flatiter);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_broadcast);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_ndarray);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_generic);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_number);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_integer);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_signedinteger);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_unsignedinteger);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_inexact);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_floating);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_complexfloating);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_flexible);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_character);
  Py_VISIT(traverse_module_state->__pyx_ptype_5numpy_ufunc);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_8datetime_date);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_8datetime_time);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_8datetime_datetime);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_8datetime_timedelta);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_8datetime_tzinfo);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cytimes_8cyparser_Result);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cytimes_8cyparser_Config);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cytimes_8cyparser_Parser);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cytimes_7cydelta_cytimedelta);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cytimes_10pydatetime_pydt);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cytimes_10pddatetime_pddt);
  Py_VISIT(traverse_module_state->__pyx_type_7cytimes_10pddatetime_pddt);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace);
  Py_VISIT(traverse_module_state->__pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Addition_failed);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Can_t_convert_token_s_to_float);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Can_t_convert_token_s_to_integer);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Cannot_calculate_delta_for_obje);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Cannot_parse_dtsobj_into_Dateti);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Cannot_switch_timezone_naive_pd);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Comparison_failed);
  Py_VISIT(traverse_module_state->__pyx_n_s_Config);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Config_None);
  Py_VISIT(traverse_module_state->__pyx_n_u_D);
  Py_VISIT(traverse_module_state->__pyx_n_s_DataFrame);
  Py_VISIT(traverse_module_state->__pyx_n_s_DatetimeOutOfBoundsError);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Empty_microsecond_token_s);
  Py_VISIT(traverse_module_state->__pyx_n_s_FN_NP_ABS);
  Py_VISIT(traverse_module_state->__pyx_n_s_FN_NP_FULL);
  Py_VISIT(traverse_module_state->__pyx_n_s_FN_NP_MIN);
  Py_VISIT(traverse_module_state->__pyx_n_s_FN_NP_WHERE);
  Py_VISIT(traverse_module_state->__pyx_n_s_FN_PD_DATERANGE);
  Py_VISIT(traverse_module_state->__pyx_n_s_FN_PD_TODATETIME);
  Py_VISIT(traverse_module_state->__pyx_n_s_FN_PD_TOTIMEDELTA);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Failed_to_allocate_memory_for_th);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Failed_to_parse_dtsobj);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Failed_to_parse_month_string);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Failed_to_parse_weekday_string);
  Py_VISIT(traverse_module_state->__pyx_kp_u_H_M_S_f);
  Py_VISIT(traverse_module_state->__pyx_n_s_ImportError);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0);
  Py_VISIT(traverse_module_state->__pyx_n_s_Index);
  Py_VISIT(traverse_module_state->__pyx_n_s_InvalidDatetimeObjectError);
  Py_VISIT(traverse_module_state->__pyx_n_s_InvalidDeltaInclusiveError);
  Py_VISIT(traverse_module_state->__pyx_n_s_InvalidDeltaUnitError);
  Py_VISIT(traverse_module_state->__pyx_n_s_InvalidFrequencyError);
  Py_VISIT(traverse_module_state->__pyx_n_s_InvalidMonthError);
  Py_VISIT(traverse_module_state->__pyx_n_s_InvalidTimeUnitError);
  Py_VISIT(traverse_module_state->__pyx_n_s_InvalidTimezoneError);
  Py_VISIT(traverse_module_state->__pyx_n_s_InvalidWeekdayError);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_character_to_slice_to_fl);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_character_to_slice_to_in);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_delta_unit_input);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_freq_input);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_inclusive_input);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_microsecond_token_s);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_month_data_type);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_month_value);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_tz_timezone);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_weekday_data_type);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Invalid_weekday_value);
  Py_VISIT(traverse_module_state->__pyx_n_s_Iterator);
  Py_VISIT(traverse_module_state->__pyx_n_s_Literal);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_D_h_m_s_ms_us_ns);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_Y_M_W_D_Bh_m_s_ms_us_ns);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_Y_M_W_D_h_m_s_ms_us_ns);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_left_right_both_neither);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_one_both_neither);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_s_ms_us_ns);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_s_ms_us_ns_None);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Literal_shift_forward_shift_back);
  Py_VISIT(traverse_module_state->__pyx_n_u_M);
  Py_VISIT(traverse_module_state->__pyx_kp_u_M8_us);
  Py_VISIT(traverse_module_state->__pyx_n_s_MemoryError);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Must_be_one_of_the_following_st);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Must_be_one_of_the_following_st_2);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Must_be_one_of_the_following_st_3);
  Py_VISIT(traverse_module_state->__pyx_n_u_NaT);
  Py_VISIT(traverse_module_state->__pyx_kp_u_None);
  Py_VISIT(traverse_module_state->__pyx_n_s_OutOfBoundsDatetime);
  Py_VISIT(traverse_module_state->__pyx_n_s_OverflowError);
  Py_VISIT(traverse_module_state->__pyx_n_s_PddtError);
  Py_VISIT(traverse_module_state->__pyx_n_s_PddtValueError);
  Py_VISIT(traverse_module_state->__pyx_n_s_PickleError);
  Py_VISIT(traverse_module_state->__pyx_n_s_RuntimeError);
  Py_VISIT(traverse_module_state->__pyx_n_s_Series);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Series_bool);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Series_int);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Series_str);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Substraction_failed);
  Py_VISIT(traverse_module_state->__pyx_kp_u_The_format_string_for_datetime_i);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Time_zones_are_not_available_fro);
  Py_VISIT(traverse_module_state->__pyx_n_s_TimedeltaIndex);
  Py_VISIT(traverse_module_state->__pyx_n_s_Timestamp);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Token_s_does_not_represent_a_fin);
  Py_VISIT(traverse_module_state->__pyx_n_s_UNIT_FREQUENCY);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Unable_to_adjust_time_unit_from);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Unsupported_dtobj_type);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Unsupported_dtsobj_type);
  Py_VISIT(traverse_module_state->__pyx_n_s_ValueError);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Value_out_of_bounds);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Value_out_of_bounds_for_datetime);
  Py_VISIT(traverse_module_state->__pyx_n_u_W);
  Py_VISIT(traverse_module_state->__pyx_n_u_Y);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Y_m_d);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Y_m_dT_H_M_S_f);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Y_m_dT_H_M_S_f_z);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Y_m_d_H_M_S_f);
  Py_VISIT(traverse_module_state->__pyx_kp_u_Y_m_d_H_M_S_f_z);
  Py_VISIT(traverse_module_state->__pyx_n_s__155);
  Py_VISIT(traverse_module_state->__pyx_kp_u__17);
  Py_VISIT(traverse_module_state->__pyx_kp_u__18);
  Py_VISIT(traverse_module_state->__pyx_kp_u__19);
  Py_VISIT(traverse_module_state->__pyx_kp_u__20);
  Py_VISIT(traverse_module_state->__pyx_kp_u__21);
  Py_VISIT(traverse_module_state->__pyx_kp_u__22);
  Py_VISIT(traverse_module_state->__pyx_kp_u__23);
  Py_VISIT(traverse_module_state->__pyx_kp_u__24);
  Py_VISIT(traverse_module_state->__pyx_kp_u__25);
  Py_VISIT(traverse_module_state->__pyx_n_s__27);
  Py_VISIT(traverse_module_state->__pyx_kp_u__7);
  Py_VISIT(traverse_module_state->__pyx_kp_u__8);
  Py_VISIT(traverse_module_state->__pyx_n_s_abs);
  Py_VISIT(traverse_module_state->__pyx_n_s_add_delta);
  Py_VISIT(traverse_module_state->__pyx_n_s_all);
  Py_VISIT(traverse_module_state->__pyx_n_s_ambiguous);
  Py_VISIT(traverse_module_state->__pyx_kp_u_and);
  Py_VISIT(traverse_module_state->__pyx_n_s_apply);
  Py_VISIT(traverse_module_state->__pyx_n_s_args);
  Py_VISIT(traverse_module_state->__pyx_n_s_arr);
  Py_VISIT(traverse_module_state->__pyx_n_s_array);
  Py_VISIT(traverse_module_state->__pyx_n_s_as_unit);
  Py_VISIT(traverse_module_state->__pyx_n_s_astimezone);
  Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_coroutines);
  Py_VISIT(traverse_module_state->__pyx_n_s_base_tz);
  Py_VISIT(traverse_module_state->__pyx_n_s_bool);
  Py_VISIT(traverse_module_state->__pyx_kp_s_bool_None);
  Py_VISIT(traverse_module_state->__pyx_kp_s_bool_Series_bool_Literal_raise_i);
  Py_VISIT(traverse_module_state->__pyx_n_u_both);
  Py_VISIT(traverse_module_state->__pyx_n_s_cache);
  Py_VISIT(traverse_module_state->__pyx_n_s_cal_delta);
  Py_VISIT(traverse_module_state->__pyx_n_s_ceil);
  Py_VISIT(traverse_module_state->__pyx_n_s_cfg);
  Py_VISIT(traverse_module_state->__pyx_n_s_class);
  Py_VISIT(traverse_module_state->__pyx_n_s_class_getitem);
  Py_VISIT(traverse_module_state->__pyx_n_s_cline_in_traceback);
  Py_VISIT(traverse_module_state->__pyx_n_s_cls);
  Py_VISIT(traverse_module_state->__pyx_n_s_contains);
  Py_VISIT(traverse_module_state->__pyx_n_s_copy);
  Py_VISIT(traverse_module_state->__pyx_n_s_copy_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_cydatetime);
  Py_VISIT(traverse_module_state->__pyx_n_s_cydt);
  Py_VISIT(traverse_module_state->__pyx_kp_s_cython_int);
  Py_VISIT(traverse_module_state->__pyx_kp_s_cython_int_str_None);
  Py_VISIT(traverse_module_state->__pyx_n_s_cytimes);
  Py_VISIT(traverse_module_state->__pyx_n_s_cytimes_cyparser);
  Py_VISIT(traverse_module_state->__pyx_n_s_cytimes_pddatetime);
  Py_VISIT(traverse_module_state->__pyx_n_s_cytimes_pydatetime);
  Py_VISIT(traverse_module_state->__pyx_n_u_d);
  Py_VISIT(traverse_module_state->__pyx_n_s_date);
  Py_VISIT(traverse_module_state->__pyx_n_s_date_range);
  Py_VISIT(traverse_module_state->__pyx_n_s_datetime);
  Py_VISIT(traverse_module_state->__pyx_n_s_day);
  Py_VISIT(traverse_module_state->__pyx_n_s_day1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_day_of_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_dayfirst);
  Py_VISIT(traverse_module_state->__pyx_n_s_days);
  Py_VISIT(traverse_module_state->__pyx_n_s_days_in_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_deepcopy);
  Py_VISIT(traverse_module_state->__pyx_n_s_default);
  Py_VISIT(traverse_module_state->__pyx_n_s_dict);
  Py_VISIT(traverse_module_state->__pyx_n_s_dict_2);
  Py_VISIT(traverse_module_state->__pyx_kp_u_disable);
  Py_VISIT(traverse_module_state->__pyx_n_s_dt);
  Py_VISIT(traverse_module_state->__pyx_n_s_dtobj);
  Py_VISIT(traverse_module_state->__pyx_n_s_dtsobj);
  Py_VISIT(traverse_module_state->__pyx_n_s_dtype);
  Py_VISIT(traverse_module_state->__pyx_kp_u_enable);
  Py_VISIT(traverse_module_state->__pyx_n_s_end);
  Py_VISIT(traverse_module_state->__pyx_n_s_equals);
  Py_VISIT(traverse_module_state->__pyx_n_s_err);
  Py_VISIT(traverse_module_state->__pyx_n_s_errors);
  Py_VISIT(traverse_module_state->__pyx_n_s_exact);
  Py_VISIT(traverse_module_state->__pyx_n_s_floor);
  Py_VISIT(traverse_module_state->__pyx_n_s_format);
  Py_VISIT(traverse_module_state->__pyx_n_s_freq);
  Py_VISIT(traverse_module_state->__pyx_n_s_freq_ceil);
  Py_VISIT(traverse_module_state->__pyx_n_s_freq_floor);
  Py_VISIT(traverse_module_state->__pyx_n_s_freq_round);
  Py_VISIT(traverse_module_state->__pyx_n_s_from_datetime);
  Py_VISIT(traverse_module_state->__pyx_n_s_from_dtobj);
  Py_VISIT(traverse_module_state->__pyx_n_s_from_range);
  Py_VISIT(traverse_module_state->__pyx_n_s_full);
  Py_VISIT(traverse_module_state->__pyx_kp_u_gc);
  Py_VISIT(traverse_module_state->__pyx_n_s_getitem);
  Py_VISIT(traverse_module_state->__pyx_n_s_getstate);
  Py_VISIT(traverse_module_state->__pyx_n_u_h);
  Py_VISIT(traverse_module_state->__pyx_n_s_hour);
  Py_VISIT(traverse_module_state->__pyx_n_s_hours);
  Py_VISIT(traverse_module_state->__pyx_n_s_import);
  Py_VISIT(traverse_module_state->__pyx_n_s_inclusive);
  Py_VISIT(traverse_module_state->__pyx_n_s_index);
  Py_VISIT(traverse_module_state->__pyx_n_u_infer);
  Py_VISIT(traverse_module_state->__pyx_n_s_initializing);
  Py_VISIT(traverse_module_state->__pyx_n_s_int);
  Py_VISIT(traverse_module_state->__pyx_kp_s_int_str);
  Py_VISIT(traverse_module_state->__pyx_kp_s_int_str_None);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_coroutine);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_day);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_leap_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_leapyear);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_month_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_month_end);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_month_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_month_start);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_quarter_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_quarter_end);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_quarter_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_quarter_start);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_time_end);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_time_start);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_year_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_year_end);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_year_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_is_year_start);
  Py_VISIT(traverse_module_state->__pyx_kp_u_isenabled);
  Py_VISIT(traverse_module_state->__pyx_n_s_isocalendar);
  Py_VISIT(traverse_module_state->__pyx_n_s_iter);
  Py_VISIT(traverse_module_state->__pyx_n_s_kwargs);
  Py_VISIT(traverse_module_state->__pyx_n_s_leap_bt_years);
  Py_VISIT(traverse_module_state->__pyx_n_s_lower);
  Py_VISIT(traverse_module_state->__pyx_n_u_m);
  Py_VISIT(traverse_module_state->__pyx_n_s_main);
  Py_VISIT(traverse_module_state->__pyx_n_s_microsecond);
  Py_VISIT(traverse_module_state->__pyx_n_s_microseconds);
  Py_VISIT(traverse_module_state->__pyx_n_s_millisecond);
  Py_VISIT(traverse_module_state->__pyx_n_s_milliseconds);
  Py_VISIT(traverse_module_state->__pyx_n_u_min);
  Py_VISIT(traverse_module_state->__pyx_n_s_minimum);
  Py_VISIT(traverse_module_state->__pyx_n_s_minute);
  Py_VISIT(traverse_module_state->__pyx_n_s_minutes);
  Py_VISIT(traverse_module_state->__pyx_n_s_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_months);
  Py_VISIT(traverse_module_state->__pyx_n_u_ms);
  Py_VISIT(traverse_module_state->__pyx_kp_u_must_between_0_Monday_6_Sunday);
  Py_VISIT(traverse_module_state->__pyx_kp_u_must_between_1_Jan_12_Dec);
  Py_VISIT(traverse_module_state->__pyx_n_s_naive);
  Py_VISIT(traverse_module_state->__pyx_n_s_name);
  Py_VISIT(traverse_module_state->__pyx_n_s_name_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_nanosecond);
  Py_VISIT(traverse_module_state->__pyx_n_u_neither);
  Py_VISIT(traverse_module_state->__pyx_n_s_new);
  Py_VISIT(traverse_module_state->__pyx_n_s_nonexistent);
  Py_VISIT(traverse_module_state->__pyx_n_s_normalize);
  Py_VISIT(traverse_module_state->__pyx_n_s_now);
  Py_VISIT(traverse_module_state->__pyx_n_s_np);
  Py_VISIT(traverse_module_state->__pyx_kp_s_np_ndarray);
  Py_VISIT(traverse_module_state->__pyx_n_u_ns);
  Py_VISIT(traverse_module_state->__pyx_n_s_numpy);
  Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
  Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
  Py_VISIT(traverse_module_state->__pyx_n_s_o);
  Py_VISIT(traverse_module_state->__pyx_n_s_object);
  Py_VISIT(traverse_module_state->__pyx_kp_s_object_None);
  Py_VISIT(traverse_module_state->__pyx_n_s_offset);
  Py_VISIT(traverse_module_state->__pyx_n_u_one);
  Py_VISIT(traverse_module_state->__pyx_n_s_ordinal);
  Py_VISIT(traverse_module_state->__pyx_n_s_other);
  Py_VISIT(traverse_module_state->__pyx_n_s_pandas);
  Py_VISIT(traverse_module_state->__pyx_n_s_pandas_errors);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt);
  Py_VISIT(traverse_module_state->__pyx_n_u_pddt);
  Py_VISIT(traverse_module_state->__pyx_kp_u_pddt_Invalid_timezone);
  Py_VISIT(traverse_module_state->__pyx_kp_u_pddt_Unsupported_dtobj_type);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt___array);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt___copy);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt___deepcopy);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt___reduce_cython);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt___setstate_cython);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_add_delta);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_as_unit);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_astimezone);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_cal_delta);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_copy);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_equals);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_freq_ceil);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_freq_floor);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_freq_round);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_from_datetime);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_from_dtobj);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_from_range);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_day);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_leapyear);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_month_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_month_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_quarter_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_quarter_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_time_end);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_time_start);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_year_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_is_year_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_leap_bt_years);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_now);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_replace);
  Py_VISIT(traverse_module_state->__pyx_kp_u_pddt_s);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_strftime);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_sub_delta);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_curr_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_curr_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_curr_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_curr_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_day);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_friday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_monday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_month_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_month_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_next_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_next_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_next_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_next_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_prev_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_prev_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_prev_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_prev_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_quarter_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_quarter_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_saturday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_sunday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_thursday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_time);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_time_end);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_time_start);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_tomorrow);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_tuesday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_wednesday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_year_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_year_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_to_yesterday);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_tz_convert);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_tz_localize);
  Py_VISIT(traverse_module_state->__pyx_n_s_pddt_tz_switch);
  Py_VISIT(traverse_module_state->__pyx_n_s_periods);
  Py_VISIT(traverse_module_state->__pyx_n_s_pickle);
  Py_VISIT(traverse_module_state->__pyx_n_s_pydt);
  Py_VISIT(traverse_module_state->__pyx_kp_u_pydt_Invalid_timezone);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_PickleError);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_capi);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_checksum);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_result);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_state);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_type);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_pddt);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_vtable);
  Py_VISIT(traverse_module_state->__pyx_n_s_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_u_raise);
  Py_VISIT(traverse_module_state->__pyx_n_s_range);
  Py_VISIT(traverse_module_state->__pyx_n_s_reduce);
  Py_VISIT(traverse_module_state->__pyx_n_s_reduce_cython);
  Py_VISIT(traverse_module_state->__pyx_n_s_reduce_ex);
  Py_VISIT(traverse_module_state->__pyx_n_s_replace);
  Py_VISIT(traverse_module_state->__pyx_n_s_replace_locals_lambda);
  Py_VISIT(traverse_module_state->__pyx_n_s_repr);
  Py_VISIT(traverse_module_state->__pyx_n_s_return);
  Py_VISIT(traverse_module_state->__pyx_n_s_round);
  Py_VISIT(traverse_module_state->__pyx_n_u_s);
  Py_VISIT(traverse_module_state->__pyx_kp_u_s_Argument_ambiguous_NaT_is_not);
  Py_VISIT(traverse_module_state->__pyx_kp_u_s_Argument_nonexistent_NaT_is_n);
  Py_VISIT(traverse_module_state->__pyx_n_s_second);
  Py_VISIT(traverse_module_state->__pyx_n_s_seconds);
  Py_VISIT(traverse_module_state->__pyx_n_s_self);
  Py_VISIT(traverse_module_state->__pyx_n_s_setstate);
  Py_VISIT(traverse_module_state->__pyx_n_s_setstate_cython);
  Py_VISIT(traverse_module_state->__pyx_n_u_shift_backward);
  Py_VISIT(traverse_module_state->__pyx_n_u_shift_forward);
  Py_VISIT(traverse_module_state->__pyx_n_s_size);
  Py_VISIT(traverse_module_state->__pyx_n_s_spec);
  Py_VISIT(traverse_module_state->__pyx_kp_s_src_cytimes_pddatetime_py);
  Py_VISIT(traverse_module_state->__pyx_n_s_start);
  Py_VISIT(traverse_module_state->__pyx_n_s_startingMonth);
  Py_VISIT(traverse_module_state->__pyx_n_s_state);
  Py_VISIT(traverse_module_state->__pyx_n_s_str);
  Py_VISIT(traverse_module_state->__pyx_kp_s_str_None);
  Py_VISIT(traverse_module_state->__pyx_kp_s_str_datetime_tzinfo_None);
  Py_VISIT(traverse_module_state->__pyx_n_s_strftime);
  Py_VISIT(traverse_module_state->__pyx_kp_s_stringsource);
  Py_VISIT(traverse_module_state->__pyx_n_s_sub_delta);
  Py_VISIT(traverse_module_state->__pyx_n_s_targ_tz);
  Py_VISIT(traverse_module_state->__pyx_n_s_test);
  Py_VISIT(traverse_module_state->__pyx_n_s_time);
  Py_VISIT(traverse_module_state->__pyx_n_s_timetz);
  Py_VISIT(traverse_module_state->__pyx_kp_u_to);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_curr_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_curr_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_curr_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_curr_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_datetime);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_day);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_friday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_monday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_month_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_month_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_next_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_next_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_next_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_next_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_prev_month);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_prev_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_prev_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_prev_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_pydatetime);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_quarter);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_quarter_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_quarter_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_saturday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_sunday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_thursday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_time);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_time_end);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_time_start);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_timedelta);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_tomorrow);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_tuesday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_wednesday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_year_1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_year_lst);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_yesterday);
  Py_VISIT(traverse_module_state->__pyx_n_s_typeref);
  Py_VISIT(traverse_module_state->__pyx_n_s_typing);
  Py_VISIT(traverse_module_state->__pyx_n_s_tz);
  Py_VISIT(traverse_module_state->__pyx_n_s_tz_convert);
  Py_VISIT(traverse_module_state->__pyx_n_s_tz_localize);
  Py_VISIT(traverse_module_state->__pyx_n_s_tz_switch);
  Py_VISIT(traverse_module_state->__pyx_n_s_unit);
  Py_VISIT(traverse_module_state->__pyx_n_s_update);
  Py_VISIT(traverse_module_state->__pyx_n_u_us);
  Py_VISIT(traverse_module_state->__pyx_n_s_use_setstate);
  Py_VISIT(traverse_module_state->__pyx_n_s_utc);
  Py_VISIT(traverse_module_state->__pyx_n_s_values);
  Py_VISIT(traverse_module_state->__pyx_kp_u_vs);
  Py_VISIT(traverse_module_state->__pyx_n_u_week);
  Py_VISIT(traverse_module_state->__pyx_n_s_weekday);
  Py_VISIT(traverse_module_state->__pyx_n_s_weeks);
  Py_VISIT(traverse_module_state->__pyx_n_s_where);
  Py_VISIT(traverse_module_state->__pyx_n_s_y1_arr);
  Py_VISIT(traverse_module_state->__pyx_n_s_y2_arr);
  Py_VISIT(traverse_module_state->__pyx_n_s_year);
  Py_VISIT(traverse_module_state->__pyx_n_u_year);
  Py_VISIT(traverse_module_state->__pyx_n_s_year1st);
  Py_VISIT(traverse_module_state->__pyx_n_s_yearfirst);
  Py_VISIT(traverse_module_state->__pyx_n_s_years);
  Py_VISIT(traverse_module_state->__pyx_int_0);
  Py_VISIT(traverse_module_state->__pyx_int_1);
  Py_VISIT(traverse_module_state->__pyx_int_2);
  Py_VISIT(traverse_module_state->__pyx_int_3);
  Py_VISIT(traverse_module_state->__pyx_int_4);
  Py_VISIT(traverse_module_state->__pyx_int_7);
  Py_VISIT(traverse_module_state->__pyx_int_12);
  Py_VISIT(traverse_module_state->__pyx_int_100);
  Py_VISIT(traverse_module_state->__pyx_int_365);
  Py_VISIT(traverse_module_state->__pyx_int_400);
  Py_VISIT(traverse_module_state->__pyx_int_1000000);
  Py_VISIT(traverse_module_state->__pyx_int_60000000);
  Py_VISIT(traverse_module_state->__pyx_int_218360617);
  Py_VISIT(traverse_module_state->__pyx_int_221774984);
  Py_VISIT(traverse_module_state->__pyx_int_238332308);
  Py_VISIT(traverse_module_state->__pyx_int_neg_1);
  Py_VISIT(traverse_module_state->__pyx_k__9);
  Py_VISIT(traverse_module_state->__pyx_k__10);
  Py_VISIT(traverse_module_state->__pyx_k__11);
  Py_VISIT(traverse_module_state->__pyx_k__12);
  Py_VISIT(traverse_module_state->__pyx_k__13);
  Py_VISIT(traverse_module_state->__pyx_tuple_);
  Py_VISIT(traverse_module_state->__pyx_tuple__2);
  Py_VISIT(traverse_module_state->__pyx_tuple__3);
  Py_VISIT(traverse_module_state->__pyx_tuple__4);
  Py_VISIT(traverse_module_state->__pyx_tuple__5);
  Py_VISIT(traverse_module_state->__pyx_tuple__6);
  Py_VISIT(traverse_module_state->__pyx_tuple__14);
  Py_VISIT(traverse_module_state->__pyx_tuple__15);
  Py_VISIT(traverse_module_state->__pyx_tuple__16);
  Py_VISIT(traverse_module_state->__pyx_tuple__26);
  Py_VISIT(traverse_module_state->__pyx_tuple__28);
  Py_VISIT(traverse_module_state->__pyx_tuple__30);
  Py_VISIT(traverse_module_state->__pyx_tuple__31);
  Py_VISIT(traverse_module_state->__pyx_tuple__33);
  Py_VISIT(traverse_module_state->__pyx_tuple__34);
  Py_VISIT(traverse_module_state->__pyx_tuple__36);
  Py_VISIT(traverse_module_state->__pyx_tuple__38);
  Py_VISIT(traverse_module_state->__pyx_tuple__39);
  Py_VISIT(traverse_module_state->__pyx_tuple__41);
  Py_VISIT(traverse_module_state->__pyx_tuple__43);
  Py_VISIT(traverse_module_state->__pyx_tuple__49);
  Py_VISIT(traverse_module_state->__pyx_tuple__51);
  Py_VISIT(traverse_module_state->__pyx_tuple__54);
  Py_VISIT(traverse_module_state->__pyx_tuple__56);
  Py_VISIT(traverse_module_state->__pyx_tuple__57);
  Py_VISIT(traverse_module_state->__pyx_tuple__64);
  Py_VISIT(traverse_module_state->__pyx_tuple__68);
  Py_VISIT(traverse_module_state->__pyx_tuple__69);
  Py_VISIT(traverse_module_state->__pyx_tuple__75);
  Py_VISIT(traverse_module_state->__pyx_tuple__77);
  Py_VISIT(traverse_module_state->__pyx_tuple__80);
  Py_VISIT(traverse_module_state->__pyx_tuple__82);
  Py_VISIT(traverse_module_state->__pyx_tuple__83);
  Py_VISIT(traverse_module_state->__pyx_tuple__93);
  Py_VISIT(traverse_module_state->__pyx_tuple__96);
  Py_VISIT(traverse_module_state->__pyx_tuple__98);
  Py_VISIT(traverse_module_state->__pyx_tuple__102);
  Py_VISIT(traverse_module_state->__pyx_tuple__108);
  Py_VISIT(traverse_module_state->__pyx_tuple__110);
  Py_VISIT(traverse_module_state->__pyx_tuple__111);
  Py_VISIT(traverse_module_state->__pyx_tuple__113);
  Py_VISIT(traverse_module_state->__pyx_tuple__115);
  Py_VISIT(traverse_module_state->__pyx_tuple__116);
  Py_VISIT(traverse_module_state->__pyx_tuple__118);
  Py_VISIT(traverse_module_state->__pyx_tuple__120);
  Py_VISIT(traverse_module_state->__pyx_tuple__121);
  Py_VISIT(traverse_module_state->__pyx_tuple__123);
  Py_VISIT(traverse_module_state->__pyx_tuple__125);
  Py_VISIT(traverse_module_state->__pyx_tuple__127);
  Py_VISIT(traverse_module_state->__pyx_tuple__128);
  Py_VISIT(traverse_module_state->__pyx_tuple__130);
  Py_VISIT(traverse_module_state->__pyx_tuple__132);
  Py_VISIT(traverse_module_state->__pyx_tuple__134);
  Py_VISIT(traverse_module_state->__pyx_tuple__135);
  Py_VISIT(traverse_module_state->__pyx_tuple__137);
  Py_VISIT(traverse_module_state->__pyx_tuple__138);
  Py_VISIT(traverse_module_state->__pyx_tuple__140);
  Py_VISIT(traverse_module_state->__pyx_tuple__142);
  Py_VISIT(traverse_module_state->__pyx_tuple__145);
  Py_VISIT(traverse_module_state->__pyx_tuple__149);
  Py_VISIT(traverse_module_state->__pyx_tuple__151);
  Py_VISIT(traverse_module_state->__pyx_tuple__153);
  Py_VISIT(traverse_module_state->__pyx_codeobj__29);
  Py_VISIT(traverse_module_state->__pyx_codeobj__32);
  Py_VISIT(traverse_module_state->__pyx_codeobj__35);
  Py_VISIT(traverse_module_state->__pyx_codeobj__37);
  Py_VISIT(traverse_module_state->__pyx_codeobj__40);
  Py_VISIT(traverse_module_state->__pyx_codeobj__42);
  Py_VISIT(traverse_module_state->__pyx_codeobj__44);
  Py_VISIT(traverse_module_state->__pyx_codeobj__45);
  Py_VISIT(traverse_module_state->__pyx_codeobj__46);
  Py_VISIT(traverse_module_state->__pyx_codeobj__47);
  Py_VISIT(traverse_module_state->__pyx_codeobj__48);
  Py_VISIT(traverse_module_state->__pyx_codeobj__50);
  Py_VISIT(traverse_module_state->__pyx_codeobj__52);
  Py_VISIT(traverse_module_state->__pyx_codeobj__53);
  Py_VISIT(traverse_module_state->__pyx_codeobj__55);
  Py_VISIT(traverse_module_state->__pyx_codeobj__58);
  Py_VISIT(traverse_module_state->__pyx_codeobj__59);
  Py_VISIT(traverse_module_state->__pyx_codeobj__60);
  Py_VISIT(traverse_module_state->__pyx_codeobj__61);
  Py_VISIT(traverse_module_state->__pyx_codeobj__62);
  Py_VISIT(traverse_module_state->__pyx_codeobj__63);
  Py_VISIT(traverse_module_state->__pyx_codeobj__65);
  Py_VISIT(traverse_module_state->__pyx_codeobj__66);
  Py_VISIT(traverse_module_state->__pyx_codeobj__67);
  Py_VISIT(traverse_module_state->__pyx_codeobj__70);
  Py_VISIT(traverse_module_state->__pyx_codeobj__71);
  Py_VISIT(traverse_module_state->__pyx_codeobj__72);
  Py_VISIT(traverse_module_state->__pyx_codeobj__73);
  Py_VISIT(traverse_module_state->__pyx_codeobj__74);
  Py_VISIT(traverse_module_state->__pyx_codeobj__76);
  Py_VISIT(traverse_module_state->__pyx_codeobj__78);
  Py_VISIT(traverse_module_state->__pyx_codeobj__79);
  Py_VISIT(traverse_module_state->__pyx_codeobj__81);
  Py_VISIT(traverse_module_state->__pyx_codeobj__84);
  Py_VISIT(traverse_module_state->__pyx_codeobj__85);
  Py_VISIT(traverse_module_state->__pyx_codeobj__86);
  Py_VISIT(traverse_module_state->__pyx_codeobj__87);
  Py_VISIT(traverse_module_state->__pyx_codeobj__88);
  Py_VISIT(traverse_module_state->__pyx_codeobj__89);
  Py_VISIT(traverse_module_state->__pyx_codeobj__90);
  Py_VISIT(traverse_module_state->__pyx_codeobj__91);
  Py_VISIT(traverse_module_state->__pyx_codeobj__92);
  Py_VISIT(traverse_module_state->__pyx_codeobj__94);
  Py_VISIT(traverse_module_state->__pyx_codeobj__95);
  Py_VISIT(traverse_module_state->__pyx_codeobj__97);
  Py_VISIT(traverse_module_state->__pyx_codeobj__99);
  Py_VISIT(traverse_module_state->__pyx_codeobj__100);
  Py_VISIT(traverse_module_state->__pyx_codeobj__101);
  Py_VISIT(traverse_module_state->__pyx_codeobj__103);
  Py_VISIT(traverse_module_state->__pyx_codeobj__104);
  Py_VISIT(traverse_module_state->__pyx_codeobj__105);
  Py_VISIT(traverse_module_state->__pyx_codeobj__106);
  Py_VISIT(traverse_module_state->__pyx_codeobj__107);
  Py_VISIT(traverse_module_state->__pyx_codeobj__109);
  Py_VISIT(traverse_module_state->__pyx_codeobj__112);
  Py_VISIT(traverse_module_state->__pyx_codeobj__114);
  Py_VISIT(traverse_module_state->__pyx_codeobj__117);
  Py_VISIT(traverse_module_state->__pyx_codeobj__119);
  Py_VISIT(traverse_module_state->__pyx_codeobj__122);
  Py_VISIT(traverse_module_state->__pyx_codeobj__124);
  Py_VISIT(traverse_module_state->__pyx_codeobj__126);
  Py_VISIT(traverse_module_state->__pyx_codeobj__129);
  Py_VISIT(traverse_module_state->__pyx_codeobj__131);
  Py_VISIT(traverse_module_state->__pyx_codeobj__133);
  Py_VISIT(traverse_module_state->__pyx_codeobj__136);
  Py_VISIT(traverse_module_state->__pyx_codeobj__139);
  Py_VISIT(traverse_module_state->__pyx_codeobj__141);
  Py_VISIT(traverse_module_state->__pyx_codeobj__143);
  Py_VISIT(traverse_module_state->__pyx_codeobj__144);
  Py_VISIT(traverse_module_state->__pyx_codeobj__146);
  Py_VISIT(traverse_module_state->__pyx_codeobj__147);
  Py_VISIT(traverse_module_state->__pyx_codeobj__148);
  Py_VISIT(traverse_module_state->__pyx_codeobj__150);
  Py_VISIT(traverse_module_state->__pyx_codeobj__152);
  Py_VISIT(traverse_module_state->__pyx_codeobj__154);
  return 0;
}
#endif
/* #### Code section: module_state_defines ### */
#define __pyx_d __pyx_mstate_global->__pyx_d
#define __pyx_b __pyx_mstate_global->__pyx_b
#define __pyx_cython_runtime __pyx_mstate_global->__pyx_cython_runtime
#define __pyx_empty_tuple __pyx_mstate_global->__pyx_empty_tuple
#define __pyx_empty_bytes __pyx_mstate_global->__pyx_empty_bytes
#define __pyx_empty_unicode __pyx_mstate_global->__pyx_empty_unicode
#ifdef __Pyx_CyFunction_USED
#define __pyx_CyFunctionType __pyx_mstate_global->__pyx_CyFunctionType
#endif
#ifdef __Pyx_FusedFunction_USED
#define __pyx_FusedFunctionType __pyx_mstate_global->__pyx_FusedFunctionType
#endif
#ifdef __Pyx_Generator_USED
#define __pyx_GeneratorType __pyx_mstate_global->__pyx_GeneratorType
#endif
#ifdef __Pyx_IterableCoroutine_USED
#define __pyx_IterableCoroutineType __pyx_mstate_global->__pyx_IterableCoroutineType
#endif
#ifdef __Pyx_Coroutine_USED
#define __pyx_CoroutineAwaitType __pyx_mstate_global->__pyx_CoroutineAwaitType
#endif
#ifdef __Pyx_Coroutine_USED
#define __pyx_CoroutineType __pyx_mstate_global->__pyx_CoroutineType
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#define __pyx_ptype_7cpython_4type_type __pyx_mstate_global->__pyx_ptype_7cpython_4type_type
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#define __pyx_ptype_7cpython_4bool_bool __pyx_mstate_global->__pyx_ptype_7cpython_4bool_bool
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#define __pyx_ptype_7cpython_7complex_complex __pyx_mstate_global->__pyx_ptype_7cpython_7complex_complex
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#define __pyx_ptype_5numpy_dtype __pyx_mstate_global->__pyx_ptype_5numpy_dtype
#define __pyx_ptype_5numpy_flatiter __pyx_mstate_global->__pyx_ptype_5numpy_flatiter
#define __pyx_ptype_5numpy_broadcast __pyx_mstate_global->__pyx_ptype_5numpy_broadcast
#define __pyx_ptype_5numpy_ndarray __pyx_mstate_global->__pyx_ptype_5numpy_ndarray
#define __pyx_ptype_5numpy_generic __pyx_mstate_global->__pyx_ptype_5numpy_generic
#define __pyx_ptype_5numpy_number __pyx_mstate_global->__pyx_ptype_5numpy_number
#define __pyx_ptype_5numpy_integer __pyx_mstate_global->__pyx_ptype_5numpy_integer
#define __pyx_ptype_5numpy_signedinteger __pyx_mstate_global->__pyx_ptype_5numpy_signedinteger
#define __pyx_ptype_5numpy_unsignedinteger __pyx_mstate_global->__pyx_ptype_5numpy_unsignedinteger
#define __pyx_ptype_5numpy_inexact __pyx_mstate_global->__pyx_ptype_5numpy_inexact
#define __pyx_ptype_5numpy_floating __pyx_mstate_global->__pyx_ptype_5numpy_floating
#define __pyx_ptype_5numpy_complexfloating __pyx_mstate_global->__pyx_ptype_5numpy_complexfloating
#define __pyx_ptype_5numpy_flexible __pyx_mstate_global->__pyx_ptype_5numpy_flexible
#define __pyx_ptype_5numpy_character __pyx_mstate_global->__pyx_ptype_5numpy_character
#define __pyx_ptype_5numpy_ufunc __pyx_mstate_global->__pyx_ptype_5numpy_ufunc
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#define __pyx_ptype_7cpython_8datetime_date __pyx_mstate_global->__pyx_ptype_7cpython_8datetime_date
#define __pyx_ptype_7cpython_8datetime_time __pyx_mstate_global->__pyx_ptype_7cpython_8datetime_time
#define __pyx_ptype_7cpython_8datetime_datetime __pyx_mstate_global->__pyx_ptype_7cpython_8datetime_datetime
#define __pyx_ptype_7cpython_8datetime_timedelta __pyx_mstate_global->__pyx_ptype_7cpython_8datetime_timedelta
#define __pyx_ptype_7cpython_8datetime_tzinfo __pyx_mstate_global->__pyx_ptype_7cpython_8datetime_tzinfo
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#define __pyx_ptype_7cytimes_8cyparser_Result __pyx_mstate_global->__pyx_ptype_7cytimes_8cyparser_Result
#define __pyx_ptype_7cytimes_8cyparser_Config __pyx_mstate_global->__pyx_ptype_7cytimes_8cyparser_Config
#define __pyx_ptype_7cytimes_8cyparser_Parser __pyx_mstate_global->__pyx_ptype_7cytimes_8cyparser_Parser
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#if CYTHON_USE_MODULE_STATE
#endif
#define __pyx_ptype_7cytimes_7cydelta_cytimedelta __pyx_mstate_global->__pyx_ptype_7cytimes_7cydelta_cytimedelta
#if CYTHON_USE_MODULE_STATE
#endif
#define __pyx_ptype_7cytimes_10pydatetime_pydt __pyx_mstate_global->__pyx_ptype_7cytimes_10pydatetime_pydt
#if CYTHON_USE_MODULE_STATE
#define __pyx_type_7cytimes_10pddatetime_pddt __pyx_mstate_global->__pyx_type_7cytimes_10pddatetime_pddt
#define __pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace __pyx_mstate_global->__pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace
#endif
#define __pyx_ptype_7cytimes_10pddatetime_pddt __pyx_mstate_global->__pyx_ptype_7cytimes_10pddatetime_pddt
#define __pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace __pyx_mstate_global->__pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace
#define __pyx_kp_u_Addition_failed __pyx_mstate_global->__pyx_kp_u_Addition_failed
#define __pyx_kp_u_Can_t_convert_token_s_to_float __pyx_mstate_global->__pyx_kp_u_Can_t_convert_token_s_to_float
#define __pyx_kp_u_Can_t_convert_token_s_to_integer __pyx_mstate_global->__pyx_kp_u_Can_t_convert_token_s_to_integer
#define __pyx_kp_u_Cannot_calculate_delta_for_obje __pyx_mstate_global->__pyx_kp_u_Cannot_calculate_delta_for_obje
#define __pyx_kp_u_Cannot_parse_dtsobj_into_Dateti __pyx_mstate_global->__pyx_kp_u_Cannot_parse_dtsobj_into_Dateti
#define __pyx_kp_u_Cannot_switch_timezone_naive_pd __pyx_mstate_global->__pyx_kp_u_Cannot_switch_timezone_naive_pd
#define __pyx_kp_u_Comparison_failed __pyx_mstate_global->__pyx_kp_u_Comparison_failed
#define __pyx_n_s_Config __pyx_mstate_global->__pyx_n_s_Config
#define __pyx_kp_s_Config_None __pyx_mstate_global->__pyx_kp_s_Config_None
#define __pyx_n_u_D __pyx_mstate_global->__pyx_n_u_D
#define __pyx_n_s_DataFrame __pyx_mstate_global->__pyx_n_s_DataFrame
#define __pyx_n_s_DatetimeOutOfBoundsError __pyx_mstate_global->__pyx_n_s_DatetimeOutOfBoundsError
#define __pyx_kp_u_Empty_microsecond_token_s __pyx_mstate_global->__pyx_kp_u_Empty_microsecond_token_s
#define __pyx_n_s_FN_NP_ABS __pyx_mstate_global->__pyx_n_s_FN_NP_ABS
#define __pyx_n_s_FN_NP_FULL __pyx_mstate_global->__pyx_n_s_FN_NP_FULL
#define __pyx_n_s_FN_NP_MIN __pyx_mstate_global->__pyx_n_s_FN_NP_MIN
#define __pyx_n_s_FN_NP_WHERE __pyx_mstate_global->__pyx_n_s_FN_NP_WHERE
#define __pyx_n_s_FN_PD_DATERANGE __pyx_mstate_global->__pyx_n_s_FN_PD_DATERANGE
#define __pyx_n_s_FN_PD_TODATETIME __pyx_mstate_global->__pyx_n_s_FN_PD_TODATETIME
#define __pyx_n_s_FN_PD_TOTIMEDELTA __pyx_mstate_global->__pyx_n_s_FN_PD_TOTIMEDELTA
#define __pyx_kp_u_Failed_to_allocate_memory_for_th __pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_memory_for_th
#define __pyx_kp_u_Failed_to_parse_dtsobj __pyx_mstate_global->__pyx_kp_u_Failed_to_parse_dtsobj
#define __pyx_kp_u_Failed_to_parse_month_string __pyx_mstate_global->__pyx_kp_u_Failed_to_parse_month_string
#define __pyx_kp_u_Failed_to_parse_weekday_string __pyx_mstate_global->__pyx_kp_u_Failed_to_parse_weekday_string
#define __pyx_kp_u_H_M_S_f __pyx_mstate_global->__pyx_kp_u_H_M_S_f
#define __pyx_n_s_ImportError __pyx_mstate_global->__pyx_n_s_ImportError
#define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0
#define __pyx_n_s_Index __pyx_mstate_global->__pyx_n_s_Index
#define __pyx_n_s_InvalidDatetimeObjectError __pyx_mstate_global->__pyx_n_s_InvalidDatetimeObjectError
#define __pyx_n_s_InvalidDeltaInclusiveError __pyx_mstate_global->__pyx_n_s_InvalidDeltaInclusiveError
#define __pyx_n_s_InvalidDeltaUnitError __pyx_mstate_global->__pyx_n_s_InvalidDeltaUnitError
#define __pyx_n_s_InvalidFrequencyError __pyx_mstate_global->__pyx_n_s_InvalidFrequencyError
#define __pyx_n_s_InvalidMonthError __pyx_mstate_global->__pyx_n_s_InvalidMonthError
#define __pyx_n_s_InvalidTimeUnitError __pyx_mstate_global->__pyx_n_s_InvalidTimeUnitError
#define __pyx_n_s_InvalidTimezoneError __pyx_mstate_global->__pyx_n_s_InvalidTimezoneError
#define __pyx_n_s_InvalidWeekdayError __pyx_mstate_global->__pyx_n_s_InvalidWeekdayError
#define __pyx_kp_u_Invalid_character_to_slice_to_fl __pyx_mstate_global->__pyx_kp_u_Invalid_character_to_slice_to_fl
#define __pyx_kp_u_Invalid_character_to_slice_to_in __pyx_mstate_global->__pyx_kp_u_Invalid_character_to_slice_to_in
#define __pyx_kp_u_Invalid_delta_unit_input __pyx_mstate_global->__pyx_kp_u_Invalid_delta_unit_input
#define __pyx_kp_u_Invalid_freq_input __pyx_mstate_global->__pyx_kp_u_Invalid_freq_input
#define __pyx_kp_u_Invalid_inclusive_input __pyx_mstate_global->__pyx_kp_u_Invalid_inclusive_input
#define __pyx_kp_u_Invalid_microsecond_token_s __pyx_mstate_global->__pyx_kp_u_Invalid_microsecond_token_s
#define __pyx_kp_u_Invalid_month_data_type __pyx_mstate_global->__pyx_kp_u_Invalid_month_data_type
#define __pyx_kp_u_Invalid_month_value __pyx_mstate_global->__pyx_kp_u_Invalid_month_value
#define __pyx_kp_u_Invalid_tz_timezone __pyx_mstate_global->__pyx_kp_u_Invalid_tz_timezone
#define __pyx_kp_u_Invalid_weekday_data_type __pyx_mstate_global->__pyx_kp_u_Invalid_weekday_data_type
#define __pyx_kp_u_Invalid_weekday_value __pyx_mstate_global->__pyx_kp_u_Invalid_weekday_value
#define __pyx_n_s_Iterator __pyx_mstate_global->__pyx_n_s_Iterator
#define __pyx_n_s_Literal __pyx_mstate_global->__pyx_n_s_Literal
#define __pyx_kp_s_Literal_D_h_m_s_ms_us_ns __pyx_mstate_global->__pyx_kp_s_Literal_D_h_m_s_ms_us_ns
#define __pyx_kp_s_Literal_Y_M_W_D_Bh_m_s_ms_us_ns __pyx_mstate_global->__pyx_kp_s_Literal_Y_M_W_D_Bh_m_s_ms_us_ns
#define __pyx_kp_s_Literal_Y_M_W_D_h_m_s_ms_us_ns __pyx_mstate_global->__pyx_kp_s_Literal_Y_M_W_D_h_m_s_ms_us_ns
#define __pyx_kp_s_Literal_left_right_both_neither __pyx_mstate_global->__pyx_kp_s_Literal_left_right_both_neither
#define __pyx_kp_s_Literal_one_both_neither __pyx_mstate_global->__pyx_kp_s_Literal_one_both_neither
#define __pyx_kp_s_Literal_s_ms_us_ns __pyx_mstate_global->__pyx_kp_s_Literal_s_ms_us_ns
#define __pyx_kp_s_Literal_s_ms_us_ns_None __pyx_mstate_global->__pyx_kp_s_Literal_s_ms_us_ns_None
#define __pyx_kp_s_Literal_shift_forward_shift_back __pyx_mstate_global->__pyx_kp_s_Literal_shift_forward_shift_back
#define __pyx_n_u_M __pyx_mstate_global->__pyx_n_u_M
#define __pyx_kp_u_M8_us __pyx_mstate_global->__pyx_kp_u_M8_us
#define __pyx_n_s_MemoryError __pyx_mstate_global->__pyx_n_s_MemoryError
#define __pyx_kp_u_Must_be_one_of_the_following_st __pyx_mstate_global->__pyx_kp_u_Must_be_one_of_the_following_st
#define __pyx_kp_u_Must_be_one_of_the_following_st_2 __pyx_mstate_global->__pyx_kp_u_Must_be_one_of_the_following_st_2
#define __pyx_kp_u_Must_be_one_of_the_following_st_3 __pyx_mstate_global->__pyx_kp_u_Must_be_one_of_the_following_st_3
#define __pyx_n_u_NaT __pyx_mstate_global->__pyx_n_u_NaT
#define __pyx_kp_u_None __pyx_mstate_global->__pyx_kp_u_None
#define __pyx_n_s_OutOfBoundsDatetime __pyx_mstate_global->__pyx_n_s_OutOfBoundsDatetime
#define __pyx_n_s_OverflowError __pyx_mstate_global->__pyx_n_s_OverflowError
#define __pyx_n_s_PddtError __pyx_mstate_global->__pyx_n_s_PddtError
#define __pyx_n_s_PddtValueError __pyx_mstate_global->__pyx_n_s_PddtValueError
#define __pyx_n_s_PickleError __pyx_mstate_global->__pyx_n_s_PickleError
#define __pyx_n_s_RuntimeError __pyx_mstate_global->__pyx_n_s_RuntimeError
#define __pyx_n_s_Series __pyx_mstate_global->__pyx_n_s_Series
#define __pyx_kp_s_Series_bool __pyx_mstate_global->__pyx_kp_s_Series_bool
#define __pyx_kp_s_Series_int __pyx_mstate_global->__pyx_kp_s_Series_int
#define __pyx_kp_s_Series_str __pyx_mstate_global->__pyx_kp_s_Series_str
#define __pyx_kp_u_Substraction_failed __pyx_mstate_global->__pyx_kp_u_Substraction_failed
#define __pyx_kp_u_The_format_string_for_datetime_i __pyx_mstate_global->__pyx_kp_u_The_format_string_for_datetime_i
#define __pyx_kp_u_Time_zones_are_not_available_fro __pyx_mstate_global->__pyx_kp_u_Time_zones_are_not_available_fro
#define __pyx_n_s_TimedeltaIndex __pyx_mstate_global->__pyx_n_s_TimedeltaIndex
#define __pyx_n_s_Timestamp __pyx_mstate_global->__pyx_n_s_Timestamp
#define __pyx_kp_u_Token_s_does_not_represent_a_fin __pyx_mstate_global->__pyx_kp_u_Token_s_does_not_represent_a_fin
#define __pyx_n_s_UNIT_FREQUENCY __pyx_mstate_global->__pyx_n_s_UNIT_FREQUENCY
#define __pyx_kp_u_Unable_to_adjust_time_unit_from __pyx_mstate_global->__pyx_kp_u_Unable_to_adjust_time_unit_from
#define __pyx_kp_u_Unsupported_dtobj_type __pyx_mstate_global->__pyx_kp_u_Unsupported_dtobj_type
#define __pyx_kp_u_Unsupported_dtsobj_type __pyx_mstate_global->__pyx_kp_u_Unsupported_dtsobj_type
#define __pyx_n_s_ValueError __pyx_mstate_global->__pyx_n_s_ValueError
#define __pyx_kp_u_Value_out_of_bounds __pyx_mstate_global->__pyx_kp_u_Value_out_of_bounds
#define __pyx_kp_u_Value_out_of_bounds_for_datetime __pyx_mstate_global->__pyx_kp_u_Value_out_of_bounds_for_datetime
#define __pyx_n_u_W __pyx_mstate_global->__pyx_n_u_W
#define __pyx_n_u_Y __pyx_mstate_global->__pyx_n_u_Y
#define __pyx_kp_u_Y_m_d __pyx_mstate_global->__pyx_kp_u_Y_m_d
#define __pyx_kp_u_Y_m_dT_H_M_S_f __pyx_mstate_global->__pyx_kp_u_Y_m_dT_H_M_S_f
#define __pyx_kp_u_Y_m_dT_H_M_S_f_z __pyx_mstate_global->__pyx_kp_u_Y_m_dT_H_M_S_f_z
#define __pyx_kp_u_Y_m_d_H_M_S_f __pyx_mstate_global->__pyx_kp_u_Y_m_d_H_M_S_f
#define __pyx_kp_u_Y_m_d_H_M_S_f_z __pyx_mstate_global->__pyx_kp_u_Y_m_d_H_M_S_f_z
#define __pyx_n_s__155 __pyx_mstate_global->__pyx_n_s__155
#define __pyx_kp_u__17 __pyx_mstate_global->__pyx_kp_u__17
#define __pyx_kp_u__18 __pyx_mstate_global->__pyx_kp_u__18
#define __pyx_kp_u__19 __pyx_mstate_global->__pyx_kp_u__19
#define __pyx_kp_u__20 __pyx_mstate_global->__pyx_kp_u__20
#define __pyx_kp_u__21 __pyx_mstate_global->__pyx_kp_u__21
#define __pyx_kp_u__22 __pyx_mstate_global->__pyx_kp_u__22
#define __pyx_kp_u__23 __pyx_mstate_global->__pyx_kp_u__23
#define __pyx_kp_u__24 __pyx_mstate_global->__pyx_kp_u__24
#define __pyx_kp_u__25 __pyx_mstate_global->__pyx_kp_u__25
#define __pyx_n_s__27 __pyx_mstate_global->__pyx_n_s__27
#define __pyx_kp_u__7 __pyx_mstate_global->__pyx_kp_u__7
#define __pyx_kp_u__8 __pyx_mstate_global->__pyx_kp_u__8
#define __pyx_n_s_abs __pyx_mstate_global->__pyx_n_s_abs
#define __pyx_n_s_add_delta __pyx_mstate_global->__pyx_n_s_add_delta
#define __pyx_n_s_all __pyx_mstate_global->__pyx_n_s_all
#define __pyx_n_s_ambiguous __pyx_mstate_global->__pyx_n_s_ambiguous
#define __pyx_kp_u_and __pyx_mstate_global->__pyx_kp_u_and
#define __pyx_n_s_apply __pyx_mstate_global->__pyx_n_s_apply
#define __pyx_n_s_args __pyx_mstate_global->__pyx_n_s_args
#define __pyx_n_s_arr __pyx_mstate_global->__pyx_n_s_arr
#define __pyx_n_s_array __pyx_mstate_global->__pyx_n_s_array
#define __pyx_n_s_as_unit __pyx_mstate_global->__pyx_n_s_as_unit
#define __pyx_n_s_astimezone __pyx_mstate_global->__pyx_n_s_astimezone
#define __pyx_n_s_asyncio_coroutines __pyx_mstate_global->__pyx_n_s_asyncio_coroutines
#define __pyx_n_s_base_tz __pyx_mstate_global->__pyx_n_s_base_tz
#define __pyx_n_s_bool __pyx_mstate_global->__pyx_n_s_bool
#define __pyx_kp_s_bool_None __pyx_mstate_global->__pyx_kp_s_bool_None
#define __pyx_kp_s_bool_Series_bool_Literal_raise_i __pyx_mstate_global->__pyx_kp_s_bool_Series_bool_Literal_raise_i
#define __pyx_n_u_both __pyx_mstate_global->__pyx_n_u_both
#define __pyx_n_s_cache __pyx_mstate_global->__pyx_n_s_cache
#define __pyx_n_s_cal_delta __pyx_mstate_global->__pyx_n_s_cal_delta
#define __pyx_n_s_ceil __pyx_mstate_global->__pyx_n_s_ceil
#define __pyx_n_s_cfg __pyx_mstate_global->__pyx_n_s_cfg
#define __pyx_n_s_class __pyx_mstate_global->__pyx_n_s_class
#define __pyx_n_s_class_getitem __pyx_mstate_global->__pyx_n_s_class_getitem
#define __pyx_n_s_cline_in_traceback __pyx_mstate_global->__pyx_n_s_cline_in_traceback
#define __pyx_n_s_cls __pyx_mstate_global->__pyx_n_s_cls
#define __pyx_n_s_contains __pyx_mstate_global->__pyx_n_s_contains
#define __pyx_n_s_copy __pyx_mstate_global->__pyx_n_s_copy
#define __pyx_n_s_copy_2 __pyx_mstate_global->__pyx_n_s_copy_2
#define __pyx_n_s_cydatetime __pyx_mstate_global->__pyx_n_s_cydatetime
#define __pyx_n_s_cydt __pyx_mstate_global->__pyx_n_s_cydt
#define __pyx_kp_s_cython_int __pyx_mstate_global->__pyx_kp_s_cython_int
#define __pyx_kp_s_cython_int_str_None __pyx_mstate_global->__pyx_kp_s_cython_int_str_None
#define __pyx_n_s_cytimes __pyx_mstate_global->__pyx_n_s_cytimes
#define __pyx_n_s_cytimes_cyparser __pyx_mstate_global->__pyx_n_s_cytimes_cyparser
#define __pyx_n_s_cytimes_pddatetime __pyx_mstate_global->__pyx_n_s_cytimes_pddatetime
#define __pyx_n_s_cytimes_pydatetime __pyx_mstate_global->__pyx_n_s_cytimes_pydatetime
#define __pyx_n_u_d __pyx_mstate_global->__pyx_n_u_d
#define __pyx_n_s_date __pyx_mstate_global->__pyx_n_s_date
#define __pyx_n_s_date_range __pyx_mstate_global->__pyx_n_s_date_range
#define __pyx_n_s_datetime __pyx_mstate_global->__pyx_n_s_datetime
#define __pyx_n_s_day __pyx_mstate_global->__pyx_n_s_day
#define __pyx_n_s_day1st __pyx_mstate_global->__pyx_n_s_day1st
#define __pyx_n_s_day_of_year __pyx_mstate_global->__pyx_n_s_day_of_year
#define __pyx_n_s_dayfirst __pyx_mstate_global->__pyx_n_s_dayfirst
#define __pyx_n_s_days __pyx_mstate_global->__pyx_n_s_days
#define __pyx_n_s_days_in_month __pyx_mstate_global->__pyx_n_s_days_in_month
#define __pyx_n_s_deepcopy __pyx_mstate_global->__pyx_n_s_deepcopy
#define __pyx_n_s_default __pyx_mstate_global->__pyx_n_s_default
#define __pyx_n_s_dict __pyx_mstate_global->__pyx_n_s_dict
#define __pyx_n_s_dict_2 __pyx_mstate_global->__pyx_n_s_dict_2
#define __pyx_kp_u_disable __pyx_mstate_global->__pyx_kp_u_disable
#define __pyx_n_s_dt __pyx_mstate_global->__pyx_n_s_dt
#define __pyx_n_s_dtobj __pyx_mstate_global->__pyx_n_s_dtobj
#define __pyx_n_s_dtsobj __pyx_mstate_global->__pyx_n_s_dtsobj
#define __pyx_n_s_dtype __pyx_mstate_global->__pyx_n_s_dtype
#define __pyx_kp_u_enable __pyx_mstate_global->__pyx_kp_u_enable
#define __pyx_n_s_end __pyx_mstate_global->__pyx_n_s_end
#define __pyx_n_s_equals __pyx_mstate_global->__pyx_n_s_equals
#define __pyx_n_s_err __pyx_mstate_global->__pyx_n_s_err
#define __pyx_n_s_errors __pyx_mstate_global->__pyx_n_s_errors
#define __pyx_n_s_exact __pyx_mstate_global->__pyx_n_s_exact
#define __pyx_n_s_floor __pyx_mstate_global->__pyx_n_s_floor
#define __pyx_n_s_format __pyx_mstate_global->__pyx_n_s_format
#define __pyx_n_s_freq __pyx_mstate_global->__pyx_n_s_freq
#define __pyx_n_s_freq_ceil __pyx_mstate_global->__pyx_n_s_freq_ceil
#define __pyx_n_s_freq_floor __pyx_mstate_global->__pyx_n_s_freq_floor
#define __pyx_n_s_freq_round __pyx_mstate_global->__pyx_n_s_freq_round
#define __pyx_n_s_from_datetime __pyx_mstate_global->__pyx_n_s_from_datetime
#define __pyx_n_s_from_dtobj __pyx_mstate_global->__pyx_n_s_from_dtobj
#define __pyx_n_s_from_range __pyx_mstate_global->__pyx_n_s_from_range
#define __pyx_n_s_full __pyx_mstate_global->__pyx_n_s_full
#define __pyx_kp_u_gc __pyx_mstate_global->__pyx_kp_u_gc
#define __pyx_n_s_getitem __pyx_mstate_global->__pyx_n_s_getitem
#define __pyx_n_s_getstate __pyx_mstate_global->__pyx_n_s_getstate
#define __pyx_n_u_h __pyx_mstate_global->__pyx_n_u_h
#define __pyx_n_s_hour __pyx_mstate_global->__pyx_n_s_hour
#define __pyx_n_s_hours __pyx_mstate_global->__pyx_n_s_hours
#define __pyx_n_s_import __pyx_mstate_global->__pyx_n_s_import
#define __pyx_n_s_inclusive __pyx_mstate_global->__pyx_n_s_inclusive
#define __pyx_n_s_index __pyx_mstate_global->__pyx_n_s_index
#define __pyx_n_u_infer __pyx_mstate_global->__pyx_n_u_infer
#define __pyx_n_s_initializing __pyx_mstate_global->__pyx_n_s_initializing
#define __pyx_n_s_int __pyx_mstate_global->__pyx_n_s_int
#define __pyx_kp_s_int_str __pyx_mstate_global->__pyx_kp_s_int_str
#define __pyx_kp_s_int_str_None __pyx_mstate_global->__pyx_kp_s_int_str_None
#define __pyx_n_s_is_coroutine __pyx_mstate_global->__pyx_n_s_is_coroutine
#define __pyx_n_s_is_day __pyx_mstate_global->__pyx_n_s_is_day
#define __pyx_n_s_is_leap_year __pyx_mstate_global->__pyx_n_s_is_leap_year
#define __pyx_n_s_is_leapyear __pyx_mstate_global->__pyx_n_s_is_leapyear
#define __pyx_n_s_is_month __pyx_mstate_global->__pyx_n_s_is_month
#define __pyx_n_s_is_month_1st __pyx_mstate_global->__pyx_n_s_is_month_1st
#define __pyx_n_s_is_month_end __pyx_mstate_global->__pyx_n_s_is_month_end
#define __pyx_n_s_is_month_lst __pyx_mstate_global->__pyx_n_s_is_month_lst
#define __pyx_n_s_is_month_start __pyx_mstate_global->__pyx_n_s_is_month_start
#define __pyx_n_s_is_quarter __pyx_mstate_global->__pyx_n_s_is_quarter
#define __pyx_n_s_is_quarter_1st __pyx_mstate_global->__pyx_n_s_is_quarter_1st
#define __pyx_n_s_is_quarter_end __pyx_mstate_global->__pyx_n_s_is_quarter_end
#define __pyx_n_s_is_quarter_lst __pyx_mstate_global->__pyx_n_s_is_quarter_lst
#define __pyx_n_s_is_quarter_start __pyx_mstate_global->__pyx_n_s_is_quarter_start
#define __pyx_n_s_is_time_end __pyx_mstate_global->__pyx_n_s_is_time_end
#define __pyx_n_s_is_time_start __pyx_mstate_global->__pyx_n_s_is_time_start
#define __pyx_n_s_is_weekday __pyx_mstate_global->__pyx_n_s_is_weekday
#define __pyx_n_s_is_year __pyx_mstate_global->__pyx_n_s_is_year
#define __pyx_n_s_is_year_1st __pyx_mstate_global->__pyx_n_s_is_year_1st
#define __pyx_n_s_is_year_end __pyx_mstate_global->__pyx_n_s_is_year_end
#define __pyx_n_s_is_year_lst __pyx_mstate_global->__pyx_n_s_is_year_lst
#define __pyx_n_s_is_year_start __pyx_mstate_global->__pyx_n_s_is_year_start
#define __pyx_kp_u_isenabled __pyx_mstate_global->__pyx_kp_u_isenabled
#define __pyx_n_s_isocalendar __pyx_mstate_global->__pyx_n_s_isocalendar
#define __pyx_n_s_iter __pyx_mstate_global->__pyx_n_s_iter
#define __pyx_n_s_kwargs __pyx_mstate_global->__pyx_n_s_kwargs
#define __pyx_n_s_leap_bt_years __pyx_mstate_global->__pyx_n_s_leap_bt_years
#define __pyx_n_s_lower __pyx_mstate_global->__pyx_n_s_lower
#define __pyx_n_u_m __pyx_mstate_global->__pyx_n_u_m
#define __pyx_n_s_main __pyx_mstate_global->__pyx_n_s_main
#define __pyx_n_s_microsecond __pyx_mstate_global->__pyx_n_s_microsecond
#define __pyx_n_s_microseconds __pyx_mstate_global->__pyx_n_s_microseconds
#define __pyx_n_s_millisecond __pyx_mstate_global->__pyx_n_s_millisecond
#define __pyx_n_s_milliseconds __pyx_mstate_global->__pyx_n_s_milliseconds
#define __pyx_n_u_min __pyx_mstate_global->__pyx_n_u_min
#define __pyx_n_s_minimum __pyx_mstate_global->__pyx_n_s_minimum
#define __pyx_n_s_minute __pyx_mstate_global->__pyx_n_s_minute
#define __pyx_n_s_minutes __pyx_mstate_global->__pyx_n_s_minutes
#define __pyx_n_s_month __pyx_mstate_global->__pyx_n_s_month
#define __pyx_n_s_months __pyx_mstate_global->__pyx_n_s_months
#define __pyx_n_u_ms __pyx_mstate_global->__pyx_n_u_ms
#define __pyx_kp_u_must_between_0_Monday_6_Sunday __pyx_mstate_global->__pyx_kp_u_must_between_0_Monday_6_Sunday
#define __pyx_kp_u_must_between_1_Jan_12_Dec __pyx_mstate_global->__pyx_kp_u_must_between_1_Jan_12_Dec
#define __pyx_n_s_naive __pyx_mstate_global->__pyx_n_s_naive
#define __pyx_n_s_name __pyx_mstate_global->__pyx_n_s_name
#define __pyx_n_s_name_2 __pyx_mstate_global->__pyx_n_s_name_2
#define __pyx_n_s_nanosecond __pyx_mstate_global->__pyx_n_s_nanosecond
#define __pyx_n_u_neither __pyx_mstate_global->__pyx_n_u_neither
#define __pyx_n_s_new __pyx_mstate_global->__pyx_n_s_new
#define __pyx_n_s_nonexistent __pyx_mstate_global->__pyx_n_s_nonexistent
#define __pyx_n_s_normalize __pyx_mstate_global->__pyx_n_s_normalize
#define __pyx_n_s_now __pyx_mstate_global->__pyx_n_s_now
#define __pyx_n_s_np __pyx_mstate_global->__pyx_n_s_np
#define __pyx_kp_s_np_ndarray __pyx_mstate_global->__pyx_kp_s_np_ndarray
#define __pyx_n_u_ns __pyx_mstate_global->__pyx_n_u_ns
#define __pyx_n_s_numpy __pyx_mstate_global->__pyx_n_s_numpy
#define __pyx_kp_u_numpy__core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy__core_multiarray_failed_to
#define __pyx_kp_u_numpy__core_umath_failed_to_impo __pyx_mstate_global->__pyx_kp_u_numpy__core_umath_failed_to_impo
#define __pyx_n_s_o __pyx_mstate_global->__pyx_n_s_o
#define __pyx_n_s_object __pyx_mstate_global->__pyx_n_s_object
#define __pyx_kp_s_object_None __pyx_mstate_global->__pyx_kp_s_object_None
#define __pyx_n_s_offset __pyx_mstate_global->__pyx_n_s_offset
#define __pyx_n_u_one __pyx_mstate_global->__pyx_n_u_one
#define __pyx_n_s_ordinal __pyx_mstate_global->__pyx_n_s_ordinal
#define __pyx_n_s_other __pyx_mstate_global->__pyx_n_s_other
#define __pyx_n_s_pandas __pyx_mstate_global->__pyx_n_s_pandas
#define __pyx_n_s_pandas_errors __pyx_mstate_global->__pyx_n_s_pandas_errors
#define __pyx_n_s_pddt __pyx_mstate_global->__pyx_n_s_pddt
#define __pyx_n_u_pddt __pyx_mstate_global->__pyx_n_u_pddt
#define __pyx_kp_u_pddt_Invalid_timezone __pyx_mstate_global->__pyx_kp_u_pddt_Invalid_timezone
#define __pyx_kp_u_pddt_Unsupported_dtobj_type __pyx_mstate_global->__pyx_kp_u_pddt_Unsupported_dtobj_type
#define __pyx_n_s_pddt___array __pyx_mstate_global->__pyx_n_s_pddt___array
#define __pyx_n_s_pddt___copy __pyx_mstate_global->__pyx_n_s_pddt___copy
#define __pyx_n_s_pddt___deepcopy __pyx_mstate_global->__pyx_n_s_pddt___deepcopy
#define __pyx_n_s_pddt___reduce_cython __pyx_mstate_global->__pyx_n_s_pddt___reduce_cython
#define __pyx_n_s_pddt___setstate_cython __pyx_mstate_global->__pyx_n_s_pddt___setstate_cython
#define __pyx_n_s_pddt_add_delta __pyx_mstate_global->__pyx_n_s_pddt_add_delta
#define __pyx_n_s_pddt_as_unit __pyx_mstate_global->__pyx_n_s_pddt_as_unit
#define __pyx_n_s_pddt_astimezone __pyx_mstate_global->__pyx_n_s_pddt_astimezone
#define __pyx_n_s_pddt_cal_delta __pyx_mstate_global->__pyx_n_s_pddt_cal_delta
#define __pyx_n_s_pddt_copy __pyx_mstate_global->__pyx_n_s_pddt_copy
#define __pyx_n_s_pddt_equals __pyx_mstate_global->__pyx_n_s_pddt_equals
#define __pyx_n_s_pddt_freq_ceil __pyx_mstate_global->__pyx_n_s_pddt_freq_ceil
#define __pyx_n_s_pddt_freq_floor __pyx_mstate_global->__pyx_n_s_pddt_freq_floor
#define __pyx_n_s_pddt_freq_round __pyx_mstate_global->__pyx_n_s_pddt_freq_round
#define __pyx_n_s_pddt_from_datetime __pyx_mstate_global->__pyx_n_s_pddt_from_datetime
#define __pyx_n_s_pddt_from_dtobj __pyx_mstate_global->__pyx_n_s_pddt_from_dtobj
#define __pyx_n_s_pddt_from_range __pyx_mstate_global->__pyx_n_s_pddt_from_range
#define __pyx_n_s_pddt_is_day __pyx_mstate_global->__pyx_n_s_pddt_is_day
#define __pyx_n_s_pddt_is_leapyear __pyx_mstate_global->__pyx_n_s_pddt_is_leapyear
#define __pyx_n_s_pddt_is_month __pyx_mstate_global->__pyx_n_s_pddt_is_month
#define __pyx_n_s_pddt_is_month_1st __pyx_mstate_global->__pyx_n_s_pddt_is_month_1st
#define __pyx_n_s_pddt_is_month_lst __pyx_mstate_global->__pyx_n_s_pddt_is_month_lst
#define __pyx_n_s_pddt_is_quarter __pyx_mstate_global->__pyx_n_s_pddt_is_quarter
#define __pyx_n_s_pddt_is_quarter_1st __pyx_mstate_global->__pyx_n_s_pddt_is_quarter_1st
#define __pyx_n_s_pddt_is_quarter_lst __pyx_mstate_global->__pyx_n_s_pddt_is_quarter_lst
#define __pyx_n_s_pddt_is_time_end __pyx_mstate_global->__pyx_n_s_pddt_is_time_end
#define __pyx_n_s_pddt_is_time_start __pyx_mstate_global->__pyx_n_s_pddt_is_time_start
#define __pyx_n_s_pddt_is_weekday __pyx_mstate_global->__pyx_n_s_pddt_is_weekday
#define __pyx_n_s_pddt_is_year __pyx_mstate_global->__pyx_n_s_pddt_is_year
#define __pyx_n_s_pddt_is_year_1st __pyx_mstate_global->__pyx_n_s_pddt_is_year_1st
#define __pyx_n_s_pddt_is_year_lst __pyx_mstate_global->__pyx_n_s_pddt_is_year_lst
#define __pyx_n_s_pddt_leap_bt_years __pyx_mstate_global->__pyx_n_s_pddt_leap_bt_years
#define __pyx_n_s_pddt_now __pyx_mstate_global->__pyx_n_s_pddt_now
#define __pyx_n_s_pddt_replace __pyx_mstate_global->__pyx_n_s_pddt_replace
#define __pyx_kp_u_pddt_s __pyx_mstate_global->__pyx_kp_u_pddt_s
#define __pyx_n_s_pddt_strftime __pyx_mstate_global->__pyx_n_s_pddt_strftime
#define __pyx_n_s_pddt_sub_delta __pyx_mstate_global->__pyx_n_s_pddt_sub_delta
#define __pyx_n_s_pddt_to_curr_month __pyx_mstate_global->__pyx_n_s_pddt_to_curr_month
#define __pyx_n_s_pddt_to_curr_quarter __pyx_mstate_global->__pyx_n_s_pddt_to_curr_quarter
#define __pyx_n_s_pddt_to_curr_weekday __pyx_mstate_global->__pyx_n_s_pddt_to_curr_weekday
#define __pyx_n_s_pddt_to_curr_year __pyx_mstate_global->__pyx_n_s_pddt_to_curr_year
#define __pyx_n_s_pddt_to_day __pyx_mstate_global->__pyx_n_s_pddt_to_day
#define __pyx_n_s_pddt_to_friday __pyx_mstate_global->__pyx_n_s_pddt_to_friday
#define __pyx_n_s_pddt_to_monday __pyx_mstate_global->__pyx_n_s_pddt_to_monday
#define __pyx_n_s_pddt_to_month __pyx_mstate_global->__pyx_n_s_pddt_to_month
#define __pyx_n_s_pddt_to_month_1st __pyx_mstate_global->__pyx_n_s_pddt_to_month_1st
#define __pyx_n_s_pddt_to_month_lst __pyx_mstate_global->__pyx_n_s_pddt_to_month_lst
#define __pyx_n_s_pddt_to_next_month __pyx_mstate_global->__pyx_n_s_pddt_to_next_month
#define __pyx_n_s_pddt_to_next_quarter __pyx_mstate_global->__pyx_n_s_pddt_to_next_quarter
#define __pyx_n_s_pddt_to_next_weekday __pyx_mstate_global->__pyx_n_s_pddt_to_next_weekday
#define __pyx_n_s_pddt_to_next_year __pyx_mstate_global->__pyx_n_s_pddt_to_next_year
#define __pyx_n_s_pddt_to_prev_month __pyx_mstate_global->__pyx_n_s_pddt_to_prev_month
#define __pyx_n_s_pddt_to_prev_quarter __pyx_mstate_global->__pyx_n_s_pddt_to_prev_quarter
#define __pyx_n_s_pddt_to_prev_weekday __pyx_mstate_global->__pyx_n_s_pddt_to_prev_weekday
#define __pyx_n_s_pddt_to_prev_year __pyx_mstate_global->__pyx_n_s_pddt_to_prev_year
#define __pyx_n_s_pddt_to_quarter __pyx_mstate_global->__pyx_n_s_pddt_to_quarter
#define __pyx_n_s_pddt_to_quarter_1st __pyx_mstate_global->__pyx_n_s_pddt_to_quarter_1st
#define __pyx_n_s_pddt_to_quarter_lst __pyx_mstate_global->__pyx_n_s_pddt_to_quarter_lst
#define __pyx_n_s_pddt_to_saturday __pyx_mstate_global->__pyx_n_s_pddt_to_saturday
#define __pyx_n_s_pddt_to_sunday __pyx_mstate_global->__pyx_n_s_pddt_to_sunday
#define __pyx_n_s_pddt_to_thursday __pyx_mstate_global->__pyx_n_s_pddt_to_thursday
#define __pyx_n_s_pddt_to_time __pyx_mstate_global->__pyx_n_s_pddt_to_time
#define __pyx_n_s_pddt_to_time_end __pyx_mstate_global->__pyx_n_s_pddt_to_time_end
#define __pyx_n_s_pddt_to_time_start __pyx_mstate_global->__pyx_n_s_pddt_to_time_start
#define __pyx_n_s_pddt_to_tomorrow __pyx_mstate_global->__pyx_n_s_pddt_to_tomorrow
#define __pyx_n_s_pddt_to_tuesday __pyx_mstate_global->__pyx_n_s_pddt_to_tuesday
#define __pyx_n_s_pddt_to_wednesday __pyx_mstate_global->__pyx_n_s_pddt_to_wednesday
#define __pyx_n_s_pddt_to_weekday __pyx_mstate_global->__pyx_n_s_pddt_to_weekday
#define __pyx_n_s_pddt_to_year __pyx_mstate_global->__pyx_n_s_pddt_to_year
#define __pyx_n_s_pddt_to_year_1st __pyx_mstate_global->__pyx_n_s_pddt_to_year_1st
#define __pyx_n_s_pddt_to_year_lst __pyx_mstate_global->__pyx_n_s_pddt_to_year_lst
#define __pyx_n_s_pddt_to_yesterday __pyx_mstate_global->__pyx_n_s_pddt_to_yesterday
#define __pyx_n_s_pddt_tz_convert __pyx_mstate_global->__pyx_n_s_pddt_tz_convert
#define __pyx_n_s_pddt_tz_localize __pyx_mstate_global->__pyx_n_s_pddt_tz_localize
#define __pyx_n_s_pddt_tz_switch __pyx_mstate_global->__pyx_n_s_pddt_tz_switch
#define __pyx_n_s_periods __pyx_mstate_global->__pyx_n_s_periods
#define __pyx_n_s_pickle __pyx_mstate_global->__pyx_n_s_pickle
#define __pyx_n_s_pydt __pyx_mstate_global->__pyx_n_s_pydt
#define __pyx_kp_u_pydt_Invalid_timezone __pyx_mstate_global->__pyx_kp_u_pydt_Invalid_timezone
#define __pyx_n_s_pyx_PickleError __pyx_mstate_global->__pyx_n_s_pyx_PickleError
#define __pyx_n_s_pyx_capi __pyx_mstate_global->__pyx_n_s_pyx_capi
#define __pyx_n_s_pyx_checksum __pyx_mstate_global->__pyx_n_s_pyx_checksum
#define __pyx_n_s_pyx_result __pyx_mstate_global->__pyx_n_s_pyx_result
#define __pyx_n_s_pyx_state __pyx_mstate_global->__pyx_n_s_pyx_state
#define __pyx_n_s_pyx_type __pyx_mstate_global->__pyx_n_s_pyx_type
#define __pyx_n_s_pyx_unpickle_pddt __pyx_mstate_global->__pyx_n_s_pyx_unpickle_pddt
#define __pyx_n_s_pyx_vtable __pyx_mstate_global->__pyx_n_s_pyx_vtable
#define __pyx_n_s_quarter __pyx_mstate_global->__pyx_n_s_quarter
#define __pyx_n_u_raise __pyx_mstate_global->__pyx_n_u_raise
#define __pyx_n_s_range __pyx_mstate_global->__pyx_n_s_range
#define __pyx_n_s_reduce __pyx_mstate_global->__pyx_n_s_reduce
#define __pyx_n_s_reduce_cython __pyx_mstate_global->__pyx_n_s_reduce_cython
#define __pyx_n_s_reduce_ex __pyx_mstate_global->__pyx_n_s_reduce_ex
#define __pyx_n_s_replace __pyx_mstate_global->__pyx_n_s_replace
#define __pyx_n_s_replace_locals_lambda __pyx_mstate_global->__pyx_n_s_replace_locals_lambda
#define __pyx_n_s_repr __pyx_mstate_global->__pyx_n_s_repr
#define __pyx_n_s_return __pyx_mstate_global->__pyx_n_s_return
#define __pyx_n_s_round __pyx_mstate_global->__pyx_n_s_round
#define __pyx_n_u_s __pyx_mstate_global->__pyx_n_u_s
#define __pyx_kp_u_s_Argument_ambiguous_NaT_is_not __pyx_mstate_global->__pyx_kp_u_s_Argument_ambiguous_NaT_is_not
#define __pyx_kp_u_s_Argument_nonexistent_NaT_is_n __pyx_mstate_global->__pyx_kp_u_s_Argument_nonexistent_NaT_is_n
#define __pyx_n_s_second __pyx_mstate_global->__pyx_n_s_second
#define __pyx_n_s_seconds __pyx_mstate_global->__pyx_n_s_seconds
#define __pyx_n_s_self __pyx_mstate_global->__pyx_n_s_self
#define __pyx_n_s_setstate __pyx_mstate_global->__pyx_n_s_setstate
#define __pyx_n_s_setstate_cython __pyx_mstate_global->__pyx_n_s_setstate_cython
#define __pyx_n_u_shift_backward __pyx_mstate_global->__pyx_n_u_shift_backward
#define __pyx_n_u_shift_forward __pyx_mstate_global->__pyx_n_u_shift_forward
#define __pyx_n_s_size __pyx_mstate_global->__pyx_n_s_size
#define __pyx_n_s_spec __pyx_mstate_global->__pyx_n_s_spec
#define __pyx_kp_s_src_cytimes_pddatetime_py __pyx_mstate_global->__pyx_kp_s_src_cytimes_pddatetime_py
#define __pyx_n_s_start __pyx_mstate_global->__pyx_n_s_start
#define __pyx_n_s_startingMonth __pyx_mstate_global->__pyx_n_s_startingMonth
#define __pyx_n_s_state __pyx_mstate_global->__pyx_n_s_state
#define __pyx_n_s_str __pyx_mstate_global->__pyx_n_s_str
#define __pyx_kp_s_str_None __pyx_mstate_global->__pyx_kp_s_str_None
#define __pyx_kp_s_str_datetime_tzinfo_None __pyx_mstate_global->__pyx_kp_s_str_datetime_tzinfo_None
#define __pyx_n_s_strftime __pyx_mstate_global->__pyx_n_s_strftime
#define __pyx_kp_s_stringsource __pyx_mstate_global->__pyx_kp_s_stringsource
#define __pyx_n_s_sub_delta __pyx_mstate_global->__pyx_n_s_sub_delta
#define __pyx_n_s_targ_tz __pyx_mstate_global->__pyx_n_s_targ_tz
#define __pyx_n_s_test __pyx_mstate_global->__pyx_n_s_test
#define __pyx_n_s_time __pyx_mstate_global->__pyx_n_s_time
#define __pyx_n_s_timetz __pyx_mstate_global->__pyx_n_s_timetz
#define __pyx_kp_u_to __pyx_mstate_global->__pyx_kp_u_to
#define __pyx_n_s_to_curr_month __pyx_mstate_global->__pyx_n_s_to_curr_month
#define __pyx_n_s_to_curr_quarter __pyx_mstate_global->__pyx_n_s_to_curr_quarter
#define __pyx_n_s_to_curr_weekday __pyx_mstate_global->__pyx_n_s_to_curr_weekday
#define __pyx_n_s_to_curr_year __pyx_mstate_global->__pyx_n_s_to_curr_year
#define __pyx_n_s_to_datetime __pyx_mstate_global->__pyx_n_s_to_datetime
#define __pyx_n_s_to_day __pyx_mstate_global->__pyx_n_s_to_day
#define __pyx_n_s_to_friday __pyx_mstate_global->__pyx_n_s_to_friday
#define __pyx_n_s_to_monday __pyx_mstate_global->__pyx_n_s_to_monday
#define __pyx_n_s_to_month __pyx_mstate_global->__pyx_n_s_to_month
#define __pyx_n_s_to_month_1st __pyx_mstate_global->__pyx_n_s_to_month_1st
#define __pyx_n_s_to_month_lst __pyx_mstate_global->__pyx_n_s_to_month_lst
#define __pyx_n_s_to_next_month __pyx_mstate_global->__pyx_n_s_to_next_month
#define __pyx_n_s_to_next_quarter __pyx_mstate_global->__pyx_n_s_to_next_quarter
#define __pyx_n_s_to_next_weekday __pyx_mstate_global->__pyx_n_s_to_next_weekday
#define __pyx_n_s_to_next_year __pyx_mstate_global->__pyx_n_s_to_next_year
#define __pyx_n_s_to_prev_month __pyx_mstate_global->__pyx_n_s_to_prev_month
#define __pyx_n_s_to_prev_quarter __pyx_mstate_global->__pyx_n_s_to_prev_quarter
#define __pyx_n_s_to_prev_weekday __pyx_mstate_global->__pyx_n_s_to_prev_weekday
#define __pyx_n_s_to_prev_year __pyx_mstate_global->__pyx_n_s_to_prev_year
#define __pyx_n_s_to_pydatetime __pyx_mstate_global->__pyx_n_s_to_pydatetime
#define __pyx_n_s_to_quarter __pyx_mstate_global->__pyx_n_s_to_quarter
#define __pyx_n_s_to_quarter_1st __pyx_mstate_global->__pyx_n_s_to_quarter_1st
#define __pyx_n_s_to_quarter_lst __pyx_mstate_global->__pyx_n_s_to_quarter_lst
#define __pyx_n_s_to_saturday __pyx_mstate_global->__pyx_n_s_to_saturday
#define __pyx_n_s_to_sunday __pyx_mstate_global->__pyx_n_s_to_sunday
#define __pyx_n_s_to_thursday __pyx_mstate_global->__pyx_n_s_to_thursday
#define __pyx_n_s_to_time __pyx_mstate_global->__pyx_n_s_to_time
#define __pyx_n_s_to_time_end __pyx_mstate_global->__pyx_n_s_to_time_end
#define __pyx_n_s_to_time_start __pyx_mstate_global->__pyx_n_s_to_time_start
#define __pyx_n_s_to_timedelta __pyx_mstate_global->__pyx_n_s_to_timedelta
#define __pyx_n_s_to_tomorrow __pyx_mstate_global->__pyx_n_s_to_tomorrow
#define __pyx_n_s_to_tuesday __pyx_mstate_global->__pyx_n_s_to_tuesday
#define __pyx_n_s_to_wednesday __pyx_mstate_global->__pyx_n_s_to_wednesday
#define __pyx_n_s_to_weekday __pyx_mstate_global->__pyx_n_s_to_weekday
#define __pyx_n_s_to_year __pyx_mstate_global->__pyx_n_s_to_year
#define __pyx_n_s_to_year_1st __pyx_mstate_global->__pyx_n_s_to_year_1st
#define __pyx_n_s_to_year_lst __pyx_mstate_global->__pyx_n_s_to_year_lst
#define __pyx_n_s_to_yesterday __pyx_mstate_global->__pyx_n_s_to_yesterday
#define __pyx_n_s_typeref __pyx_mstate_global->__pyx_n_s_typeref
#define __pyx_n_s_typing __pyx_mstate_global->__pyx_n_s_typing
#define __pyx_n_s_tz __pyx_mstate_global->__pyx_n_s_tz
#define __pyx_n_s_tz_convert __pyx_mstate_global->__pyx_n_s_tz_convert
#define __pyx_n_s_tz_localize __pyx_mstate_global->__pyx_n_s_tz_localize
#define __pyx_n_s_tz_switch __pyx_mstate_global->__pyx_n_s_tz_switch
#define __pyx_n_s_unit __pyx_mstate_global->__pyx_n_s_unit
#define __pyx_n_s_update __pyx_mstate_global->__pyx_n_s_update
#define __pyx_n_u_us __pyx_mstate_global->__pyx_n_u_us
#define __pyx_n_s_use_setstate __pyx_mstate_global->__pyx_n_s_use_setstate
#define __pyx_n_s_utc __pyx_mstate_global->__pyx_n_s_utc
#define __pyx_n_s_values __pyx_mstate_global->__pyx_n_s_values
#define __pyx_kp_u_vs __pyx_mstate_global->__pyx_kp_u_vs
#define __pyx_n_u_week __pyx_mstate_global->__pyx_n_u_week
#define __pyx_n_s_weekday __pyx_mstate_global->__pyx_n_s_weekday
#define __pyx_n_s_weeks __pyx_mstate_global->__pyx_n_s_weeks
#define __pyx_n_s_where __pyx_mstate_global->__pyx_n_s_where
#define __pyx_n_s_y1_arr __pyx_mstate_global->__pyx_n_s_y1_arr
#define __pyx_n_s_y2_arr __pyx_mstate_global->__pyx_n_s_y2_arr
#define __pyx_n_s_year __pyx_mstate_global->__pyx_n_s_year
#define __pyx_n_u_year __pyx_mstate_global->__pyx_n_u_year
#define __pyx_n_s_year1st __pyx_mstate_global->__pyx_n_s_year1st
#define __pyx_n_s_yearfirst __pyx_mstate_global->__pyx_n_s_yearfirst
#define __pyx_n_s_years __pyx_mstate_global->__pyx_n_s_years
#define __pyx_int_0 __pyx_mstate_global->__pyx_int_0
#define __pyx_int_1 __pyx_mstate_global->__pyx_int_1
#define __pyx_int_2 __pyx_mstate_global->__pyx_int_2
#define __pyx_int_3 __pyx_mstate_global->__pyx_int_3
#define __pyx_int_4 __pyx_mstate_global->__pyx_int_4
#define __pyx_int_7 __pyx_mstate_global->__pyx_int_7
#define __pyx_int_12 __pyx_mstate_global->__pyx_int_12
#define __pyx_int_100 __pyx_mstate_global->__pyx_int_100
#define __pyx_int_365 __pyx_mstate_global->__pyx_int_365
#define __pyx_int_400 __pyx_mstate_global->__pyx_int_400
#define __pyx_int_1000000 __pyx_mstate_global->__pyx_int_1000000
#define __pyx_int_60000000 __pyx_mstate_global->__pyx_int_60000000
#define __pyx_int_218360617 __pyx_mstate_global->__pyx_int_218360617
#define __pyx_int_221774984 __pyx_mstate_global->__pyx_int_221774984
#define __pyx_int_238332308 __pyx_mstate_global->__pyx_int_238332308
#define __pyx_int_neg_1 __pyx_mstate_global->__pyx_int_neg_1
#define __pyx_k__9 __pyx_mstate_global->__pyx_k__9
#define __pyx_k__10 __pyx_mstate_global->__pyx_k__10
#define __pyx_k__11 __pyx_mstate_global->__pyx_k__11
#define __pyx_k__12 __pyx_mstate_global->__pyx_k__12
#define __pyx_k__13 __pyx_mstate_global->__pyx_k__13
#define __pyx_tuple_ __pyx_mstate_global->__pyx_tuple_
#define __pyx_tuple__2 __pyx_mstate_global->__pyx_tuple__2
#define __pyx_tuple__3 __pyx_mstate_global->__pyx_tuple__3
#define __pyx_tuple__4 __pyx_mstate_global->__pyx_tuple__4
#define __pyx_tuple__5 __pyx_mstate_global->__pyx_tuple__5
#define __pyx_tuple__6 __pyx_mstate_global->__pyx_tuple__6
#define __pyx_tuple__14 __pyx_mstate_global->__pyx_tuple__14
#define __pyx_tuple__15 __pyx_mstate_global->__pyx_tuple__15
#define __pyx_tuple__16 __pyx_mstate_global->__pyx_tuple__16
#define __pyx_tuple__26 __pyx_mstate_global->__pyx_tuple__26
#define __pyx_tuple__28 __pyx_mstate_global->__pyx_tuple__28
#define __pyx_tuple__30 __pyx_mstate_global->__pyx_tuple__30
#define __pyx_tuple__31 __pyx_mstate_global->__pyx_tuple__31
#define __pyx_tuple__33 __pyx_mstate_global->__pyx_tuple__33
#define __pyx_tuple__34 __pyx_mstate_global->__pyx_tuple__34
#define __pyx_tuple__36 __pyx_mstate_global->__pyx_tuple__36
#define __pyx_tuple__38 __pyx_mstate_global->__pyx_tuple__38
#define __pyx_tuple__39 __pyx_mstate_global->__pyx_tuple__39
#define __pyx_tuple__41 __pyx_mstate_global->__pyx_tuple__41
#define __pyx_tuple__43 __pyx_mstate_global->__pyx_tuple__43
#define __pyx_tuple__49 __pyx_mstate_global->__pyx_tuple__49
#define __pyx_tuple__51 __pyx_mstate_global->__pyx_tuple__51
#define __pyx_tuple__54 __pyx_mstate_global->__pyx_tuple__54
#define __pyx_tuple__56 __pyx_mstate_global->__pyx_tuple__56
#define __pyx_tuple__57 __pyx_mstate_global->__pyx_tuple__57
#define __pyx_tuple__64 __pyx_mstate_global->__pyx_tuple__64
#define __pyx_tuple__68 __pyx_mstate_global->__pyx_tuple__68
#define __pyx_tuple__69 __pyx_mstate_global->__pyx_tuple__69
#define __pyx_tuple__75 __pyx_mstate_global->__pyx_tuple__75
#define __pyx_tuple__77 __pyx_mstate_global->__pyx_tuple__77
#define __pyx_tuple__80 __pyx_mstate_global->__pyx_tuple__80
#define __pyx_tuple__82 __pyx_mstate_global->__pyx_tuple__82
#define __pyx_tuple__83 __pyx_mstate_global->__pyx_tuple__83
#define __pyx_tuple__93 __pyx_mstate_global->__pyx_tuple__93
#define __pyx_tuple__96 __pyx_mstate_global->__pyx_tuple__96
#define __pyx_tuple__98 __pyx_mstate_global->__pyx_tuple__98
#define __pyx_tuple__102 __pyx_mstate_global->__pyx_tuple__102
#define __pyx_tuple__108 __pyx_mstate_global->__pyx_tuple__108
#define __pyx_tuple__110 __pyx_mstate_global->__pyx_tuple__110
#define __pyx_tuple__111 __pyx_mstate_global->__pyx_tuple__111
#define __pyx_tuple__113 __pyx_mstate_global->__pyx_tuple__113
#define __pyx_tuple__115 __pyx_mstate_global->__pyx_tuple__115
#define __pyx_tuple__116 __pyx_mstate_global->__pyx_tuple__116
#define __pyx_tuple__118 __pyx_mstate_global->__pyx_tuple__118
#define __pyx_tuple__120 __pyx_mstate_global->__pyx_tuple__120
#define __pyx_tuple__121 __pyx_mstate_global->__pyx_tuple__121
#define __pyx_tuple__123 __pyx_mstate_global->__pyx_tuple__123
#define __pyx_tuple__125 __pyx_mstate_global->__pyx_tuple__125
#define __pyx_tuple__127 __pyx_mstate_global->__pyx_tuple__127
#define __pyx_tuple__128 __pyx_mstate_global->__pyx_tuple__128
#define __pyx_tuple__130 __pyx_mstate_global->__pyx_tuple__130
#define __pyx_tuple__132 __pyx_mstate_global->__pyx_tuple__132
#define __pyx_tuple__134 __pyx_mstate_global->__pyx_tuple__134
#define __pyx_tuple__135 __pyx_mstate_global->__pyx_tuple__135
#define __pyx_tuple__137 __pyx_mstate_global->__pyx_tuple__137
#define __pyx_tuple__138 __pyx_mstate_global->__pyx_tuple__138
#define __pyx_tuple__140 __pyx_mstate_global->__pyx_tuple__140
#define __pyx_tuple__142 __pyx_mstate_global->__pyx_tuple__142
#define __pyx_tuple__145 __pyx_mstate_global->__pyx_tuple__145
#define __pyx_tuple__149 __pyx_mstate_global->__pyx_tuple__149
#define __pyx_tuple__151 __pyx_mstate_global->__pyx_tuple__151
#define __pyx_tuple__153 __pyx_mstate_global->__pyx_tuple__153
#define __pyx_codeobj__29 __pyx_mstate_global->__pyx_codeobj__29
#define __pyx_codeobj__32 __pyx_mstate_global->__pyx_codeobj__32
#define __pyx_codeobj__35 __pyx_mstate_global->__pyx_codeobj__35
#define __pyx_codeobj__37 __pyx_mstate_global->__pyx_codeobj__37
#define __pyx_codeobj__40 __pyx_mstate_global->__pyx_codeobj__40
#define __pyx_codeobj__42 __pyx_mstate_global->__pyx_codeobj__42
#define __pyx_codeobj__44 __pyx_mstate_global->__pyx_codeobj__44
#define __pyx_codeobj__45 __pyx_mstate_global->__pyx_codeobj__45
#define __pyx_codeobj__46 __pyx_mstate_global->__pyx_codeobj__46
#define __pyx_codeobj__47 __pyx_mstate_global->__pyx_codeobj__47
#define __pyx_codeobj__48 __pyx_mstate_global->__pyx_codeobj__48
#define __pyx_codeobj__50 __pyx_mstate_global->__pyx_codeobj__50
#define __pyx_codeobj__52 __pyx_mstate_global->__pyx_codeobj__52
#define __pyx_codeobj__53 __pyx_mstate_global->__pyx_codeobj__53
#define __pyx_codeobj__55 __pyx_mstate_global->__pyx_codeobj__55
#define __pyx_codeobj__58 __pyx_mstate_global->__pyx_codeobj__58
#define __pyx_codeobj__59 __pyx_mstate_global->__pyx_codeobj__59
#define __pyx_codeobj__60 __pyx_mstate_global->__pyx_codeobj__60
#define __pyx_codeobj__61 __pyx_mstate_global->__pyx_codeobj__61
#define __pyx_codeobj__62 __pyx_mstate_global->__pyx_codeobj__62
#define __pyx_codeobj__63 __pyx_mstate_global->__pyx_codeobj__63
#define __pyx_codeobj__65 __pyx_mstate_global->__pyx_codeobj__65
#define __pyx_codeobj__66 __pyx_mstate_global->__pyx_codeobj__66
#define __pyx_codeobj__67 __pyx_mstate_global->__pyx_codeobj__67
#define __pyx_codeobj__70 __pyx_mstate_global->__pyx_codeobj__70
#define __pyx_codeobj__71 __pyx_mstate_global->__pyx_codeobj__71
#define __pyx_codeobj__72 __pyx_mstate_global->__pyx_codeobj__72
#define __pyx_codeobj__73 __pyx_mstate_global->__pyx_codeobj__73
#define __pyx_codeobj__74 __pyx_mstate_global->__pyx_codeobj__74
#define __pyx_codeobj__76 __pyx_mstate_global->__pyx_codeobj__76
#define __pyx_codeobj__78 __pyx_mstate_global->__pyx_codeobj__78
#define __pyx_codeobj__79 __pyx_mstate_global->__pyx_codeobj__79
#define __pyx_codeobj__81 __pyx_mstate_global->__pyx_codeobj__81
#define __pyx_codeobj__84 __pyx_mstate_global->__pyx_codeobj__84
#define __pyx_codeobj__85 __pyx_mstate_global->__pyx_codeobj__85
#define __pyx_codeobj__86 __pyx_mstate_global->__pyx_codeobj__86
#define __pyx_codeobj__87 __pyx_mstate_global->__pyx_codeobj__87
#define __pyx_codeobj__88 __pyx_mstate_global->__pyx_codeobj__88
#define __pyx_codeobj__89 __pyx_mstate_global->__pyx_codeobj__89
#define __pyx_codeobj__90 __pyx_mstate_global->__pyx_codeobj__90
#define __pyx_codeobj__91 __pyx_mstate_global->__pyx_codeobj__91
#define __pyx_codeobj__92 __pyx_mstate_global->__pyx_codeobj__92
#define __pyx_codeobj__94 __pyx_mstate_global->__pyx_codeobj__94
#define __pyx_codeobj__95 __pyx_mstate_global->__pyx_codeobj__95
#define __pyx_codeobj__97 __pyx_mstate_global->__pyx_codeobj__97
#define __pyx_codeobj__99 __pyx_mstate_global->__pyx_codeobj__99
#define __pyx_codeobj__100 __pyx_mstate_global->__pyx_codeobj__100
#define __pyx_codeobj__101 __pyx_mstate_global->__pyx_codeobj__101
#define __pyx_codeobj__103 __pyx_mstate_global->__pyx_codeobj__103
#define __pyx_codeobj__104 __pyx_mstate_global->__pyx_codeobj__104
#define __pyx_codeobj__105 __pyx_mstate_global->__pyx_codeobj__105
#define __pyx_codeobj__106 __pyx_mstate_global->__pyx_codeobj__106
#define __pyx_codeobj__107 __pyx_mstate_global->__pyx_codeobj__107
#define __pyx_codeobj__109 __pyx_mstate_global->__pyx_codeobj__109
#define __pyx_codeobj__112 __pyx_mstate_global->__pyx_codeobj__112
#define __pyx_codeobj__114 __pyx_mstate_global->__pyx_codeobj__114
#define __pyx_codeobj__117 __pyx_mstate_global->__pyx_codeobj__117
#define __pyx_codeobj__119 __pyx_mstate_global->__pyx_codeobj__119
#define __pyx_codeobj__122 __pyx_mstate_global->__pyx_codeobj__122
#define __pyx_codeobj__124 __pyx_mstate_global->__pyx_codeobj__124
#define __pyx_codeobj__126 __pyx_mstate_global->__pyx_codeobj__126
#define __pyx_codeobj__129 __pyx_mstate_global->__pyx_codeobj__129
#define __pyx_codeobj__131 __pyx_mstate_global->__pyx_codeobj__131
#define __pyx_codeobj__133 __pyx_mstate_global->__pyx_codeobj__133
#define __pyx_codeobj__136 __pyx_mstate_global->__pyx_codeobj__136
#define __pyx_codeobj__139 __pyx_mstate_global->__pyx_codeobj__139
#define __pyx_codeobj__141 __pyx_mstate_global->__pyx_codeobj__141
#define __pyx_codeobj__143 __pyx_mstate_global->__pyx_codeobj__143
#define __pyx_codeobj__144 __pyx_mstate_global->__pyx_codeobj__144
#define __pyx_codeobj__146 __pyx_mstate_global->__pyx_codeobj__146
#define __pyx_codeobj__147 __pyx_mstate_global->__pyx_codeobj__147
#define __pyx_codeobj__148 __pyx_mstate_global->__pyx_codeobj__148
#define __pyx_codeobj__150 __pyx_mstate_global->__pyx_codeobj__150
#define __pyx_codeobj__152 __pyx_mstate_global->__pyx_codeobj__152
#define __pyx_codeobj__154 __pyx_mstate_global->__pyx_codeobj__154
/* #### Code section: module_code ### */

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":286
 * 
 *         @property
 *         cdef inline npy_intp itemsize(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             return PyDataType_ELSIZE(self)
 * 
 */

static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self) {
  npy_intp __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":287
 *         @property
 *         cdef inline npy_intp itemsize(self) noexcept nogil:
 *             return PyDataType_ELSIZE(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDataType_ELSIZE(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":286
 * 
 *         @property
 *         cdef inline npy_intp itemsize(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             return PyDataType_ELSIZE(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":290
 * 
 *         @property
 *         cdef inline npy_intp alignment(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             return PyDataType_ALIGNMENT(self)
 * 
 */

static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self) {
  npy_intp __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":291
 *         @property
 *         cdef inline npy_intp alignment(self) noexcept nogil:
 *             return PyDataType_ALIGNMENT(self)             # <<<<<<<<<<<<<<
 * 
 *         # Use fields/names with care as they may be NULL.  You must check
 */
  __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":290
 * 
 *         @property
 *         cdef inline npy_intp alignment(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             return PyDataType_ALIGNMENT(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":296
 *         # for this using PyDataType_HASFIELDS.
 *         @property
 *         cdef inline object fields(self):             # <<<<<<<<<<<<<<
 *             return <object>PyDataType_FIELDS(self)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1;
  __Pyx_RefNannySetupContext("fields", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":297
 *         @property
 *         cdef inline object fields(self):
 *             return <object>PyDataType_FIELDS(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
  __Pyx_INCREF(((PyObject *)__pyx_t_1));
  __pyx_r = ((PyObject *)__pyx_t_1);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":296
 *         # for this using PyDataType_HASFIELDS.
 *         @property
 *         cdef inline object fields(self):             # <<<<<<<<<<<<<<
 *             return <object>PyDataType_FIELDS(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":300
 * 
 *         @property
 *         cdef inline tuple names(self):             # <<<<<<<<<<<<<<
 *             return <tuple>PyDataType_NAMES(self)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1;
  __Pyx_RefNannySetupContext("names", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":301
 *         @property
 *         cdef inline tuple names(self):
 *             return <tuple>PyDataType_NAMES(self)             # <<<<<<<<<<<<<<
 * 
 *         # Use PyDataType_HASSUBARRAY to test whether this field is
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
  __Pyx_INCREF(((PyObject*)__pyx_t_1));
  __pyx_r = ((PyObject*)__pyx_t_1);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":300
 * 
 *         @property
 *         cdef inline tuple names(self):             # <<<<<<<<<<<<<<
 *             return <tuple>PyDataType_NAMES(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":307
 *         # this field via the inline helper method PyDataType_SHAPE.
 *         @property
 *         cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             return PyDataType_SUBARRAY(self)
 * 
 */

static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self) {
  PyArray_ArrayDescr *__pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":308
 *         @property
 *         cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:
 *             return PyDataType_SUBARRAY(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":307
 *         # this field via the inline helper method PyDataType_SHAPE.
 *         @property
 *         cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             return PyDataType_SUBARRAY(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":311
 * 
 *         @property
 *         cdef inline npy_uint64 flags(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The data types flags."""
 *             return PyDataType_FLAGS(self)
 */

static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self) {
  npy_uint64 __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":313
 *         cdef inline npy_uint64 flags(self) noexcept nogil:
 *             """The data types flags."""
 *             return PyDataType_FLAGS(self)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = PyDataType_FLAGS(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":311
 * 
 *         @property
 *         cdef inline npy_uint64 flags(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The data types flags."""
 *             return PyDataType_FLAGS(self)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":323
 * 
 *         @property
 *         cdef inline int numiter(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The number of arrays that need to be broadcast to the same shape."""
 *             return PyArray_MultiIter_NUMITER(self)
 */

static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self) {
  int __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":325
 *         cdef inline int numiter(self) noexcept nogil:
 *             """The number of arrays that need to be broadcast to the same shape."""
 *             return PyArray_MultiIter_NUMITER(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":323
 * 
 *         @property
 *         cdef inline int numiter(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The number of arrays that need to be broadcast to the same shape."""
 *             return PyArray_MultiIter_NUMITER(self)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":328
 * 
 *         @property
 *         cdef inline npy_intp size(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The total broadcasted size."""
 *             return PyArray_MultiIter_SIZE(self)
 */

static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self) {
  npy_intp __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":330
 *         cdef inline npy_intp size(self) noexcept nogil:
 *             """The total broadcasted size."""
 *             return PyArray_MultiIter_SIZE(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":328
 * 
 *         @property
 *         cdef inline npy_intp size(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The total broadcasted size."""
 *             return PyArray_MultiIter_SIZE(self)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":333
 * 
 *         @property
 *         cdef inline npy_intp index(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The current (1-d) index into the broadcasted result."""
 *             return PyArray_MultiIter_INDEX(self)
 */

static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self) {
  npy_intp __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":335
 *         cdef inline npy_intp index(self) noexcept nogil:
 *             """The current (1-d) index into the broadcasted result."""
 *             return PyArray_MultiIter_INDEX(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":333
 * 
 *         @property
 *         cdef inline npy_intp index(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The current (1-d) index into the broadcasted result."""
 *             return PyArray_MultiIter_INDEX(self)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":338
 * 
 *         @property
 *         cdef inline int nd(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The number of dimensions in the broadcasted result."""
 *             return PyArray_MultiIter_NDIM(self)
 */

static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self) {
  int __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":340
 *         cdef inline int nd(self) noexcept nogil:
 *             """The number of dimensions in the broadcasted result."""
 *             return PyArray_MultiIter_NDIM(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":338
 * 
 *         @property
 *         cdef inline int nd(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The number of dimensions in the broadcasted result."""
 *             return PyArray_MultiIter_NDIM(self)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":343
 * 
 *         @property
 *         cdef inline npy_intp* dimensions(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The shape of the broadcasted result."""
 *             return PyArray_MultiIter_DIMS(self)
 */

static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self) {
  npy_intp *__pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":345
 *         cdef inline npy_intp* dimensions(self) noexcept nogil:
 *             """The shape of the broadcasted result."""
 *             return PyArray_MultiIter_DIMS(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":343
 * 
 *         @property
 *         cdef inline npy_intp* dimensions(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The shape of the broadcasted result."""
 *             return PyArray_MultiIter_DIMS(self)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":348
 * 
 *         @property
 *         cdef inline void** iters(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
 *             On return, the iterators are adjusted for broadcasting."""
 */

static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self) {
  void **__pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":351
 *             """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
 *             On return, the iterators are adjusted for broadcasting."""
 *             return PyArray_MultiIter_ITERS(self)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":348
 * 
 *         @property
 *         cdef inline void** iters(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
 *             On return, the iterators are adjusted for broadcasting."""
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":366
 * 
 *         @property
 *         cdef inline PyObject* base(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns a borrowed reference to the object owning the data/memory.
 *             """
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
  PyObject *__pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":369
 *             """Returns a borrowed reference to the object owning the data/memory.
 *             """
 *             return PyArray_BASE(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_BASE(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":366
 * 
 *         @property
 *         cdef inline PyObject* base(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns a borrowed reference to the object owning the data/memory.
 *             """
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":372
 * 
 *         @property
 *         cdef inline dtype descr(self):             # <<<<<<<<<<<<<<
 *             """Returns an owned reference to the dtype of the array.
 *             """
 */

static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
  PyArray_Descr *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyArray_Descr *__pyx_t_1;
  __Pyx_RefNannySetupContext("descr", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":375
 *             """Returns an owned reference to the dtype of the array.
 *             """
 *             return <dtype>PyArray_DESCR(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = PyArray_DESCR(__pyx_v_self);
  __Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
  __pyx_r = ((PyArray_Descr *)__pyx_t_1);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":372
 * 
 *         @property
 *         cdef inline dtype descr(self):             # <<<<<<<<<<<<<<
 *             """Returns an owned reference to the dtype of the array.
 *             """
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":378
 * 
 *         @property
 *         cdef inline int ndim(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns the number of dimensions in the array.
 *             """
 */

static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
  int __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":381
 *             """Returns the number of dimensions in the array.
 *             """
 *             return PyArray_NDIM(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_NDIM(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":378
 * 
 *         @property
 *         cdef inline int ndim(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns the number of dimensions in the array.
 *             """
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":384
 * 
 *         @property
 *         cdef inline npy_intp *shape(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns a pointer to the dimensions/shape of the array.
 *             The number of elements matches the number of dimensions of the array (ndim).
 */

static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
  npy_intp *__pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":389
 *             Can return NULL for 0-dimensional arrays.
 *             """
 *             return PyArray_DIMS(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_DIMS(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":384
 * 
 *         @property
 *         cdef inline npy_intp *shape(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns a pointer to the dimensions/shape of the array.
 *             The number of elements matches the number of dimensions of the array (ndim).
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":392
 * 
 *         @property
 *         cdef inline npy_intp *strides(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns a pointer to the strides of the array.
 *             The number of elements matches the number of dimensions of the array (ndim).
 */

static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
  npy_intp *__pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":396
 *             The number of elements matches the number of dimensions of the array (ndim).
 *             """
 *             return PyArray_STRIDES(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_STRIDES(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":392
 * 
 *         @property
 *         cdef inline npy_intp *strides(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns a pointer to the strides of the array.
 *             The number of elements matches the number of dimensions of the array (ndim).
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":399
 * 
 *         @property
 *         cdef inline npy_intp size(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns the total size (in number of elements) of the array.
 *             """
 */

static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
  npy_intp __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":402
 *             """Returns the total size (in number of elements) of the array.
 *             """
 *             return PyArray_SIZE(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyArray_SIZE(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":399
 * 
 *         @property
 *         cdef inline npy_intp size(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """Returns the total size (in number of elements) of the array.
 *             """
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":405
 * 
 *         @property
 *         cdef inline char* data(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The pointer to the data buffer as a char*.
 *             This is provided for legacy reasons to avoid direct struct field access.
 */

static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
  char *__pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":411
 *             of `PyArray_DATA()` instead, which returns a 'void*'.
 *             """
 *             return PyArray_BYTES(self)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = PyArray_BYTES(__pyx_v_self);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":405
 * 
 *         @property
 *         cdef inline char* data(self) noexcept nogil:             # <<<<<<<<<<<<<<
 *             """The pointer to the data buffer as a char*.
 *             This is provided for legacy reasons to avoid direct struct field access.
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":807
 * ctypedef long double complex clongdouble_t
 * 
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":808
 * 
 * cdef inline object PyArray_MultiIterNew1(a):
 *     return PyArray_MultiIterNew(1, <void*>a)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":807
 * ctypedef long double complex clongdouble_t
 * 
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":810
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":811
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":810
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":813
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":814
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":813
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":816
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":817
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":816
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":819
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":820
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)             # <<<<<<<<<<<<<<
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":819
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":822
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):             # <<<<<<<<<<<<<<
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2;
  __Pyx_RefNannySetupContext("PyDataType_SHAPE", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":823
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):             # <<<<<<<<<<<<<<
 *         return <tuple>d.subarray.shape
 *     else:
 */
  __pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d);
  if (__pyx_t_1) {

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":824
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape             # <<<<<<<<<<<<<<
 *     else:
 *         return ()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_5numpy_5dtype_8subarray_subarray(__pyx_v_d)->shape;
    __Pyx_INCREF(((PyObject*)__pyx_t_2));
    __pyx_r = ((PyObject*)__pyx_t_2);
    goto __pyx_L0;

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":823
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):             # <<<<<<<<<<<<<<
 *         return <tuple>d.subarray.shape
 *     else:
 */
  }

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":826
 *         return <tuple>d.subarray.shape
 *     else:
 *         return ()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_empty_tuple);
    __pyx_r = __pyx_empty_tuple;
    goto __pyx_L0;
  }

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":822
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):             # <<<<<<<<<<<<<<
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1010
 *     int _import_umath() except -1
 * 
 * cdef inline void set_array_base(ndarray arr, object base) except *:             # <<<<<<<<<<<<<<
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)
 */

static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1011
 * 
 * cdef inline void set_array_base(ndarray arr, object base) except *:
 *     Py_INCREF(base) # important to do this before stealing the reference below!             # <<<<<<<<<<<<<<
 *     PyArray_SetBaseObject(arr, base)
 * 
 */
  Py_INCREF(__pyx_v_base);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1012
 * cdef inline void set_array_base(ndarray arr, object base) except *:
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object get_array_base(ndarray arr):
 */
  __pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 1012, __pyx_L1_error)

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1010
 *     int _import_umath() except -1
 * 
 * cdef inline void set_array_base(ndarray arr, object base) except *:             # <<<<<<<<<<<<<<
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("numpy.set_array_base", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1014
 *     PyArray_SetBaseObject(arr, base)
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
  PyObject *__pyx_v_base;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("get_array_base", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1015
 * 
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)             # <<<<<<<<<<<<<<
 *     if base is NULL:
 *         return None
 */
  __pyx_v_base = PyArray_BASE(__pyx_v_arr);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1016
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)
 *     if base is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     return <object>base
 */
  __pyx_t_1 = (__pyx_v_base == NULL);
  if (__pyx_t_1) {

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1017
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 *         return None             # <<<<<<<<<<<<<<
 *     return <object>base
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1016
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)
 *     if base is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     return <object>base
 */
  }

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1018
 *     if base is NULL:
 *         return None
 *     return <object>base             # <<<<<<<<<<<<<<
 * 
 * # Versions of the import_* functions which are more suitable for
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_base));
  __pyx_r = ((PyObject *)__pyx_v_base);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1014
 *     PyArray_SetBaseObject(arr, base)
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1022
 * # Versions of the import_* functions which are more suitable for
 * # Cython code.
 * cdef inline int import_array() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         __pyx_import_array()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("import_array", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1023
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         __pyx_import_array()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1024
 * cdef inline int import_array() except -1:
 *     try:
 *         __pyx_import_array()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy._core.multiarray failed to import")
 */
      __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 1024, __pyx_L3_error)

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1023
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         __pyx_import_array()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1025
 *     try:
 *         __pyx_import_array()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy._core.multiarray failed to import")
 * 
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 1025, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1026
 *         __pyx_import_array()
 *     except Exception:
 *         raise ImportError("numpy._core.multiarray failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_umath() except -1:
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1026, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(1, 1026, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1023
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         __pyx_import_array()
 *     except Exception:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1022
 * # Versions of the import_* functions which are more suitable for
 * # Cython code.
 * cdef inline int import_array() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         __pyx_import_array()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1028
 *         raise ImportError("numpy._core.multiarray failed to import")
 * 
 * cdef inline int import_umath() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("import_umath", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1029
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1030
 * cdef inline int import_umath() except -1:
 *     try:
 *         _import_umath()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy._core.umath failed to import")
 */
      __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 1030, __pyx_L3_error)

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1029
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1031
 *     try:
 *         _import_umath()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy._core.umath failed to import")
 * 
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 1031, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1032
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy._core.umath failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_ufunc() except -1:
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1032, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(1, 1032, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1029
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1028
 *         raise ImportError("numpy._core.multiarray failed to import")
 * 
 * cdef inline int import_umath() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1034
 *         raise ImportError("numpy._core.umath failed to import")
 * 
 * cdef inline int import_ufunc() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("import_ufunc", 1);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1035
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1036
 * cdef inline int import_ufunc() except -1:
 *     try:
 *         _import_umath()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy._core.umath failed to import")
 */
      __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 1036, __pyx_L3_error)

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1035
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1037
 *     try:
 *         _import_umath()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy._core.umath failed to import")
 * 
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 1037, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);

      /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1038
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy._core.umath failed to import")             # <<<<<<<<<<<<<<
 * 
 * 
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1038, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(1, 1038, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;

    /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1035
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1034
 *         raise ImportError("numpy._core.umath failed to import")
 * 
 * cdef inline int import_ufunc() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1041
 * 
 * 
 * cdef inline bint is_timedelta64_object(object obj) noexcept:             # <<<<<<<<<<<<<<
 *     """
 *     Cython equivalent of `isinstance(obj, np.timedelta64)`
 */

static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
  int __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1053
 *     bool
 *     """
 *     return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1041
 * 
 * 
 * cdef inline bint is_timedelta64_object(object obj) noexcept:             # <<<<<<<<<<<<<<
 *     """
 *     Cython equivalent of `isinstance(obj, np.timedelta64)`
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1056
 * 
 * 
 * cdef inline bint is_datetime64_object(object obj) noexcept:             # <<<<<<<<<<<<<<
 *     """
 *     Cython equivalent of `isinstance(obj, np.datetime64)`
 */

static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
  int __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1068
 *     bool
 *     """
 *     return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1056
 * 
 * 
 * cdef inline bint is_datetime64_object(object obj) noexcept:             # <<<<<<<<<<<<<<
 *     """
 *     Cython equivalent of `isinstance(obj, np.datetime64)`
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1071
 * 
 * 
 * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil:             # <<<<<<<<<<<<<<
 *     """
 *     returns the int64 value underlying scalar numpy datetime64 object
 */

static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
  npy_datetime __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1078
 *     also needed.  That can be found using `get_datetime64_unit`.
 *     """
 *     return (<PyDatetimeScalarObject*>obj).obval             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1071
 * 
 * 
 * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil:             # <<<<<<<<<<<<<<
 *     """
 *     returns the int64 value underlying scalar numpy datetime64 object
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1081
 * 
 * 
 * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil:             # <<<<<<<<<<<<<<
 *     """
 *     returns the int64 value underlying scalar numpy timedelta64 object
 */

static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
  npy_timedelta __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1085
 *     returns the int64 value underlying scalar numpy timedelta64 object
 *     """
 *     return (<PyTimedeltaScalarObject*>obj).obval             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1081
 * 
 * 
 * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil:             # <<<<<<<<<<<<<<
 *     """
 *     returns the int64 value underlying scalar numpy timedelta64 object
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1088
 * 
 * 
 * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil:             # <<<<<<<<<<<<<<
 *     """
 *     returns the unit part of the dtype for a numpy datetime64 object.
 */

static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
  NPY_DATETIMEUNIT __pyx_r;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1092
 *     returns the unit part of the dtype for a numpy datetime64 object.
 *     """
 *     return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
  goto __pyx_L0;

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1088
 * 
 * 
 * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil:             # <<<<<<<<<<<<<<
 *     """
 *     returns the unit part of the dtype for a numpy datetime64 object.
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cpython/complex.pxd":19
 * 
 *         @property
 *         cdef inline double real(self) noexcept:             # <<<<<<<<<<<<<<
 *             return self.cval.real
 * 
 */

static CYTHON_INLINE double __pyx_f_7cpython_7complex_7complex_4real_real(PyComplexObject *__pyx_v_self) {
  double __pyx_r;

  /* "cpython/complex.pxd":20
 *         @property
 *         cdef inline double real(self) noexcept:
 *             return self.cval.real             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = __pyx_v_self->cval.real;
  goto __pyx_L0;

  /* "cpython/complex.pxd":19
 * 
 *         @property
 *         cdef inline double real(self) noexcept:             # <<<<<<<<<<<<<<
 *             return self.cval.real
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cpython/complex.pxd":23
 * 
 *         @property
 *         cdef inline double imag(self) noexcept:             # <<<<<<<<<<<<<<
 *             return self.cval.imag
 * 
 */

static CYTHON_INLINE double __pyx_f_7cpython_7complex_7complex_4imag_imag(PyComplexObject *__pyx_v_self) {
  double __pyx_r;

  /* "cpython/complex.pxd":24
 *         @property
 *         cdef inline double imag(self) noexcept:
 *             return self.cval.imag             # <<<<<<<<<<<<<<
 * 
 *     # PyTypeObject PyComplex_Type
 */
  __pyx_r = __pyx_v_self->cval.imag;
  goto __pyx_L0;

  /* "cpython/complex.pxd":23
 * 
 *         @property
 *         cdef inline double imag(self) noexcept:             # <<<<<<<<<<<<<<
 *             return self.cval.imag
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cpython/contextvars.pxd":112
 * 
 * 
 * cdef inline object get_value(var, default_value=None):             # <<<<<<<<<<<<<<
 *     """Return a new reference to the value of the context variable,
 *     or the default value of the context variable,
 */

static CYTHON_INLINE PyObject *__pyx_f_7cpython_11contextvars_get_value(PyObject *__pyx_v_var, struct __pyx_opt_args_7cpython_11contextvars_get_value *__pyx_optional_args) {
  PyObject *__pyx_v_default_value = ((PyObject *)Py_None);
  PyObject *__pyx_v_value;
  PyObject *__pyx_v_pyvalue = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_value", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_default_value = __pyx_optional_args->default_value;
    }
  }

  /* "cpython/contextvars.pxd":117
 *     or None if no such value or default was found.
 *     """
 *     cdef PyObject *value = NULL             # <<<<<<<<<<<<<<
 *     PyContextVar_Get(var, NULL, &value)
 *     if value is NULL:
 */
  __pyx_v_value = NULL;

  /* "cpython/contextvars.pxd":118
 *     """
 *     cdef PyObject *value = NULL
 *     PyContextVar_Get(var, NULL, &value)             # <<<<<<<<<<<<<<
 *     if value is NULL:
 *         # context variable does not have a default
 */
  __pyx_t_1 = PyContextVar_Get(__pyx_v_var, NULL, (&__pyx_v_value)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 118, __pyx_L1_error)

  /* "cpython/contextvars.pxd":119
 *     cdef PyObject *value = NULL
 *     PyContextVar_Get(var, NULL, &value)
 *     if value is NULL:             # <<<<<<<<<<<<<<
 *         # context variable does not have a default
 *         pyvalue = default_value
 */
  __pyx_t_2 = (__pyx_v_value == NULL);
  if (__pyx_t_2) {

    /* "cpython/contextvars.pxd":121
 *     if value is NULL:
 *         # context variable does not have a default
 *         pyvalue = default_value             # <<<<<<<<<<<<<<
 *     else:
 *         # value or default value of context variable
 */
    __Pyx_INCREF(__pyx_v_default_value);
    __pyx_v_pyvalue = __pyx_v_default_value;

    /* "cpython/contextvars.pxd":119
 *     cdef PyObject *value = NULL
 *     PyContextVar_Get(var, NULL, &value)
 *     if value is NULL:             # <<<<<<<<<<<<<<
 *         # context variable does not have a default
 *         pyvalue = default_value
 */
    goto __pyx_L3;
  }

  /* "cpython/contextvars.pxd":124
 *     else:
 *         # value or default value of context variable
 *         pyvalue = <object>value             # <<<<<<<<<<<<<<
 *         Py_XDECREF(value)  # PyContextVar_Get() returned an owned reference as 'PyObject*'
 *     return pyvalue
 */
  /*else*/ {
    __pyx_t_3 = ((PyObject *)__pyx_v_value);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_v_pyvalue = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cpython/contextvars.pxd":125
 *         # value or default value of context variable
 *         pyvalue = <object>value
 *         Py_XDECREF(value)  # PyContextVar_Get() returned an owned reference as 'PyObject*'             # <<<<<<<<<<<<<<
 *     return pyvalue
 * 
 */
    Py_XDECREF(__pyx_v_value);
  }
  __pyx_L3:;

  /* "cpython/contextvars.pxd":126
 *         pyvalue = <object>value
 *         Py_XDECREF(value)  # PyContextVar_Get() returned an owned reference as 'PyObject*'
 *     return pyvalue             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_pyvalue);
  __pyx_r = __pyx_v_pyvalue;
  goto __pyx_L0;

  /* "cpython/contextvars.pxd":112
 * 
 * 
 * cdef inline object get_value(var, default_value=None):             # <<<<<<<<<<<<<<
 *     """Return a new reference to the value of the context variable,
 *     or the default value of the context variable,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cpython.contextvars.get_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pyvalue);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cpython/contextvars.pxd":129
 * 
 * 
 * cdef inline object get_value_no_default(var, default_value=None):             # <<<<<<<<<<<<<<
 *     """Return a new reference to the value of the context variable,
 *     or the provided default value if no such value was found.
 */

static CYTHON_INLINE PyObject *__pyx_f_7cpython_11contextvars_get_value_no_default(PyObject *__pyx_v_var, struct __pyx_opt_args_7cpython_11contextvars_get_value_no_default *__pyx_optional_args) {
  PyObject *__pyx_v_default_value = ((PyObject *)Py_None);
  PyObject *__pyx_v_value;
  PyObject *__pyx_v_pyvalue = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_value_no_default", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_default_value = __pyx_optional_args->default_value;
    }
  }

  /* "cpython/contextvars.pxd":135
 *     Ignores the default value of the context variable, if any.
 *     """
 *     cdef PyObject *value = NULL             # <<<<<<<<<<<<<<
 *     PyContextVar_Get(var, <PyObject*>default_value, &value)
 *     # value of context variable or 'default_value'
 */
  __pyx_v_value = NULL;

  /* "cpython/contextvars.pxd":136
 *     """
 *     cdef PyObject *value = NULL
 *     PyContextVar_Get(var, <PyObject*>default_value, &value)             # <<<<<<<<<<<<<<
 *     # value of context variable or 'default_value'
 *     pyvalue = <object>value
 */
  __pyx_t_1 = PyContextVar_Get(__pyx_v_var, ((PyObject *)__pyx_v_default_value), (&__pyx_v_value)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 136, __pyx_L1_error)

  /* "cpython/contextvars.pxd":138
 *     PyContextVar_Get(var, <PyObject*>default_value, &value)
 *     # value of context variable or 'default_value'
 *     pyvalue = <object>value             # <<<<<<<<<<<<<<
 *     Py_XDECREF(value)  # PyContextVar_Get() returned an owned reference as 'PyObject*'
 *     return pyvalue
 */
  __pyx_t_2 = ((PyObject *)__pyx_v_value);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_v_pyvalue = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cpython/contextvars.pxd":139
 *     # value of context variable or 'default_value'
 *     pyvalue = <object>value
 *     Py_XDECREF(value)  # PyContextVar_Get() returned an owned reference as 'PyObject*'             # <<<<<<<<<<<<<<
 *     return pyvalue
 */
  Py_XDECREF(__pyx_v_value);

  /* "cpython/contextvars.pxd":140
 *     pyvalue = <object>value
 *     Py_XDECREF(value)  # PyContextVar_Get() returned an owned reference as 'PyObject*'
 *     return pyvalue             # <<<<<<<<<<<<<<
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_pyvalue);
  __pyx_r = __pyx_v_pyvalue;
  goto __pyx_L0;

  /* "cpython/contextvars.pxd":129
 * 
 * 
 * cdef inline object get_value_no_default(var, default_value=None):             # <<<<<<<<<<<<<<
 *     """Return a new reference to the value of the context variable,
 *     or the provided default value if no such value was found.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cpython.contextvars.get_value_no_default", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pyvalue);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":72
 *     ctypedef extern class datetime.date[object PyDateTime_Date]:
 *         @property
 *         cdef inline int year(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_YEAR(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4date_4year_year(PyDateTime_Date *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":73
 *         @property
 *         cdef inline int year(self) noexcept:
 *             return PyDateTime_GET_YEAR(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_GET_YEAR(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":72
 *     ctypedef extern class datetime.date[object PyDateTime_Date]:
 *         @property
 *         cdef inline int year(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_YEAR(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":76
 * 
 *         @property
 *         cdef inline int month(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_MONTH(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4date_5month_month(PyDateTime_Date *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":77
 *         @property
 *         cdef inline int month(self) noexcept:
 *             return PyDateTime_GET_MONTH(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_GET_MONTH(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":76
 * 
 *         @property
 *         cdef inline int month(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_MONTH(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":80
 * 
 *         @property
 *         cdef inline int day(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_DAY(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4date_3day_day(PyDateTime_Date *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":81
 *         @property
 *         cdef inline int day(self) noexcept:
 *             return PyDateTime_GET_DAY(self)             # <<<<<<<<<<<<<<
 * 
 *     ctypedef extern class datetime.time[object PyDateTime_Time]:
 */
  __pyx_r = PyDateTime_GET_DAY(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":80
 * 
 *         @property
 *         cdef inline int day(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_DAY(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":85
 *     ctypedef extern class datetime.time[object PyDateTime_Time]:
 *         @property
 *         cdef inline int hour(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_TIME_GET_HOUR(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_4hour_hour(PyDateTime_Time *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":86
 *         @property
 *         cdef inline int hour(self) noexcept:
 *             return PyDateTime_TIME_GET_HOUR(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_TIME_GET_HOUR(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":85
 *     ctypedef extern class datetime.time[object PyDateTime_Time]:
 *         @property
 *         cdef inline int hour(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_TIME_GET_HOUR(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":89
 * 
 *         @property
 *         cdef inline int minute(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_TIME_GET_MINUTE(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_6minute_minute(PyDateTime_Time *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":90
 *         @property
 *         cdef inline int minute(self) noexcept:
 *             return PyDateTime_TIME_GET_MINUTE(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_TIME_GET_MINUTE(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":89
 * 
 *         @property
 *         cdef inline int minute(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_TIME_GET_MINUTE(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":93
 * 
 *         @property
 *         cdef inline int second(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_TIME_GET_SECOND(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_6second_second(PyDateTime_Time *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":94
 *         @property
 *         cdef inline int second(self) noexcept:
 *             return PyDateTime_TIME_GET_SECOND(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_TIME_GET_SECOND(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":93
 * 
 *         @property
 *         cdef inline int second(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_TIME_GET_SECOND(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":97
 * 
 *         @property
 *         cdef inline int microsecond(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_TIME_GET_MICROSECOND(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_11microsecond_microsecond(PyDateTime_Time *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":98
 *         @property
 *         cdef inline int microsecond(self) noexcept:
 *             return PyDateTime_TIME_GET_MICROSECOND(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_TIME_GET_MICROSECOND(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":97
 * 
 *         @property
 *         cdef inline int microsecond(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_TIME_GET_MICROSECOND(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":101
 * 
 *         @property
 *         cdef inline object tzinfo(self):             # <<<<<<<<<<<<<<
 *             return <object>PyDateTime_TIME_GET_TZINFO(self)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_7cpython_8datetime_4time_6tzinfo_tzinfo(PyDateTime_Time *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1;
  __Pyx_RefNannySetupContext("tzinfo", 1);

  /* "datetime.pxd":102
 *         @property
 *         cdef inline object tzinfo(self):
 *             return <object>PyDateTime_TIME_GET_TZINFO(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyDateTime_TIME_GET_TZINFO(((PyObject *)__pyx_v_self));
  __Pyx_INCREF(((PyObject *)__pyx_t_1));
  __pyx_r = ((PyObject *)__pyx_t_1);
  goto __pyx_L0;

  /* "datetime.pxd":101
 * 
 *         @property
 *         cdef inline object tzinfo(self):             # <<<<<<<<<<<<<<
 *             return <object>PyDateTime_TIME_GET_TZINFO(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":105
 * 
 *         @property
 *         cdef inline int fold(self) noexcept:             # <<<<<<<<<<<<<<
 *             # For Python < 3.6 this returns 0 no matter what
 *             return PyDateTime_TIME_GET_FOLD(self)
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_4time_4fold_fold(PyDateTime_Time *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":107
 *         cdef inline int fold(self) noexcept:
 *             # For Python < 3.6 this returns 0 no matter what
 *             return PyDateTime_TIME_GET_FOLD(self)             # <<<<<<<<<<<<<<
 * 
 *     ctypedef extern class datetime.datetime[object PyDateTime_DateTime]:
 */
  __pyx_r = PyDateTime_TIME_GET_FOLD(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":105
 * 
 *         @property
 *         cdef inline int fold(self) noexcept:             # <<<<<<<<<<<<<<
 *             # For Python < 3.6 this returns 0 no matter what
 *             return PyDateTime_TIME_GET_FOLD(self)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":111
 *     ctypedef extern class datetime.datetime[object PyDateTime_DateTime]:
 *         @property
 *         cdef inline int year(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_YEAR(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_4year_year(PyDateTime_DateTime *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":112
 *         @property
 *         cdef inline int year(self) noexcept:
 *             return PyDateTime_GET_YEAR(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_GET_YEAR(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":111
 *     ctypedef extern class datetime.datetime[object PyDateTime_DateTime]:
 *         @property
 *         cdef inline int year(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_YEAR(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":115
 * 
 *         @property
 *         cdef inline int month(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_MONTH(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_5month_month(PyDateTime_DateTime *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":116
 *         @property
 *         cdef inline int month(self) noexcept:
 *             return PyDateTime_GET_MONTH(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_GET_MONTH(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":115
 * 
 *         @property
 *         cdef inline int month(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_MONTH(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":119
 * 
 *         @property
 *         cdef inline int day(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_DAY(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_3day_day(PyDateTime_DateTime *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":120
 *         @property
 *         cdef inline int day(self) noexcept:
 *             return PyDateTime_GET_DAY(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_GET_DAY(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":119
 * 
 *         @property
 *         cdef inline int day(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_GET_DAY(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":123
 * 
 *         @property
 *         cdef inline int hour(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DATE_GET_HOUR(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_4hour_hour(PyDateTime_DateTime *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":124
 *         @property
 *         cdef inline int hour(self) noexcept:
 *             return PyDateTime_DATE_GET_HOUR(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_DATE_GET_HOUR(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":123
 * 
 *         @property
 *         cdef inline int hour(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DATE_GET_HOUR(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":127
 * 
 *         @property
 *         cdef inline int minute(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DATE_GET_MINUTE(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_6minute_minute(PyDateTime_DateTime *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":128
 *         @property
 *         cdef inline int minute(self) noexcept:
 *             return PyDateTime_DATE_GET_MINUTE(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_DATE_GET_MINUTE(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":127
 * 
 *         @property
 *         cdef inline int minute(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DATE_GET_MINUTE(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":131
 * 
 *         @property
 *         cdef inline int second(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DATE_GET_SECOND(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_6second_second(PyDateTime_DateTime *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":132
 *         @property
 *         cdef inline int second(self) noexcept:
 *             return PyDateTime_DATE_GET_SECOND(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_DATE_GET_SECOND(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":131
 * 
 *         @property
 *         cdef inline int second(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DATE_GET_SECOND(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":135
 * 
 *         @property
 *         cdef inline int microsecond(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DATE_GET_MICROSECOND(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_11microsecond_microsecond(PyDateTime_DateTime *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":136
 *         @property
 *         cdef inline int microsecond(self) noexcept:
 *             return PyDateTime_DATE_GET_MICROSECOND(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_DATE_GET_MICROSECOND(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":135
 * 
 *         @property
 *         cdef inline int microsecond(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DATE_GET_MICROSECOND(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":139
 * 
 *         @property
 *         cdef inline object tzinfo(self):             # <<<<<<<<<<<<<<
 *             return <object>PyDateTime_DATE_GET_TZINFO(self)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_7cpython_8datetime_8datetime_6tzinfo_tzinfo(PyDateTime_DateTime *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1;
  __Pyx_RefNannySetupContext("tzinfo", 1);

  /* "datetime.pxd":140
 *         @property
 *         cdef inline object tzinfo(self):
 *             return <object>PyDateTime_DATE_GET_TZINFO(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyDateTime_DATE_GET_TZINFO(((PyObject *)__pyx_v_self));
  __Pyx_INCREF(((PyObject *)__pyx_t_1));
  __pyx_r = ((PyObject *)__pyx_t_1);
  goto __pyx_L0;

  /* "datetime.pxd":139
 * 
 *         @property
 *         cdef inline object tzinfo(self):             # <<<<<<<<<<<<<<
 *             return <object>PyDateTime_DATE_GET_TZINFO(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":143
 * 
 *         @property
 *         cdef inline int fold(self) noexcept:             # <<<<<<<<<<<<<<
 *             # For Python < 3.6 this returns 0 no matter what
 *             return PyDateTime_DATE_GET_FOLD(self)
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_8datetime_4fold_fold(PyDateTime_DateTime *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":145
 *         cdef inline int fold(self) noexcept:
 *             # For Python < 3.6 this returns 0 no matter what
 *             return PyDateTime_DATE_GET_FOLD(self)             # <<<<<<<<<<<<<<
 * 
 *     ctypedef extern class datetime.timedelta[object PyDateTime_Delta]:
 */
  __pyx_r = PyDateTime_DATE_GET_FOLD(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":143
 * 
 *         @property
 *         cdef inline int fold(self) noexcept:             # <<<<<<<<<<<<<<
 *             # For Python < 3.6 this returns 0 no matter what
 *             return PyDateTime_DATE_GET_FOLD(self)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":149
 *     ctypedef extern class datetime.timedelta[object PyDateTime_Delta]:
 *         @property
 *         cdef inline int day(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DELTA_GET_DAYS(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_9timedelta_3day_day(PyDateTime_Delta *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":150
 *         @property
 *         cdef inline int day(self) noexcept:
 *             return PyDateTime_DELTA_GET_DAYS(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_DELTA_GET_DAYS(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":149
 *     ctypedef extern class datetime.timedelta[object PyDateTime_Delta]:
 *         @property
 *         cdef inline int day(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DELTA_GET_DAYS(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":153
 * 
 *         @property
 *         cdef inline int second(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DELTA_GET_SECONDS(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_9timedelta_6second_second(PyDateTime_Delta *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":154
 *         @property
 *         cdef inline int second(self) noexcept:
 *             return PyDateTime_DELTA_GET_SECONDS(self)             # <<<<<<<<<<<<<<
 * 
 *         @property
 */
  __pyx_r = PyDateTime_DELTA_GET_SECONDS(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":153
 * 
 *         @property
 *         cdef inline int second(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DELTA_GET_SECONDS(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":157
 * 
 *         @property
 *         cdef inline int microsecond(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DELTA_GET_MICROSECONDS(self)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_9timedelta_11microsecond_microsecond(PyDateTime_Delta *__pyx_v_self) {
  int __pyx_r;

  /* "datetime.pxd":158
 *         @property
 *         cdef inline int microsecond(self) noexcept:
 *             return PyDateTime_DELTA_GET_MICROSECONDS(self)             # <<<<<<<<<<<<<<
 * 
 *     ctypedef extern class datetime.tzinfo[object PyDateTime_TZInfo]:
 */
  __pyx_r = PyDateTime_DELTA_GET_MICROSECONDS(((PyObject *)__pyx_v_self));
  goto __pyx_L0;

  /* "datetime.pxd":157
 * 
 *         @property
 *         cdef inline int microsecond(self) noexcept:             # <<<<<<<<<<<<<<
 *             return PyDateTime_DELTA_GET_MICROSECONDS(self)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":282
 * # Datetime C API initialization function.
 * # You have to call it before any usage of DateTime CAPI functions.
 * cdef inline void import_datetime() noexcept:             # <<<<<<<<<<<<<<
 *     PyDateTime_IMPORT
 * 
 */

static CYTHON_INLINE void __pyx_f_7cpython_8datetime_import_datetime(void) {

  /* "datetime.pxd":283
 * # You have to call it before any usage of DateTime CAPI functions.
 * cdef inline void import_datetime() noexcept:
 *     PyDateTime_IMPORT             # <<<<<<<<<<<<<<
 * 
 * # Create date object using DateTime CAPI factory function.
 */
  (void)(PyDateTime_IMPORT);

  /* "datetime.pxd":282
 * # Datetime C API initialization function.
 * # You have to call it before any usage of DateTime CAPI functions.
 * cdef inline void import_datetime() noexcept:             # <<<<<<<<<<<<<<
 *     PyDateTime_IMPORT
 * 
 */

  /* function exit code */
}

/* "datetime.pxd":287
 * # Create date object using DateTime CAPI factory function.
 * # Note, there are no range checks for any of the arguments.
 * cdef inline date date_new(int year, int month, int day):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.Date_FromDate(year, month, day, PyDateTimeAPI.DateType)
 * 
 */

static CYTHON_INLINE PyDateTime_Date *__pyx_f_7cpython_8datetime_date_new(int __pyx_v_year, int __pyx_v_month, int __pyx_v_day) {
  PyDateTime_Date *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("date_new", 1);

  /* "datetime.pxd":288
 * # Note, there are no range checks for any of the arguments.
 * cdef inline date date_new(int year, int month, int day):
 *     return PyDateTimeAPI.Date_FromDate(year, month, day, PyDateTimeAPI.DateType)             # <<<<<<<<<<<<<<
 * 
 * # Create time object using DateTime CAPI factory function
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)PyDateTimeAPI->Date_FromDate(__pyx_v_year, __pyx_v_month, __pyx_v_day, PyDateTimeAPI->DateType)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((PyDateTime_Date *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "datetime.pxd":287
 * # Create date object using DateTime CAPI factory function.
 * # Note, there are no range checks for any of the arguments.
 * cdef inline date date_new(int year, int month, int day):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.Date_FromDate(year, month, day, PyDateTimeAPI.DateType)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cpython.datetime.date_new", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":292
 * # Create time object using DateTime CAPI factory function
 * # Note, there are no range checks for any of the arguments.
 * cdef inline time time_new(int hour, int minute, int second, int microsecond, object tz, int fold=0):             # <<<<<<<<<<<<<<
 *     return __Pyx_DateTime_TimeWithFold(hour, minute, second, microsecond, tz, fold)
 * 
 */

static CYTHON_INLINE PyDateTime_Time *__pyx_f_7cpython_8datetime_time_new(int __pyx_v_hour, int __pyx_v_minute, int __pyx_v_second, int __pyx_v_microsecond, PyObject *__pyx_v_tz, struct __pyx_opt_args_7cpython_8datetime_time_new *__pyx_optional_args) {
  int __pyx_v_fold = ((int)0);
  PyDateTime_Time *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("time_new", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_fold = __pyx_optional_args->fold;
    }
  }

  /* "datetime.pxd":293
 * # Note, there are no range checks for any of the arguments.
 * cdef inline time time_new(int hour, int minute, int second, int microsecond, object tz, int fold=0):
 *     return __Pyx_DateTime_TimeWithFold(hour, minute, second, microsecond, tz, fold)             # <<<<<<<<<<<<<<
 * 
 * # Create datetime object using DateTime CAPI factory function.
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__Pyx_DateTime_TimeWithFold(__pyx_v_hour, __pyx_v_minute, __pyx_v_second, __pyx_v_microsecond, __pyx_v_tz, __pyx_v_fold)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7cpython_8datetime_time))))) __PYX_ERR(3, 293, __pyx_L1_error)
  __pyx_r = ((PyDateTime_Time *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "datetime.pxd":292
 * # Create time object using DateTime CAPI factory function
 * # Note, there are no range checks for any of the arguments.
 * cdef inline time time_new(int hour, int minute, int second, int microsecond, object tz, int fold=0):             # <<<<<<<<<<<<<<
 *     return __Pyx_DateTime_TimeWithFold(hour, minute, second, microsecond, tz, fold)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cpython.datetime.time_new", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":297
 * # Create datetime object using DateTime CAPI factory function.
 * # Note, there are no range checks for any of the arguments.
 * cdef inline datetime datetime_new(int year, int month, int day, int hour, int minute, int second, int microsecond, object tz, int fold=0):             # <<<<<<<<<<<<<<
 *     return __Pyx_DateTime_DateTimeWithFold(year, month, day, hour, minute, second, microsecond, tz, fold)
 * 
 */

static CYTHON_INLINE PyDateTime_DateTime *__pyx_f_7cpython_8datetime_datetime_new(int __pyx_v_year, int __pyx_v_month, int __pyx_v_day, int __pyx_v_hour, int __pyx_v_minute, int __pyx_v_second, int __pyx_v_microsecond, PyObject *__pyx_v_tz, struct __pyx_opt_args_7cpython_8datetime_datetime_new *__pyx_optional_args) {
  int __pyx_v_fold = ((int)0);
  PyDateTime_DateTime *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("datetime_new", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_fold = __pyx_optional_args->fold;
    }
  }

  /* "datetime.pxd":298
 * # Note, there are no range checks for any of the arguments.
 * cdef inline datetime datetime_new(int year, int month, int day, int hour, int minute, int second, int microsecond, object tz, int fold=0):
 *     return __Pyx_DateTime_DateTimeWithFold(year, month, day, hour, minute, second, microsecond, tz, fold)             # <<<<<<<<<<<<<<
 * 
 * # Create timedelta object using DateTime CAPI factory function.
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__Pyx_DateTime_DateTimeWithFold(__pyx_v_year, __pyx_v_month, __pyx_v_day, __pyx_v_hour, __pyx_v_minute, __pyx_v_second, __pyx_v_microsecond, __pyx_v_tz, __pyx_v_fold)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((PyDateTime_DateTime *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "datetime.pxd":297
 * # Create datetime object using DateTime CAPI factory function.
 * # Note, there are no range checks for any of the arguments.
 * cdef inline datetime datetime_new(int year, int month, int day, int hour, int minute, int second, int microsecond, object tz, int fold=0):             # <<<<<<<<<<<<<<
 *     return __Pyx_DateTime_DateTimeWithFold(year, month, day, hour, minute, second, microsecond, tz, fold)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cpython.datetime.datetime_new", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":302
 * # Create timedelta object using DateTime CAPI factory function.
 * # Note, there are no range checks for any of the arguments.
 * cdef inline timedelta timedelta_new(int days, int seconds, int useconds):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.Delta_FromDelta(days, seconds, useconds, 1, PyDateTimeAPI.DeltaType)
 * 
 */

static CYTHON_INLINE PyDateTime_Delta *__pyx_f_7cpython_8datetime_timedelta_new(int __pyx_v_days, int __pyx_v_seconds, int __pyx_v_useconds) {
  PyDateTime_Delta *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("timedelta_new", 1);

  /* "datetime.pxd":303
 * # Note, there are no range checks for any of the arguments.
 * cdef inline timedelta timedelta_new(int days, int seconds, int useconds):
 *     return PyDateTimeAPI.Delta_FromDelta(days, seconds, useconds, 1, PyDateTimeAPI.DeltaType)             # <<<<<<<<<<<<<<
 * 
 * # Create timedelta object using DateTime CAPI factory function.
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)PyDateTimeAPI->Delta_FromDelta(__pyx_v_days, __pyx_v_seconds, __pyx_v_useconds, 1, PyDateTimeAPI->DeltaType)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((PyDateTime_Delta *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "datetime.pxd":302
 * # Create timedelta object using DateTime CAPI factory function.
 * # Note, there are no range checks for any of the arguments.
 * cdef inline timedelta timedelta_new(int days, int seconds, int useconds):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.Delta_FromDelta(days, seconds, useconds, 1, PyDateTimeAPI.DeltaType)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cpython.datetime.timedelta_new", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":306
 * 
 * # Create timedelta object using DateTime CAPI factory function.
 * cdef inline object timezone_new(object offset, object name=None):             # <<<<<<<<<<<<<<
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')
 */

static CYTHON_INLINE PyObject *__pyx_f_7cpython_8datetime_timezone_new(PyObject *__pyx_v_offset, struct __pyx_opt_args_7cpython_8datetime_timezone_new *__pyx_optional_args) {
  PyObject *__pyx_v_name = ((PyObject *)Py_None);
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("timezone_new", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_name = __pyx_optional_args->name;
    }
  }

  /* "datetime.pxd":307
 * # Create timedelta object using DateTime CAPI factory function.
 * cdef inline object timezone_new(object offset, object name=None):
 *     if PY_VERSION_HEX < 0x030700b1:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Time zones are not available from the C-API.')
 *     return __Pyx_TimeZone_FromOffsetAndName(offset, <PyObject*>name if name is not None else NULL)
 */
  __pyx_t_1 = (PY_VERSION_HEX < 0x030700b1);
  if (unlikely(__pyx_t_1)) {

    /* "datetime.pxd":308
 * cdef inline object timezone_new(object offset, object name=None):
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')             # <<<<<<<<<<<<<<
 *     return __Pyx_TimeZone_FromOffsetAndName(offset, <PyObject*>name if name is not None else NULL)
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(3, 308, __pyx_L1_error)

    /* "datetime.pxd":307
 * # Create timedelta object using DateTime CAPI factory function.
 * cdef inline object timezone_new(object offset, object name=None):
 *     if PY_VERSION_HEX < 0x030700b1:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Time zones are not available from the C-API.')
 *     return __Pyx_TimeZone_FromOffsetAndName(offset, <PyObject*>name if name is not None else NULL)
 */
  }

  /* "datetime.pxd":309
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')
 *     return __Pyx_TimeZone_FromOffsetAndName(offset, <PyObject*>name if name is not None else NULL)             # <<<<<<<<<<<<<<
 * 
 * # Create datetime object using DB API constructor.
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = (__pyx_v_name != Py_None);
  if (__pyx_t_1) {
    __pyx_t_3 = ((PyObject *)__pyx_v_name);
  } else {
    __pyx_t_3 = NULL;
  }
  __pyx_t_2 = __Pyx_TimeZone_FromOffsetAndName(__pyx_v_offset, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "datetime.pxd":306
 * 
 * # Create timedelta object using DateTime CAPI factory function.
 * cdef inline object timezone_new(object offset, object name=None):             # <<<<<<<<<<<<<<
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cpython.datetime.timezone_new", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":312
 * 
 * # Create datetime object using DB API constructor.
 * cdef inline datetime datetime_from_timestamp(timestamp, tz=None):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.DateTime_FromTimestamp(
 *         <PyObject*>PyDateTimeAPI.DateTimeType, (timestamp, tz) if tz is not None else (timestamp,), NULL)
 */

static CYTHON_INLINE PyDateTime_DateTime *__pyx_f_7cpython_8datetime_datetime_from_timestamp(PyObject *__pyx_v_timestamp, struct __pyx_opt_args_7cpython_8datetime_datetime_from_timestamp *__pyx_optional_args) {
  PyObject *__pyx_v_tz = ((PyObject *)Py_None);
  PyDateTime_DateTime *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("datetime_from_timestamp", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_tz = __pyx_optional_args->tz;
    }
  }

  /* "datetime.pxd":313
 * # Create datetime object using DB API constructor.
 * cdef inline datetime datetime_from_timestamp(timestamp, tz=None):
 *     return PyDateTimeAPI.DateTime_FromTimestamp(             # <<<<<<<<<<<<<<
 *         <PyObject*>PyDateTimeAPI.DateTimeType, (timestamp, tz) if tz is not None else (timestamp,), NULL)
 * 
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);

  /* "datetime.pxd":314
 * cdef inline datetime datetime_from_timestamp(timestamp, tz=None):
 *     return PyDateTimeAPI.DateTime_FromTimestamp(
 *         <PyObject*>PyDateTimeAPI.DateTimeType, (timestamp, tz) if tz is not None else (timestamp,), NULL)             # <<<<<<<<<<<<<<
 * 
 * # Create date object using DB API constructor.
 */
  __pyx_t_2 = (__pyx_v_tz != Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 314, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_timestamp);
    __Pyx_GIVEREF(__pyx_v_timestamp);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_timestamp)) __PYX_ERR(3, 314, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_tz);
    __Pyx_GIVEREF(__pyx_v_tz);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_tz)) __PYX_ERR(3, 314, __pyx_L1_error);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 314, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_timestamp);
    __Pyx_GIVEREF(__pyx_v_timestamp);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_timestamp)) __PYX_ERR(3, 314, __pyx_L1_error);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  }

  /* "datetime.pxd":313
 * # Create datetime object using DB API constructor.
 * cdef inline datetime datetime_from_timestamp(timestamp, tz=None):
 *     return PyDateTimeAPI.DateTime_FromTimestamp(             # <<<<<<<<<<<<<<
 *         <PyObject*>PyDateTimeAPI.DateTimeType, (timestamp, tz) if tz is not None else (timestamp,), NULL)
 * 
 */
  __pyx_t_3 = ((PyObject *)PyDateTimeAPI->DateTime_FromTimestamp(((PyObject *)PyDateTimeAPI->DateTimeType), __pyx_t_1, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((PyDateTime_DateTime *)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "datetime.pxd":312
 * 
 * # Create datetime object using DB API constructor.
 * cdef inline datetime datetime_from_timestamp(timestamp, tz=None):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.DateTime_FromTimestamp(
 *         <PyObject*>PyDateTimeAPI.DateTimeType, (timestamp, tz) if tz is not None else (timestamp,), NULL)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cpython.datetime.datetime_from_timestamp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":317
 * 
 * # Create date object using DB API constructor.
 * cdef inline date date_from_timestamp(timestamp):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.Date_FromTimestamp(<PyObject*>PyDateTimeAPI.DateType, (timestamp,))
 * 
 */

static CYTHON_INLINE PyDateTime_Date *__pyx_f_7cpython_8datetime_date_from_timestamp(PyObject *__pyx_v_timestamp) {
  PyDateTime_Date *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("date_from_timestamp", 1);

  /* "datetime.pxd":318
 * # Create date object using DB API constructor.
 * cdef inline date date_from_timestamp(timestamp):
 *     return PyDateTimeAPI.Date_FromTimestamp(<PyObject*>PyDateTimeAPI.DateType, (timestamp,))             # <<<<<<<<<<<<<<
 * 
 * # More recognizable getters for date/time/datetime/timedelta.
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_timestamp);
  __Pyx_GIVEREF(__pyx_v_timestamp);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_timestamp)) __PYX_ERR(3, 318, __pyx_L1_error);
  __pyx_t_2 = ((PyObject *)PyDateTimeAPI->Date_FromTimestamp(((PyObject *)PyDateTimeAPI->DateType), __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((PyDateTime_Date *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "datetime.pxd":317
 * 
 * # Create date object using DB API constructor.
 * cdef inline date date_from_timestamp(timestamp):             # <<<<<<<<<<<<<<
 *     return PyDateTimeAPI.Date_FromTimestamp(<PyObject*>PyDateTimeAPI.DateType, (timestamp,))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cpython.datetime.date_from_timestamp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":326
 * 
 * # Get UTC singleton
 * cdef inline object get_utc():             # <<<<<<<<<<<<<<
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')
 */

static CYTHON_INLINE PyObject *__pyx_f_7cpython_8datetime_get_utc(void) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_utc", 1);

  /* "datetime.pxd":327
 * # Get UTC singleton
 * cdef inline object get_utc():
 *     if PY_VERSION_HEX < 0x030700b1:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Time zones are not available from the C-API.')
 *     return <object>__Pyx_TimeZone_UTC
 */
  __pyx_t_1 = (PY_VERSION_HEX < 0x030700b1);
  if (unlikely(__pyx_t_1)) {

    /* "datetime.pxd":328
 * cdef inline object get_utc():
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')             # <<<<<<<<<<<<<<
 *     return <object>__Pyx_TimeZone_UTC
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(3, 328, __pyx_L1_error)

    /* "datetime.pxd":327
 * # Get UTC singleton
 * cdef inline object get_utc():
 *     if PY_VERSION_HEX < 0x030700b1:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Time zones are not available from the C-API.')
 *     return <object>__Pyx_TimeZone_UTC
 */
  }

  /* "datetime.pxd":329
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')
 *     return <object>__Pyx_TimeZone_UTC             # <<<<<<<<<<<<<<
 * 
 * # Get tzinfo of time
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__Pyx_TimeZone_UTC));
  __pyx_r = ((PyObject *)__Pyx_TimeZone_UTC);
  goto __pyx_L0;

  /* "datetime.pxd":326
 * 
 * # Get UTC singleton
 * cdef inline object get_utc():             # <<<<<<<<<<<<<<
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cpython.datetime.get_utc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":332
 * 
 * # Get tzinfo of time
 * cdef inline object time_tzinfo(object o):             # <<<<<<<<<<<<<<
 *     return <object>PyDateTime_TIME_GET_TZINFO(o)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_7cpython_8datetime_time_tzinfo(PyObject *__pyx_v_o) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1;
  __Pyx_RefNannySetupContext("time_tzinfo", 1);

  /* "datetime.pxd":333
 * # Get tzinfo of time
 * cdef inline object time_tzinfo(object o):
 *     return <object>PyDateTime_TIME_GET_TZINFO(o)             # <<<<<<<<<<<<<<
 * 
 * # Get tzinfo of datetime
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyDateTime_TIME_GET_TZINFO(__pyx_v_o);
  __Pyx_INCREF(((PyObject *)__pyx_t_1));
  __pyx_r = ((PyObject *)__pyx_t_1);
  goto __pyx_L0;

  /* "datetime.pxd":332
 * 
 * # Get tzinfo of time
 * cdef inline object time_tzinfo(object o):             # <<<<<<<<<<<<<<
 *     return <object>PyDateTime_TIME_GET_TZINFO(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":336
 * 
 * # Get tzinfo of datetime
 * cdef inline object datetime_tzinfo(object o):             # <<<<<<<<<<<<<<
 *     return <object>PyDateTime_DATE_GET_TZINFO(o)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_7cpython_8datetime_datetime_tzinfo(PyObject *__pyx_v_o) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1;
  __Pyx_RefNannySetupContext("datetime_tzinfo", 1);

  /* "datetime.pxd":337
 * # Get tzinfo of datetime
 * cdef inline object datetime_tzinfo(object o):
 *     return <object>PyDateTime_DATE_GET_TZINFO(o)             # <<<<<<<<<<<<<<
 * 
 * # Get year of date
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyDateTime_DATE_GET_TZINFO(__pyx_v_o);
  __Pyx_INCREF(((PyObject *)__pyx_t_1));
  __pyx_r = ((PyObject *)__pyx_t_1);
  goto __pyx_L0;

  /* "datetime.pxd":336
 * 
 * # Get tzinfo of datetime
 * cdef inline object datetime_tzinfo(object o):             # <<<<<<<<<<<<<<
 *     return <object>PyDateTime_DATE_GET_TZINFO(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "datetime.pxd":340
 * 
 * # Get year of date
 * cdef inline int date_year(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_YEAR(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_date_year(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":341
 * # Get year of date
 * cdef inline int date_year(object o) noexcept:
 *     return PyDateTime_GET_YEAR(o)             # <<<<<<<<<<<<<<
 * 
 * # Get month of date
 */
  __pyx_r = PyDateTime_GET_YEAR(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":340
 * 
 * # Get year of date
 * cdef inline int date_year(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_YEAR(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":344
 * 
 * # Get month of date
 * cdef inline int date_month(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_MONTH(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_date_month(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":345
 * # Get month of date
 * cdef inline int date_month(object o) noexcept:
 *     return PyDateTime_GET_MONTH(o)             # <<<<<<<<<<<<<<
 * 
 * # Get day of date
 */
  __pyx_r = PyDateTime_GET_MONTH(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":344
 * 
 * # Get month of date
 * cdef inline int date_month(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_MONTH(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":348
 * 
 * # Get day of date
 * cdef inline int date_day(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_DAY(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_date_day(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":349
 * # Get day of date
 * cdef inline int date_day(object o) noexcept:
 *     return PyDateTime_GET_DAY(o)             # <<<<<<<<<<<<<<
 * 
 * # Get year of datetime
 */
  __pyx_r = PyDateTime_GET_DAY(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":348
 * 
 * # Get day of date
 * cdef inline int date_day(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_DAY(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":352
 * 
 * # Get year of datetime
 * cdef inline int datetime_year(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_YEAR(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_datetime_year(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":353
 * # Get year of datetime
 * cdef inline int datetime_year(object o) noexcept:
 *     return PyDateTime_GET_YEAR(o)             # <<<<<<<<<<<<<<
 * 
 * # Get month of datetime
 */
  __pyx_r = PyDateTime_GET_YEAR(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":352
 * 
 * # Get year of datetime
 * cdef inline int datetime_year(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_YEAR(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":356
 * 
 * # Get month of datetime
 * cdef inline int datetime_month(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_MONTH(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_datetime_month(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":357
 * # Get month of datetime
 * cdef inline int datetime_month(object o) noexcept:
 *     return PyDateTime_GET_MONTH(o)             # <<<<<<<<<<<<<<
 * 
 * # Get day of datetime
 */
  __pyx_r = PyDateTime_GET_MONTH(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":356
 * 
 * # Get month of datetime
 * cdef inline int datetime_month(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_MONTH(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":360
 * 
 * # Get day of datetime
 * cdef inline int datetime_day(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_DAY(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_datetime_day(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":361
 * # Get day of datetime
 * cdef inline int datetime_day(object o) noexcept:
 *     return PyDateTime_GET_DAY(o)             # <<<<<<<<<<<<<<
 * 
 * # Get hour of time
 */
  __pyx_r = PyDateTime_GET_DAY(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":360
 * 
 * # Get day of datetime
 * cdef inline int datetime_day(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_GET_DAY(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":364
 * 
 * # Get hour of time
 * cdef inline int time_hour(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_TIME_GET_HOUR(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_time_hour(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":365
 * # Get hour of time
 * cdef inline int time_hour(object o) noexcept:
 *     return PyDateTime_TIME_GET_HOUR(o)             # <<<<<<<<<<<<<<
 * 
 * # Get minute of time
 */
  __pyx_r = PyDateTime_TIME_GET_HOUR(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":364
 * 
 * # Get hour of time
 * cdef inline int time_hour(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_TIME_GET_HOUR(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":368
 * 
 * # Get minute of time
 * cdef inline int time_minute(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_TIME_GET_MINUTE(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_time_minute(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":369
 * # Get minute of time
 * cdef inline int time_minute(object o) noexcept:
 *     return PyDateTime_TIME_GET_MINUTE(o)             # <<<<<<<<<<<<<<
 * 
 * # Get second of time
 */
  __pyx_r = PyDateTime_TIME_GET_MINUTE(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":368
 * 
 * # Get minute of time
 * cdef inline int time_minute(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_TIME_GET_MINUTE(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":372
 * 
 * # Get second of time
 * cdef inline int time_second(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_TIME_GET_SECOND(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_time_second(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":373
 * # Get second of time
 * cdef inline int time_second(object o) noexcept:
 *     return PyDateTime_TIME_GET_SECOND(o)             # <<<<<<<<<<<<<<
 * 
 * # Get microsecond of time
 */
  __pyx_r = PyDateTime_TIME_GET_SECOND(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":372
 * 
 * # Get second of time
 * cdef inline int time_second(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_TIME_GET_SECOND(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":376
 * 
 * # Get microsecond of time
 * cdef inline int time_microsecond(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_TIME_GET_MICROSECOND(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_time_microsecond(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":377
 * # Get microsecond of time
 * cdef inline int time_microsecond(object o) noexcept:
 *     return PyDateTime_TIME_GET_MICROSECOND(o)             # <<<<<<<<<<<<<<
 * 
 * # Get fold of time
 */
  __pyx_r = PyDateTime_TIME_GET_MICROSECOND(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":376
 * 
 * # Get microsecond of time
 * cdef inline int time_microsecond(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_TIME_GET_MICROSECOND(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":380
 * 
 * # Get fold of time
 * cdef inline int time_fold(object o) noexcept:             # <<<<<<<<<<<<<<
 *     # For Python < 3.6 this returns 0 no matter what
 *     return PyDateTime_TIME_GET_FOLD(o)
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_time_fold(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":382
 * cdef inline int time_fold(object o) noexcept:
 *     # For Python < 3.6 this returns 0 no matter what
 *     return PyDateTime_TIME_GET_FOLD(o)             # <<<<<<<<<<<<<<
 * 
 * # Get hour of datetime
 */
  __pyx_r = PyDateTime_TIME_GET_FOLD(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":380
 * 
 * # Get fold of time
 * cdef inline int time_fold(object o) noexcept:             # <<<<<<<<<<<<<<
 *     # For Python < 3.6 this returns 0 no matter what
 *     return PyDateTime_TIME_GET_FOLD(o)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":385
 * 
 * # Get hour of datetime
 * cdef inline int datetime_hour(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_DATE_GET_HOUR(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_datetime_hour(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":386
 * # Get hour of datetime
 * cdef inline int datetime_hour(object o) noexcept:
 *     return PyDateTime_DATE_GET_HOUR(o)             # <<<<<<<<<<<<<<
 * 
 * # Get minute of datetime
 */
  __pyx_r = PyDateTime_DATE_GET_HOUR(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":385
 * 
 * # Get hour of datetime
 * cdef inline int datetime_hour(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_DATE_GET_HOUR(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":389
 * 
 * # Get minute of datetime
 * cdef inline int datetime_minute(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_DATE_GET_MINUTE(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_datetime_minute(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":390
 * # Get minute of datetime
 * cdef inline int datetime_minute(object o) noexcept:
 *     return PyDateTime_DATE_GET_MINUTE(o)             # <<<<<<<<<<<<<<
 * 
 * # Get second of datetime
 */
  __pyx_r = PyDateTime_DATE_GET_MINUTE(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":389
 * 
 * # Get minute of datetime
 * cdef inline int datetime_minute(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_DATE_GET_MINUTE(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":393
 * 
 * # Get second of datetime
 * cdef inline int datetime_second(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_DATE_GET_SECOND(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_datetime_second(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":394
 * # Get second of datetime
 * cdef inline int datetime_second(object o) noexcept:
 *     return PyDateTime_DATE_GET_SECOND(o)             # <<<<<<<<<<<<<<
 * 
 * # Get microsecond of datetime
 */
  __pyx_r = PyDateTime_DATE_GET_SECOND(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":393
 * 
 * # Get second of datetime
 * cdef inline int datetime_second(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_DATE_GET_SECOND(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":397
 * 
 * # Get microsecond of datetime
 * cdef inline int datetime_microsecond(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_DATE_GET_MICROSECOND(o)
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_datetime_microsecond(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":398
 * # Get microsecond of datetime
 * cdef inline int datetime_microsecond(object o) noexcept:
 *     return PyDateTime_DATE_GET_MICROSECOND(o)             # <<<<<<<<<<<<<<
 * 
 * # Get fold of datetime
 */
  __pyx_r = PyDateTime_DATE_GET_MICROSECOND(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":397
 * 
 * # Get microsecond of datetime
 * cdef inline int datetime_microsecond(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return PyDateTime_DATE_GET_MICROSECOND(o)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":401
 * 
 * # Get fold of datetime
 * cdef inline int datetime_fold(object o) noexcept:             # <<<<<<<<<<<<<<
 *     # For Python < 3.6 this returns 0 no matter what
 *     return PyDateTime_DATE_GET_FOLD(o)
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_datetime_fold(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":403
 * cdef inline int datetime_fold(object o) noexcept:
 *     # For Python < 3.6 this returns 0 no matter what
 *     return PyDateTime_DATE_GET_FOLD(o)             # <<<<<<<<<<<<<<
 * 
 * # Get days of timedelta
 */
  __pyx_r = PyDateTime_DATE_GET_FOLD(__pyx_v_o);
  goto __pyx_L0;

  /* "datetime.pxd":401
 * 
 * # Get fold of datetime
 * cdef inline int datetime_fold(object o) noexcept:             # <<<<<<<<<<<<<<
 *     # For Python < 3.6 this returns 0 no matter what
 *     return PyDateTime_DATE_GET_FOLD(o)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":406
 * 
 * # Get days of timedelta
 * cdef inline int timedelta_days(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return (<PyDateTime_Delta*>o).days
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_timedelta_days(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":407
 * # Get days of timedelta
 * cdef inline int timedelta_days(object o) noexcept:
 *     return (<PyDateTime_Delta*>o).days             # <<<<<<<<<<<<<<
 * 
 * # Get seconds of timedelta
 */
  __pyx_r = ((PyDateTime_Delta *)__pyx_v_o)->days;
  goto __pyx_L0;

  /* "datetime.pxd":406
 * 
 * # Get days of timedelta
 * cdef inline int timedelta_days(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return (<PyDateTime_Delta*>o).days
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":410
 * 
 * # Get seconds of timedelta
 * cdef inline int timedelta_seconds(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return (<PyDateTime_Delta*>o).seconds
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_timedelta_seconds(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":411
 * # Get seconds of timedelta
 * cdef inline int timedelta_seconds(object o) noexcept:
 *     return (<PyDateTime_Delta*>o).seconds             # <<<<<<<<<<<<<<
 * 
 * # Get microseconds of timedelta
 */
  __pyx_r = ((PyDateTime_Delta *)__pyx_v_o)->seconds;
  goto __pyx_L0;

  /* "datetime.pxd":410
 * 
 * # Get seconds of timedelta
 * cdef inline int timedelta_seconds(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return (<PyDateTime_Delta*>o).seconds
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":414
 * 
 * # Get microseconds of timedelta
 * cdef inline int timedelta_microseconds(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return (<PyDateTime_Delta*>o).microseconds
 * 
 */

static CYTHON_INLINE int __pyx_f_7cpython_8datetime_timedelta_microseconds(PyObject *__pyx_v_o) {
  int __pyx_r;

  /* "datetime.pxd":415
 * # Get microseconds of timedelta
 * cdef inline int timedelta_microseconds(object o) noexcept:
 *     return (<PyDateTime_Delta*>o).microseconds             # <<<<<<<<<<<<<<
 * 
 * cdef inline double total_seconds(timedelta obj) noexcept:
 */
  __pyx_r = ((PyDateTime_Delta *)__pyx_v_o)->microseconds;
  goto __pyx_L0;

  /* "datetime.pxd":414
 * 
 * # Get microseconds of timedelta
 * cdef inline int timedelta_microseconds(object o) noexcept:             # <<<<<<<<<<<<<<
 *     return (<PyDateTime_Delta*>o).microseconds
 * 
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "datetime.pxd":417
 *     return (<PyDateTime_Delta*>o).microseconds
 * 
 * cdef inline double total_seconds(timedelta obj) noexcept:             # <<<<<<<<<<<<<<
 *     # Mirrors the "timedelta.total_seconds()" method.
 *     # Note that this implementation is not guaranteed to give *exactly* the same
 */

static CYTHON_INLINE double __pyx_f_7cpython_8datetime_total_seconds(PyDateTime_Delta *__pyx_v_obj) {
  double __pyx_v_days;
  double __pyx_v_seconds;
  double __pyx_v_micros;
  double __pyx_r;

  /* "datetime.pxd":423
 *     cdef:
 *         double days, seconds, micros
 *     days = <double>PyDateTime_DELTA_GET_DAYS(obj)             # <<<<<<<<<<<<<<
 *     seconds = <double>PyDateTime_DELTA_GET_SECONDS(obj)
 *     micros = <double>PyDateTime_DELTA_GET_MICROSECONDS(obj)
 */
  __pyx_v_days = ((double)PyDateTime_DELTA_GET_DAYS(((PyObject *)__pyx_v_obj)));

  /* "datetime.pxd":424
 *         double days, seconds, micros
 *     days = <double>PyDateTime_DELTA_GET_DAYS(obj)
 *     seconds = <double>PyDateTime_DELTA_GET_SECONDS(obj)             # <<<<<<<<<<<<<<
 *     micros = <double>PyDateTime_DELTA_GET_MICROSECONDS(obj)
 *     return days * 24 * 3600 + seconds + micros / 1_000_000
 */
  __pyx_v_seconds = ((double)PyDateTime_DELTA_GET_SECONDS(((PyObject *)__pyx_v_obj)));

  /* "datetime.pxd":425
 *     days = <double>PyDateTime_DELTA_GET_DAYS(obj)
 *     seconds = <double>PyDateTime_DELTA_GET_SECONDS(obj)
 *     micros = <double>PyDateTime_DELTA_GET_MICROSECONDS(obj)             # <<<<<<<<<<<<<<
 *     return days * 24 * 3600 + seconds + micros / 1_000_000
 */
  __pyx_v_micros = ((double)PyDateTime_DELTA_GET_MICROSECONDS(((PyObject *)__pyx_v_obj)));

  /* "datetime.pxd":426
 *     seconds = <double>PyDateTime_DELTA_GET_SECONDS(obj)
 *     micros = <double>PyDateTime_DELTA_GET_MICROSECONDS(obj)
 *     return days * 24 * 3600 + seconds + micros / 1_000_000             # <<<<<<<<<<<<<<
 */
  __pyx_r = ((((__pyx_v_days * 24.0) * 3600.0) + __pyx_v_seconds) + (__pyx_v_micros / 1000000.0));
  goto __pyx_L0;

  /* "datetime.pxd":417
 *     return (<PyDateTime_Delta*>o).microseconds
 * 
 * cdef inline double total_seconds(timedelta obj) noexcept:             # <<<<<<<<<<<<<<
 *     # Mirrors the "timedelta.total_seconds()" method.
 *     # Note that this implementation is not guaranteed to give *exactly* the same
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":21
 * 
 * # Utils
 * cdef inline bint is_iso_sep(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is the separator `" "` or `"T"` for ISO format date & time  `<'bool'>`"""
 *     return ch == " " or ch == "t"
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_iso_sep(Py_UCS4 __pyx_v_ch) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cytimes/cyparser.pxd":23
 * cdef inline bint is_iso_sep(Py_UCS4 ch) except -1:
 *     """Check if is the separator `" "` or `"T"` for ISO format date & time  `<'bool'>`"""
 *     return ch == " " or ch == "t"             # <<<<<<<<<<<<<<
 * 
 * cdef inline bint is_isodate_sep(Py_UCS4 ch) except -1:
 */
  switch (__pyx_v_ch) {
    case 32:
    case 0x74:
    __pyx_t_1 = 1;
    break;
    default:
    __pyx_t_1 = 0;
    break;
  }
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":21
 * 
 * # Utils
 * cdef inline bint is_iso_sep(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is the separator `" "` or `"T"` for ISO format date & time  `<'bool'>`"""
 *     return ch == " " or ch == "t"
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":25
 *     return ch == " " or ch == "t"
 * 
 * cdef inline bint is_isodate_sep(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is the separator `"-"` for ISO format date `<'bool'>`"""
 *     return ch == "-" or ch == "/"
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_isodate_sep(Py_UCS4 __pyx_v_ch) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cytimes/cyparser.pxd":27
 * cdef inline bint is_isodate_sep(Py_UCS4 ch) except -1:
 *     """Check if is the separator `"-"` for ISO format date `<'bool'>`"""
 *     return ch == "-" or ch == "/"             # <<<<<<<<<<<<<<
 * 
 * cdef inline bint is_isoweek_sep(Py_UCS4 ch) except -1:
 */
  switch (__pyx_v_ch) {
    case 45:
    case 47:
    __pyx_t_1 = 1;
    break;
    default:
    __pyx_t_1 = 0;
    break;
  }
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":25
 *     return ch == " " or ch == "t"
 * 
 * cdef inline bint is_isodate_sep(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is the separator `"-"` for ISO format date `<'bool'>`"""
 *     return ch == "-" or ch == "/"
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":29
 *     return ch == "-" or ch == "/"
 * 
 * cdef inline bint is_isoweek_sep(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is the separator `"W"` for ISO format week `<'bool'>`"""
 *     return ch == "w"
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_isoweek_sep(Py_UCS4 __pyx_v_ch) {
  int __pyx_r;

  /* "cytimes/cyparser.pxd":31
 * cdef inline bint is_isoweek_sep(Py_UCS4 ch) except -1:
 *     """Check if is the separator `"W"` for ISO format week `<'bool'>`"""
 *     return ch == "w"             # <<<<<<<<<<<<<<
 * 
 * cdef inline bint is_isotime_sep(Py_UCS4 ch) except -1:
 */
  __pyx_r = (__pyx_v_ch == 0x77);
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":29
 *     return ch == "-" or ch == "/"
 * 
 * cdef inline bint is_isoweek_sep(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is the separator `"W"` for ISO format week `<'bool'>`"""
 *     return ch == "w"
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":33
 *     return ch == "w"
 * 
 * cdef inline bint is_isotime_sep(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is the separator `":"` for ISO format time `<'bool'>`"""
 *     return ch == ":"
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_isotime_sep(Py_UCS4 __pyx_v_ch) {
  int __pyx_r;

  /* "cytimes/cyparser.pxd":35
 * cdef inline bint is_isotime_sep(Py_UCS4 ch) except -1:
 *     """Check if is the separator `":"` for ISO format time `<'bool'>`"""
 *     return ch == ":"             # <<<<<<<<<<<<<<
 * 
 * cdef inline bint is_ascii_digit(Py_UCS4 ch) except -1:
 */
  __pyx_r = (__pyx_v_ch == 58);
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":33
 *     return ch == "w"
 * 
 * cdef inline bint is_isotime_sep(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is the separator `":"` for ISO format time `<'bool'>`"""
 *     return ch == ":"
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":37
 *     return ch == ":"
 * 
 * cdef inline bint is_ascii_digit(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is ASCII digit number `<'bool'>`"""
 *     return "0" <= ch <= "9"
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_ascii_digit(Py_UCS4 __pyx_v_ch) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cytimes/cyparser.pxd":39
 * cdef inline bint is_ascii_digit(Py_UCS4 ch) except -1:
 *     """Check if is ASCII digit number `<'bool'>`"""
 *     return "0" <= ch <= "9"             # <<<<<<<<<<<<<<
 * 
 * cdef inline bint is_ascii_alpha_upper(Py_UCS4 ch) except -1:
 */
  __pyx_t_1 = (48 <= __pyx_v_ch);
  if (__pyx_t_1) {
    __pyx_t_1 = (__pyx_v_ch <= 57);
  }
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":37
 *     return ch == ":"
 * 
 * cdef inline bint is_ascii_digit(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is ASCII digit number `<'bool'>`"""
 *     return "0" <= ch <= "9"
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":41
 *     return "0" <= ch <= "9"
 * 
 * cdef inline bint is_ascii_alpha_upper(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is ASCII [A-Z] uppercase `<'bool'>`."""
 *     return "A" <= ch <= "Z"
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_ascii_alpha_upper(Py_UCS4 __pyx_v_ch) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cytimes/cyparser.pxd":43
 * cdef inline bint is_ascii_alpha_upper(Py_UCS4 ch) except -1:
 *     """Check if is ASCII [A-Z] uppercase `<'bool'>`."""
 *     return "A" <= ch <= "Z"             # <<<<<<<<<<<<<<
 * 
 * cdef inline bint is_ascii_alpha_lower(Py_UCS4 ch) except -1:
 */
  __pyx_t_1 = (65 <= __pyx_v_ch);
  if (__pyx_t_1) {
    __pyx_t_1 = (__pyx_v_ch <= 90);
  }
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":41
 *     return "0" <= ch <= "9"
 * 
 * cdef inline bint is_ascii_alpha_upper(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is ASCII [A-Z] uppercase `<'bool'>`."""
 *     return "A" <= ch <= "Z"
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":45
 *     return "A" <= ch <= "Z"
 * 
 * cdef inline bint is_ascii_alpha_lower(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is ASCII [a-z] lowercase `<'bool'>`."""
 *     return "a" <= ch <= "z"
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_ascii_alpha_lower(Py_UCS4 __pyx_v_ch) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cytimes/cyparser.pxd":47
 * cdef inline bint is_ascii_alpha_lower(Py_UCS4 ch) except -1:
 *     """Check if is ASCII [a-z] lowercase `<'bool'>`."""
 *     return "a" <= ch <= "z"             # <<<<<<<<<<<<<<
 * 
 * cdef inline bint is_ascii_alpha(Py_UCS4 ch) except -1:
 */
  __pyx_t_1 = (97 <= __pyx_v_ch);
  if (__pyx_t_1) {
    __pyx_t_1 = (__pyx_v_ch <= 0x7A);
  }
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":45
 *     return "A" <= ch <= "Z"
 * 
 * cdef inline bint is_ascii_alpha_lower(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is ASCII [a-z] lowercase `<'bool'>`."""
 *     return "a" <= ch <= "z"
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":49
 *     return "a" <= ch <= "z"
 * 
 * cdef inline bint is_ascii_alpha(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is ASCII [a-zA-Z] ignorecase `<'bool'>`."""
 *     return is_ascii_alpha_lower(ch) or is_ascii_alpha_upper(ch)
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_is_ascii_alpha(Py_UCS4 __pyx_v_ch) {
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cytimes/cyparser.pxd":51
 * cdef inline bint is_ascii_alpha(Py_UCS4 ch) except -1:
 *     """Check if is ASCII [a-zA-Z] ignorecase `<'bool'>`."""
 *     return is_ascii_alpha_lower(ch) or is_ascii_alpha_upper(ch)             # <<<<<<<<<<<<<<
 * 
 * cdef inline unsigned int str_count(str s, str substr) except -1:
 */
  __pyx_t_2 = __pyx_f_7cytimes_8cyparser_is_ascii_alpha_lower(__pyx_v_ch); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(4, 51, __pyx_L1_error)
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = __pyx_f_7cytimes_8cyparser_is_ascii_alpha_upper(__pyx_v_ch); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(4, 51, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_2;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":49
 *     return "a" <= ch <= "z"
 * 
 * cdef inline bint is_ascii_alpha(Py_UCS4 ch) except -1:             # <<<<<<<<<<<<<<
 *     """Check if is ASCII [a-zA-Z] ignorecase `<'bool'>`."""
 *     return is_ascii_alpha_lower(ch) or is_ascii_alpha_upper(ch)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cytimes.cyparser.is_ascii_alpha", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":53
 *     return is_ascii_alpha_lower(ch) or is_ascii_alpha_upper(ch)
 * 
 * cdef inline unsigned int str_count(str s, str substr) except -1:             # <<<<<<<<<<<<<<
 *     """Count the number of occurrences of a sub string `<'int'>`.
 *     Equivalent to `s.count(substr)`."""
 */

static CYTHON_INLINE unsigned int __pyx_f_7cytimes_8cyparser_str_count(PyObject *__pyx_v_s, PyObject *__pyx_v_substr) {
  unsigned int __pyx_r;
  Py_ssize_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cytimes/cyparser.pxd":56
 *     """Count the number of occurrences of a sub string `<'int'>`.
 *     Equivalent to `s.count(substr)`."""
 *     return s.count(substr)             # <<<<<<<<<<<<<<
 * 
 * cdef inline double slice_to_float(str s, Py_ssize_t start, Py_ssize_t end):
 */
  if (unlikely(__pyx_v_s == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "count");
    __PYX_ERR(4, 56, __pyx_L1_error)
  }
  __pyx_t_1 = PyUnicode_Count(__pyx_v_s, __pyx_v_substr, 0, PY_SSIZE_T_MAX); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(4, 56, __pyx_L1_error)
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":53
 *     return is_ascii_alpha_lower(ch) or is_ascii_alpha_upper(ch)
 * 
 * cdef inline unsigned int str_count(str s, str substr) except -1:             # <<<<<<<<<<<<<<
 *     """Count the number of occurrences of a sub string `<'int'>`.
 *     Equivalent to `s.count(substr)`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cytimes.cyparser.str_count", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":58
 *     return s.count(substr)
 * 
 * cdef inline double slice_to_float(str s, Py_ssize_t start, Py_ssize_t end):             # <<<<<<<<<<<<<<
 *     """Slice string from 'start' to 'end', and convert to `<'double'>`."""
 *     # Calculate the size of the token.
 */

static CYTHON_INLINE double __pyx_f_7cytimes_8cyparser_slice_to_float(PyObject *__pyx_v_s, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_end) {
  Py_ssize_t __pyx_v_size;
  char *__pyx_v_buffer;
  Py_ssize_t __pyx_v_i;
  Py_UCS4 __pyx_v_ch;
  double __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  char const *__pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  double __pyx_t_17;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("slice_to_float", 1);

  /* "cytimes/cyparser.pxd":61
 *     """Slice string from 'start' to 'end', and convert to `<'double'>`."""
 *     # Calculate the size of the token.
 *     cdef Py_ssize_t size = end - start             # <<<<<<<<<<<<<<
 *     # Allocate memory for the slice.
 *     cdef char* buffer = <char*>malloc(size + 1)
 */
  __pyx_v_size = (__pyx_v_end - __pyx_v_start);

  /* "cytimes/cyparser.pxd":63
 *     cdef Py_ssize_t size = end - start
 *     # Allocate memory for the slice.
 *     cdef char* buffer = <char*>malloc(size + 1)             # <<<<<<<<<<<<<<
 *     if buffer == NULL:
 *         raise MemoryError("Failed to allocate memory for the string slice.")
 */
  __pyx_v_buffer = ((char *)malloc((__pyx_v_size + 1)));

  /* "cytimes/cyparser.pxd":64
 *     # Allocate memory for the slice.
 *     cdef char* buffer = <char*>malloc(size + 1)
 *     if buffer == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError("Failed to allocate memory for the string slice.")
 *     cdef Py_ssize_t i
 */
  __pyx_t_1 = (__pyx_v_buffer == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cytimes/cyparser.pxd":65
 *     cdef char* buffer = <char*>malloc(size + 1)
 *     if buffer == NULL:
 *         raise MemoryError("Failed to allocate memory for the string slice.")             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t i
 *     cdef Py_UCS4 ch
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 65, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 65, __pyx_L1_error)

    /* "cytimes/cyparser.pxd":64
 *     # Allocate memory for the slice.
 *     cdef char* buffer = <char*>malloc(size + 1)
 *     if buffer == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError("Failed to allocate memory for the string slice.")
 *     cdef Py_ssize_t i
 */
  }

  /* "cytimes/cyparser.pxd":68
 *     cdef Py_ssize_t i
 *     cdef Py_UCS4 ch
 *     try:             # <<<<<<<<<<<<<<
 *         # Assign the slice to the buffer.
 *         for i in range(size):
 */
  /*try:*/ {

    /* "cytimes/cyparser.pxd":70
 *     try:
 *         # Assign the slice to the buffer.
 *         for i in range(size):             # <<<<<<<<<<<<<<
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch) and ch not in ".,":
 */
    __pyx_t_3 = __pyx_v_size;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cytimes/cyparser.pxd":71
 *         # Assign the slice to the buffer.
 *         for i in range(size):
 *             ch = read_char(s, start + i)             # <<<<<<<<<<<<<<
 *             if not is_ascii_digit(ch) and ch not in ".,":
 *                 raise ValueError("Invalid character to slice to float.")
 */
      __pyx_v_ch = PyUnicode_READ_CHAR(__pyx_v_s, (__pyx_v_start + __pyx_v_i));

      /* "cytimes/cyparser.pxd":72
 *         for i in range(size):
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch) and ch not in ".,":             # <<<<<<<<<<<<<<
 *                 raise ValueError("Invalid character to slice to float.")
 *             buffer[i] = ch
 */
      __pyx_t_6 = __pyx_f_7cytimes_8cyparser_is_ascii_digit(__pyx_v_ch); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(4, 72, __pyx_L5_error)
      __pyx_t_7 = (!__pyx_t_6);
      if (__pyx_t_7) {
      } else {
        __pyx_t_1 = __pyx_t_7;
        goto __pyx_L10_bool_binop_done;
      }
      switch (__pyx_v_ch) {
        case 44:
        case 46:
        __pyx_t_7 = 0;
        break;
        default:
        __pyx_t_7 = 1;
        break;
      }
      __pyx_t_6 = __pyx_t_7;
      __pyx_t_1 = __pyx_t_6;
      __pyx_L10_bool_binop_done:;
      if (unlikely(__pyx_t_1)) {

        /* "cytimes/cyparser.pxd":73
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch) and ch not in ".,":
 *                 raise ValueError("Invalid character to slice to float.")             # <<<<<<<<<<<<<<
 *             buffer[i] = ch
 *         # Null-terminate the buffer.
 */
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 73, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_Raise(__pyx_t_2, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __PYX_ERR(4, 73, __pyx_L5_error)

        /* "cytimes/cyparser.pxd":72
 *         for i in range(size):
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch) and ch not in ".,":             # <<<<<<<<<<<<<<
 *                 raise ValueError("Invalid character to slice to float.")
 *             buffer[i] = ch
 */
      }

      /* "cytimes/cyparser.pxd":74
 *             if not is_ascii_digit(ch) and ch not in ".,":
 *                 raise ValueError("Invalid character to slice to float.")
 *             buffer[i] = ch             # <<<<<<<<<<<<<<
 *         # Null-terminate the buffer.
 *         buffer[size] = 0
 */
      (__pyx_v_buffer[__pyx_v_i]) = __pyx_v_ch;
    }

    /* "cytimes/cyparser.pxd":76
 *             buffer[i] = ch
 *         # Null-terminate the buffer.
 *         buffer[size] = 0             # <<<<<<<<<<<<<<
 *         # Convert to double.
 *         return strtod(buffer, NULL)
 */
    (__pyx_v_buffer[__pyx_v_size]) = 0;

    /* "cytimes/cyparser.pxd":78
 *         buffer[size] = 0
 *         # Convert to double.
 *         return strtod(buffer, NULL)             # <<<<<<<<<<<<<<
 *     finally:
 *         # Free the memory.
 */
    __pyx_r = strtod(__pyx_v_buffer, NULL);
    goto __pyx_L4_return;
  }

  /* "cytimes/cyparser.pxd":81
 *     finally:
 *         # Free the memory.
 *         free(buffer)             # <<<<<<<<<<<<<<
 * 
 * cdef inline long long slice_to_int(str s, Py_ssize_t start, Py_ssize_t end):
 */
  /*finally:*/ {
    __pyx_L5_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
      if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __Pyx_XGOTREF(__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_16);
      __pyx_t_8 = __pyx_lineno; __pyx_t_9 = __pyx_clineno; __pyx_t_10 = __pyx_filename;
      {
        free(__pyx_v_buffer);
      }
      if (PY_MAJOR_VERSION >= 3) {
        __Pyx_XGIVEREF(__pyx_t_14);
        __Pyx_XGIVEREF(__pyx_t_15);
        __Pyx_XGIVEREF(__pyx_t_16);
        __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_15, __pyx_t_16);
      }
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ErrRestore(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0;
      __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_9; __pyx_filename = __pyx_t_10;
      goto __pyx_L1_error;
    }
    __pyx_L4_return: {
      __pyx_t_17 = __pyx_r;
      free(__pyx_v_buffer);
      __pyx_r = __pyx_t_17;
      goto __pyx_L0;
    }
  }

  /* "cytimes/cyparser.pxd":58
 *     return s.count(substr)
 * 
 * cdef inline double slice_to_float(str s, Py_ssize_t start, Py_ssize_t end):             # <<<<<<<<<<<<<<
 *     """Slice string from 'start' to 'end', and convert to `<'double'>`."""
 *     # Calculate the size of the token.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.cyparser.slice_to_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":83
 *         free(buffer)
 * 
 * cdef inline long long slice_to_int(str s, Py_ssize_t start, Py_ssize_t end):             # <<<<<<<<<<<<<<
 *     """Slice string from 'start' to 'end', and convert to `<'long long'>`."""
 *     # Calculate the size of the token.
 */

static CYTHON_INLINE PY_LONG_LONG __pyx_f_7cytimes_8cyparser_slice_to_int(PyObject *__pyx_v_s, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_end) {
  Py_ssize_t __pyx_v_size;
  char *__pyx_v_buffer;
  Py_ssize_t __pyx_v_i;
  Py_UCS4 __pyx_v_ch;
  PY_LONG_LONG __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  char const *__pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PY_LONG_LONG __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("slice_to_int", 1);

  /* "cytimes/cyparser.pxd":86
 *     """Slice string from 'start' to 'end', and convert to `<'long long'>`."""
 *     # Calculate the size of the token.
 *     cdef Py_ssize_t size = end - start             # <<<<<<<<<<<<<<
 *     # Allocate memory for the slice.
 *     cdef char* buffer = <char*>malloc(size + 1)
 */
  __pyx_v_size = (__pyx_v_end - __pyx_v_start);

  /* "cytimes/cyparser.pxd":88
 *     cdef Py_ssize_t size = end - start
 *     # Allocate memory for the slice.
 *     cdef char* buffer = <char*>malloc(size + 1)             # <<<<<<<<<<<<<<
 *     if buffer == NULL:
 *         raise MemoryError("Failed to allocate memory for the string slice.")
 */
  __pyx_v_buffer = ((char *)malloc((__pyx_v_size + 1)));

  /* "cytimes/cyparser.pxd":89
 *     # Allocate memory for the slice.
 *     cdef char* buffer = <char*>malloc(size + 1)
 *     if buffer == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError("Failed to allocate memory for the string slice.")
 *     cdef Py_ssize_t i
 */
  __pyx_t_1 = (__pyx_v_buffer == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cytimes/cyparser.pxd":90
 *     cdef char* buffer = <char*>malloc(size + 1)
 *     if buffer == NULL:
 *         raise MemoryError("Failed to allocate memory for the string slice.")             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t i
 *     cdef Py_UCS4 ch
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 90, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 90, __pyx_L1_error)

    /* "cytimes/cyparser.pxd":89
 *     # Allocate memory for the slice.
 *     cdef char* buffer = <char*>malloc(size + 1)
 *     if buffer == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError("Failed to allocate memory for the string slice.")
 *     cdef Py_ssize_t i
 */
  }

  /* "cytimes/cyparser.pxd":93
 *     cdef Py_ssize_t i
 *     cdef Py_UCS4 ch
 *     try:             # <<<<<<<<<<<<<<
 *         # Assign the slice to the buffer.
 *         for i in range(size):
 */
  /*try:*/ {

    /* "cytimes/cyparser.pxd":95
 *     try:
 *         # Assign the slice to the buffer.
 *         for i in range(size):             # <<<<<<<<<<<<<<
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch):
 */
    __pyx_t_3 = __pyx_v_size;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cytimes/cyparser.pxd":96
 *         # Assign the slice to the buffer.
 *         for i in range(size):
 *             ch = read_char(s, start + i)             # <<<<<<<<<<<<<<
 *             if not is_ascii_digit(ch):
 *                 raise ValueError("Invalid character to slice to integer.")
 */
      __pyx_v_ch = PyUnicode_READ_CHAR(__pyx_v_s, (__pyx_v_start + __pyx_v_i));

      /* "cytimes/cyparser.pxd":97
 *         for i in range(size):
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch):             # <<<<<<<<<<<<<<
 *                 raise ValueError("Invalid character to slice to integer.")
 *             buffer[i] = ch
 */
      __pyx_t_1 = __pyx_f_7cytimes_8cyparser_is_ascii_digit(__pyx_v_ch); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(4, 97, __pyx_L5_error)
      __pyx_t_6 = (!__pyx_t_1);
      if (unlikely(__pyx_t_6)) {

        /* "cytimes/cyparser.pxd":98
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch):
 *                 raise ValueError("Invalid character to slice to integer.")             # <<<<<<<<<<<<<<
 *             buffer[i] = ch
 *         # Null-terminate the buffer.
 */
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 98, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_Raise(__pyx_t_2, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __PYX_ERR(4, 98, __pyx_L5_error)

        /* "cytimes/cyparser.pxd":97
 *         for i in range(size):
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch):             # <<<<<<<<<<<<<<
 *                 raise ValueError("Invalid character to slice to integer.")
 *             buffer[i] = ch
 */
      }

      /* "cytimes/cyparser.pxd":99
 *             if not is_ascii_digit(ch):
 *                 raise ValueError("Invalid character to slice to integer.")
 *             buffer[i] = ch             # <<<<<<<<<<<<<<
 *         # Null-terminate the buffer.
 *         buffer[size] = 0
 */
      (__pyx_v_buffer[__pyx_v_i]) = __pyx_v_ch;
    }

    /* "cytimes/cyparser.pxd":101
 *             buffer[i] = ch
 *         # Null-terminate the buffer.
 *         buffer[size] = 0             # <<<<<<<<<<<<<<
 *         # Convert to long long.
 *         return strtoll(buffer, NULL, 10)
 */
    (__pyx_v_buffer[__pyx_v_size]) = 0;

    /* "cytimes/cyparser.pxd":103
 *         buffer[size] = 0
 *         # Convert to long long.
 *         return strtoll(buffer, NULL, 10)             # <<<<<<<<<<<<<<
 *     finally:
 *         # Free the memory.
 */
    __pyx_r = strtoll(__pyx_v_buffer, NULL, 10);
    goto __pyx_L4_return;
  }

  /* "cytimes/cyparser.pxd":106
 *     finally:
 *         # Free the memory.
 *         free(buffer)             # <<<<<<<<<<<<<<
 * 
 * cdef inline int token_to_int(str token):
 */
  /*finally:*/ {
    __pyx_L5_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
      if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12) < 0)) __Pyx_ErrFetch(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __Pyx_XGOTREF(__pyx_t_15);
      __pyx_t_7 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_9 = __pyx_filename;
      {
        free(__pyx_v_buffer);
      }
      if (PY_MAJOR_VERSION >= 3) {
        __Pyx_XGIVEREF(__pyx_t_13);
        __Pyx_XGIVEREF(__pyx_t_14);
        __Pyx_XGIVEREF(__pyx_t_15);
        __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_14, __pyx_t_15);
      }
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ErrRestore(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0;
      __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_8; __pyx_filename = __pyx_t_9;
      goto __pyx_L1_error;
    }
    __pyx_L4_return: {
      __pyx_t_16 = __pyx_r;
      free(__pyx_v_buffer);
      __pyx_r = __pyx_t_16;
      goto __pyx_L0;
    }
  }

  /* "cytimes/cyparser.pxd":83
 *         free(buffer)
 * 
 * cdef inline long long slice_to_int(str s, Py_ssize_t start, Py_ssize_t end):             # <<<<<<<<<<<<<<
 *     """Slice string from 'start' to 'end', and convert to `<'long long'>`."""
 *     # Calculate the size of the token.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.cyparser.slice_to_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":108
 *         free(buffer)
 * 
 * cdef inline int token_to_int(str token):             # <<<<<<<<<<<<<<
 *     """Convert 'token' to `<'int'>`."""
 *     try:
 */

static CYTHON_INLINE int __pyx_f_7cytimes_8cyparser_token_to_int(PyObject *__pyx_v_token) {
  PyObject *__pyx_v_err = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("token_to_int", 1);

  /* "cytimes/cyparser.pxd":110
 * cdef inline int token_to_int(str token):
 *     """Convert 'token' to `<'int'>`."""
 *     try:             # <<<<<<<<<<<<<<
 *         return int(token)
 *     except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cytimes/cyparser.pxd":111
 *     """Convert 'token' to `<'int'>`."""
 *     try:
 *         return int(token)             # <<<<<<<<<<<<<<
 *     except Exception as err:
 *         raise ValueError("Can't convert token '%s' to integer." % token) from err
 */
      __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_token); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 111, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 111, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_5;
      goto __pyx_L7_try_return;

      /* "cytimes/cyparser.pxd":110
 * cdef inline int token_to_int(str token):
 *     """Convert 'token' to `<'int'>`."""
 *     try:             # <<<<<<<<<<<<<<
 *         return int(token)
 *     except Exception as err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/cyparser.pxd":112
 *     try:
 *         return int(token)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise ValueError("Can't convert token '%s' to integer." % token) from err
 * 
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.cyparser.token_to_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(4, 112, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/cyparser.pxd":113
 *         return int(token)
 *     except Exception as err:
 *         raise ValueError("Can't convert token '%s' to integer." % token) from err             # <<<<<<<<<<<<<<
 * 
 * cdef inline double token_to_float(str token):
 */
        __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_Can_t_convert_token_s_to_integer, __pyx_v_token); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 113, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 113, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_Raise(__pyx_t_9, 0, 0, __pyx_v_err);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __PYX_ERR(4, 113, __pyx_L14_error)
      }

      /* "cytimes/cyparser.pxd":112
 *     try:
 *         return int(token)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise ValueError("Can't convert token '%s' to integer." % token) from err
 * 
 */
      /*finally:*/ {
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
      }
    }
    goto __pyx_L5_except_error;

    /* "cytimes/cyparser.pxd":110
 * cdef inline int token_to_int(str token):
 *     """Convert 'token' to `<'int'>`."""
 *     try:             # <<<<<<<<<<<<<<
 *         return int(token)
 *     except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "cytimes/cyparser.pxd":108
 *         free(buffer)
 * 
 * cdef inline int token_to_int(str token):             # <<<<<<<<<<<<<<
 *     """Convert 'token' to `<'int'>`."""
 *     try:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cytimes.cyparser.token_to_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":115
 *         raise ValueError("Can't convert token '%s' to integer." % token) from err
 * 
 * cdef inline double token_to_float(str token):             # <<<<<<<<<<<<<<
 *     """Convert 'token' to `<'double'>`."""
 *     cdef double num
 */

static CYTHON_INLINE double __pyx_f_7cytimes_8cyparser_token_to_float(PyObject *__pyx_v_token) {
  double __pyx_v_num;
  PyObject *__pyx_v_err = NULL;
  double __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  double __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  char const *__pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  int __pyx_t_19;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("token_to_float", 1);

  /* "cytimes/cyparser.pxd":118
 *     """Convert 'token' to `<'double'>`."""
 *     cdef double num
 *     try:             # <<<<<<<<<<<<<<
 *         num = float(token)
 *     except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cytimes/cyparser.pxd":119
 *     cdef double num
 *     try:
 *         num = float(token)             # <<<<<<<<<<<<<<
 *     except Exception as err:
 *         raise ValueError("Can't convert token '%s' to float." % token) from err
 */
      if (unlikely(__pyx_v_token == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "float() argument must be a string or a number, not 'NoneType'");
        __PYX_ERR(4, 119, __pyx_L3_error)
      }
      __pyx_t_4 = __Pyx_PyUnicode_AsDouble(__pyx_v_token); if (unlikely(__pyx_t_4 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(4, 119, __pyx_L3_error)
      __pyx_v_num = __pyx_t_4;

      /* "cytimes/cyparser.pxd":118
 *     """Convert 'token' to `<'double'>`."""
 *     cdef double num
 *     try:             # <<<<<<<<<<<<<<
 *         num = float(token)
 *     except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "cytimes/cyparser.pxd":120
 *     try:
 *         num = float(token)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise ValueError("Can't convert token '%s' to float." % token) from err
 *     if not isfinite(num):
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.cyparser.token_to_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(4, 120, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_v_err = __pyx_t_7;
      /*try:*/ {

        /* "cytimes/cyparser.pxd":121
 *         num = float(token)
 *     except Exception as err:
 *         raise ValueError("Can't convert token '%s' to float." % token) from err             # <<<<<<<<<<<<<<
 *     if not isfinite(num):
 *         raise ValueError("Token '%s' does not represent a finite number." % token)
 */
        __pyx_t_9 = PyUnicode_Format(__pyx_kp_u_Can_t_convert_token_s_to_float, __pyx_v_token); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 121, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 121, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_err);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __PYX_ERR(4, 121, __pyx_L14_error)
      }

      /* "cytimes/cyparser.pxd":120
 *     try:
 *         num = float(token)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise ValueError("Can't convert token '%s' to float." % token) from err
 *     if not isfinite(num):
 */
      /*finally:*/ {
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __pyx_t_5 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18);
          }
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_XGIVEREF(__pyx_t_15);
          __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15);
          __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_12;
          goto __pyx_L5_except_error;
        }
      }
    }
    goto __pyx_L5_except_error;

    /* "cytimes/cyparser.pxd":118
 *     """Convert 'token' to `<'double'>`."""
 *     cdef double num
 *     try:             # <<<<<<<<<<<<<<
 *         num = float(token)
 *     except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "cytimes/cyparser.pxd":122
 *     except Exception as err:
 *         raise ValueError("Can't convert token '%s' to float." % token) from err
 *     if not isfinite(num):             # <<<<<<<<<<<<<<
 *         raise ValueError("Token '%s' does not represent a finite number." % token)
 *     return num
 */
  __pyx_t_19 = (!isfinite(__pyx_v_num));
  if (unlikely(__pyx_t_19)) {

    /* "cytimes/cyparser.pxd":123
 *         raise ValueError("Can't convert token '%s' to float." % token) from err
 *     if not isfinite(num):
 *         raise ValueError("Token '%s' does not represent a finite number." % token)             # <<<<<<<<<<<<<<
 *     return num
 * 
 */
    __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_Token_s_does_not_represent_a_fin, __pyx_v_token); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_Raise(__pyx_t_7, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __PYX_ERR(4, 123, __pyx_L1_error)

    /* "cytimes/cyparser.pxd":122
 *     except Exception as err:
 *         raise ValueError("Can't convert token '%s' to float." % token) from err
 *     if not isfinite(num):             # <<<<<<<<<<<<<<
 *         raise ValueError("Token '%s' does not represent a finite number." % token)
 *     return num
 */
  }

  /* "cytimes/cyparser.pxd":124
 *     if not isfinite(num):
 *         raise ValueError("Token '%s' does not represent a finite number." % token)
 *     return num             # <<<<<<<<<<<<<<
 * 
 * cdef inline unsigned int token_to_microsecond(str token, Py_ssize_t length) except -1:
 */
  __pyx_r = __pyx_v_num;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":115
 *         raise ValueError("Can't convert token '%s' to integer." % token) from err
 * 
 * cdef inline double token_to_float(str token):             # <<<<<<<<<<<<<<
 *     """Convert 'token' to `<'double'>`."""
 *     cdef double num
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cytimes.cyparser.token_to_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/cyparser.pxd":126
 *     return num
 * 
 * cdef inline unsigned int token_to_microsecond(str token, Py_ssize_t length) except -1:             # <<<<<<<<<<<<<<
 *     """Convert 'token' to microsecond fraction ('0001' or '000001'),
 *     and automatically adjust the microsecond value based on the
 */

static CYTHON_INLINE unsigned int __pyx_f_7cytimes_8cyparser_token_to_microsecond(PyObject *__pyx_v_token, Py_ssize_t __pyx_v_length) {
  unsigned int __pyx_v_us;
  PyObject *__pyx_v_err = NULL;
  unsigned int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  unsigned int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  char const *__pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("token_to_microsecond", 0);
  __Pyx_INCREF(__pyx_v_token);

  /* "cytimes/cyparser.pxd":132
 *     cdef unsigned int us
 *     # Validate fraction
 *     if length == 0:             # <<<<<<<<<<<<<<
 *         length = str_len(token)
 *     if length > 6:
 */
  __pyx_t_1 = (__pyx_v_length == 0);
  if (__pyx_t_1) {

    /* "cytimes/cyparser.pxd":133
 *     # Validate fraction
 *     if length == 0:
 *         length = str_len(token)             # <<<<<<<<<<<<<<
 *     if length > 6:
 *         length = 6
 */
    __pyx_v_length = PyUnicode_GET_LENGTH(__pyx_v_token);

    /* "cytimes/cyparser.pxd":132
 *     cdef unsigned int us
 *     # Validate fraction
 *     if length == 0:             # <<<<<<<<<<<<<<
 *         length = str_len(token)
 *     if length > 6:
 */
  }

  /* "cytimes/cyparser.pxd":134
 *     if length == 0:
 *         length = str_len(token)
 *     if length > 6:             # <<<<<<<<<<<<<<
 *         length = 6
 *         token = str_substr(token, 0, 6)
 */
  __pyx_t_1 = (__pyx_v_length > 6);
  if (__pyx_t_1) {

    /* "cytimes/cyparser.pxd":135
 *         length = str_len(token)
 *     if length > 6:
 *         length = 6             # <<<<<<<<<<<<<<
 *         token = str_substr(token, 0, 6)
 *     elif length < 1:
 */
    __pyx_v_length = 6;

    /* "cytimes/cyparser.pxd":136
 *     if length > 6:
 *         length = 6
 *         token = str_substr(token, 0, 6)             # <<<<<<<<<<<<<<
 *     elif length < 1:
 *         raise ValueError("Empty microsecond token: '%s'." % token)
 */
    __pyx_t_2 = PyUnicode_Substring(__pyx_v_token, 0, 6); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 136, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_token, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "cytimes/cyparser.pxd":134
 *     if length == 0:
 *         length = str_len(token)
 *     if length > 6:             # <<<<<<<<<<<<<<
 *         length = 6
 *         token = str_substr(token, 0, 6)
 */
    goto __pyx_L4;
  }

  /* "cytimes/cyparser.pxd":137
 *         length = 6
 *         token = str_substr(token, 0, 6)
 *     elif length < 1:             # <<<<<<<<<<<<<<
 *         raise ValueError("Empty microsecond token: '%s'." % token)
 *     # Parse microsecond
 */
  __pyx_t_1 = (__pyx_v_length < 1);
  if (unlikely(__pyx_t_1)) {

    /* "cytimes/cyparser.pxd":138
 *         token = str_substr(token, 0, 6)
 *     elif length < 1:
 *         raise ValueError("Empty microsecond token: '%s'." % token)             # <<<<<<<<<<<<<<
 *     # Parse microsecond
 *     try:
 */
    __pyx_t_2 = PyUnicode_Format(__pyx_kp_u_Empty_microsecond_token_s, __pyx_v_token); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(4, 138, __pyx_L1_error)

    /* "cytimes/cyparser.pxd":137
 *         length = 6
 *         token = str_substr(token, 0, 6)
 *     elif length < 1:             # <<<<<<<<<<<<<<
 *         raise ValueError("Empty microsecond token: '%s'." % token)
 *     # Parse microsecond
 */
  }
  __pyx_L4:;

  /* "cytimes/cyparser.pxd":140
 *         raise ValueError("Empty microsecond token: '%s'." % token)
 *     # Parse microsecond
 *     try:             # <<<<<<<<<<<<<<
 *         us = int(token)
 *     except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_6);
    /*try:*/ {

      /* "cytimes/cyparser.pxd":141
 *     # Parse microsecond
 *     try:
 *         us = int(token)             # <<<<<<<<<<<<<<
 *     except Exception as err:
 *         raise ValueError("Invalid microsecond token: '%s'." % token) from err
 */
      __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_token); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 141, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_7 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_7 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(4, 141, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_us = __pyx_t_7;

      /* "cytimes/cyparser.pxd":140
 *         raise ValueError("Empty microsecond token: '%s'." % token)
 *     # Parse microsecond
 *     try:             # <<<<<<<<<<<<<<
 *         us = int(token)
 *     except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    goto __pyx_L10_try_end;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cytimes/cyparser.pxd":142
 *     try:
 *         us = int(token)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise ValueError("Invalid microsecond token: '%s'." % token) from err
 *     # Adjust fraction
 */
    __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_8) {
      __Pyx_AddTraceback("cytimes.cyparser.token_to_microsecond", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_9) < 0) __PYX_ERR(4, 142, __pyx_L7_except_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_v_err = __pyx_t_2;
      /*try:*/ {

        /* "cytimes/cyparser.pxd":143
 *         us = int(token)
 *     except Exception as err:
 *         raise ValueError("Invalid microsecond token: '%s'." % token) from err             # <<<<<<<<<<<<<<
 *     # Adjust fraction
 *     if length < 6:
 */
        __pyx_t_10 = PyUnicode_Format(__pyx_kp_u_Invalid_microsecond_token_s, __pyx_v_token); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 143, __pyx_L16_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 143, __pyx_L16_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_Raise(__pyx_t_11, 0, 0, __pyx_v_err);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __PYX_ERR(4, 143, __pyx_L16_error)
      }

      /* "cytimes/cyparser.pxd":142
 *     try:
 *         us = int(token)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise ValueError("Invalid microsecond token: '%s'." % token) from err
 *     # Adjust fraction
 */
      /*finally:*/ {
        __pyx_L16_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __pyx_t_8 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_13 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
          }
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_XGIVEREF(__pyx_t_15);
          __Pyx_XGIVEREF(__pyx_t_16);
          __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16);
          __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_13;
          goto __pyx_L7_except_error;
        }
      }
    }
    goto __pyx_L7_except_error;

    /* "cytimes/cyparser.pxd":140
 *         raise ValueError("Empty microsecond token: '%s'." % token)
 *     # Parse microsecond
 *     try:             # <<<<<<<<<<<<<<
 *         us = int(token)
 *     except Exception as err:
 */
    __pyx_L7_except_error:;
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
    goto __pyx_L1_error;
    __pyx_L10_try_end:;
  }

  /* "cytimes/cyparser.pxd":145
 *         raise ValueError("Invalid microsecond token: '%s'." % token) from err
 *     # Adjust fraction
 *     if length < 6:             # <<<<<<<<<<<<<<
 *         us *= US_FRACTION_CORRECTION[length - 1]
 *     return us
 */
  __pyx_t_1 = (__pyx_v_length < 6);
  if (__pyx_t_1) {

    /* "cytimes/cyparser.pxd":146
 *     # Adjust fraction
 *     if length < 6:
 *         us *= US_FRACTION_CORRECTION[length - 1]             # <<<<<<<<<<<<<<
 *     return us
 * 
 */
    __pyx_v_us = (__pyx_v_us * (__pyx_v_7cytimes_8cyparser_US_FRACTION_CORRECTION[(__pyx_v_length - 1)]));

    /* "cytimes/cyparser.pxd":145
 *         raise ValueError("Invalid microsecond token: '%s'." % token) from err
 *     # Adjust fraction
 *     if length < 6:             # <<<<<<<<<<<<<<
 *         us *= US_FRACTION_CORRECTION[length - 1]
 *     return us
 */
  }

  /* "cytimes/cyparser.pxd":147
 *     if length < 6:
 *         us *= US_FRACTION_CORRECTION[length - 1]
 *     return us             # <<<<<<<<<<<<<<
 * 
 * # Timelex
 */
  __pyx_r = __pyx_v_us;
  goto __pyx_L0;

  /* "cytimes/cyparser.pxd":126
 *     return num
 * 
 * cdef inline unsigned int token_to_microsecond(str token, Py_ssize_t length) except -1:             # <<<<<<<<<<<<<<
 *     """Convert 'token' to microsecond fraction ('0001' or '000001'),
 *     and automatically adjust the microsecond value based on the
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cytimes.cyparser.token_to_microsecond", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_token);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.pxd":19
 * 
 * # Utils
 * cdef inline bint is_pddt(object obj) except -1:             # <<<<<<<<<<<<<<
 *     """Check if an object is 'pddt' `<'bool'>`"""
 *     return isinstance(obj, pddt)
 */

static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_is_pddt(PyObject *__pyx_v_obj) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cytimes/pddatetime.pxd":21
 * cdef inline bint is_pddt(object obj) except -1:
 *     """Check if an object is 'pddt' `<'bool'>`"""
 *     return isinstance(obj, pddt)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object access_pddt(pddt pt):
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_7cytimes_10pddatetime_pddt); 
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/pddatetime.pxd":19
 * 
 * # Utils
 * cdef inline bint is_pddt(object obj) except -1:             # <<<<<<<<<<<<<<
 *     """Check if an object is 'pddt' `<'bool'>`"""
 *     return isinstance(obj, pddt)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/pddatetime.pxd":23
 *     return isinstance(obj, pddt)
 * 
 * cdef inline object access_pddt(pddt pt):             # <<<<<<<<<<<<<<
 *     """Access the `<'pddt'>` value, returns `<'Series[Timestamp]'>`."""
 *     return pt._dt
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_access_pddt(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_pt) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("access_pddt", 1);

  /* "cytimes/pddatetime.pxd":25
 * cdef inline object access_pddt(pddt pt):
 *     """Access the `<'pddt'>` value, returns `<'Series[Timestamp]'>`."""
 *     return pt._dt             # <<<<<<<<<<<<<<
 * 
 * cdef inline object parse_tzinfo(object tz):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_pt->_dt);
  __pyx_r = __pyx_v_pt->_dt;
  goto __pyx_L0;

  /* "cytimes/pddatetime.pxd":23
 *     return isinstance(obj, pddt)
 * 
 * cdef inline object access_pddt(pddt pt):             # <<<<<<<<<<<<<<
 *     """Access the `<'pddt'>` value, returns `<'Series[Timestamp]'>`."""
 *     return pt._dt
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.pxd":27
 *     return pt._dt
 * 
 * cdef inline object parse_tzinfo(object tz):             # <<<<<<<<<<<<<<
 *     """Parse 'tz' into `<datetime.tzinfo>`. Accept both `<'str'>`
 *     (timezone name) and `<'tzinfo'>` instance."""
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_parse_tzinfo(PyObject *__pyx_v_tz) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_UCS4 __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  int __pyx_t_16;
  char const *__pyx_t_17;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("parse_tzinfo", 1);

  /* "cytimes/pddatetime.pxd":30
 *     """Parse 'tz' into `<datetime.tzinfo>`. Accept both `<'str'>`
 *     (timezone name) and `<'tzinfo'>` instance."""
 *     if tz is None or datetime.PyTZInfo_Check(tz):             # <<<<<<<<<<<<<<
 *         return tz
 *     try:
 */
  __pyx_t_2 = (__pyx_v_tz == Py_None);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = PyTZInfo_Check(__pyx_v_tz);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.pxd":31
 *     (timezone name) and `<'tzinfo'>` instance."""
 *     if tz is None or datetime.PyTZInfo_Check(tz):
 *         return tz             # <<<<<<<<<<<<<<
 *     try:
 *         return typeref.ZONEINFO(tz)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_tz);
    __pyx_r = __pyx_v_tz;
    goto __pyx_L0;

    /* "cytimes/pddatetime.pxd":30
 *     """Parse 'tz' into `<datetime.tzinfo>`. Accept both `<'str'>`
 *     (timezone name) and `<'tzinfo'>` instance."""
 *     if tz is None or datetime.PyTZInfo_Check(tz):             # <<<<<<<<<<<<<<
 *         return tz
 *     try:
 */
  }

  /* "cytimes/pddatetime.pxd":32
 *     if tz is None or datetime.PyTZInfo_Check(tz):
 *         return tz
 *     try:             # <<<<<<<<<<<<<<
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "cytimes/pddatetime.pxd":33
 *         return tz
 *     try:
 *         return typeref.ZONEINFO(tz)             # <<<<<<<<<<<<<<
 *     except Exception as err:
 *         raise errors.InvalidTimezoneError(
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_ZONEINFO);
      __pyx_t_7 = __pyx_v_7cytimes_7typeref_ZONEINFO; __pyx_t_8 = NULL;
      __pyx_t_9 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
        if (likely(__pyx_t_8)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
          __Pyx_INCREF(__pyx_t_8);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_7, function);
          __pyx_t_9 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_tz};
        __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 33, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      }
      __pyx_r = __pyx_t_6;
      __pyx_t_6 = 0;
      goto __pyx_L10_try_return;

      /* "cytimes/pddatetime.pxd":32
 *     if tz is None or datetime.PyTZInfo_Check(tz):
 *         return tz
 *     try:             # <<<<<<<<<<<<<<
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:
 */
    }
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cytimes/pddatetime.pxd":34
 *     try:
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise errors.InvalidTimezoneError(
 *             "<'pddt'>\nInvalid timezone: %s %r." % (type(tz), tz)
 */
    __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_9) {
      __Pyx_AddTraceback("cytimes.pddatetime.parse_tzinfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(5, 34, __pyx_L8_except_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_v_err = __pyx_t_7;
      /*try:*/ {

        /* "cytimes/pddatetime.pxd":35
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:
 *         raise errors.InvalidTimezoneError(             # <<<<<<<<<<<<<<
 *             "<'pddt'>\nInvalid timezone: %s %r." % (type(tz), tz)
 *         ) from err
 */
        __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_errors); if (unlikely(!__pyx_t_11)) __PYX_ERR(5, 35, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_InvalidTimezoneError); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 35, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

        /* "cytimes/pddatetime.pxd":36
 *     except Exception as err:
 *         raise errors.InvalidTimezoneError(
 *             "<'pddt'>\nInvalid timezone: %s %r." % (type(tz), tz)             # <<<<<<<<<<<<<<
 *         ) from err
 * 
 */
        __pyx_t_11 = PyTuple_New(5); if (unlikely(!__pyx_t_11)) __PYX_ERR(5, 36, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_13 = 0;
        __pyx_t_14 = 127;
        __Pyx_INCREF(__pyx_kp_u_pddt_Invalid_timezone);
        __pyx_t_13 += 27;
        __Pyx_GIVEREF(__pyx_kp_u_pddt_Invalid_timezone);
        PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_pddt_Invalid_timezone);
        __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_tz))), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(5, 36, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
        __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_15);
        __pyx_t_15 = 0;
        __Pyx_INCREF(__pyx_kp_u__7);
        __pyx_t_13 += 1;
        __Pyx_GIVEREF(__pyx_kp_u__7);
        PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_kp_u__7);
        __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_tz), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(5, 36, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
        __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_11, 3, __pyx_t_15);
        __pyx_t_15 = 0;
        __Pyx_INCREF(__pyx_kp_u__8);
        __pyx_t_13 += 1;
        __Pyx_GIVEREF(__pyx_kp_u__8);
        PyTuple_SET_ITEM(__pyx_t_11, 4, __pyx_kp_u__8);
        __pyx_t_15 = __Pyx_PyUnicode_Join(__pyx_t_11, 5, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_15)) __PYX_ERR(5, 36, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_t_11 = NULL;
        __pyx_t_9 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_12))) {
          __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_12);
          if (likely(__pyx_t_11)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
            __Pyx_INCREF(__pyx_t_11);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_12, function);
            __pyx_t_9 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 35, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        }

        /* "cytimes/pddatetime.pxd":37
 *         raise errors.InvalidTimezoneError(
 *             "<'pddt'>\nInvalid timezone: %s %r." % (type(tz), tz)
 *         ) from err             # <<<<<<<<<<<<<<
 * 
 * cdef inline int ndarray_setitem_1d(np.ndarray arr, np.npy_intp i, object item):
 */
        __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_err);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __PYX_ERR(5, 35, __pyx_L17_error)
      }

      /* "cytimes/pddatetime.pxd":34
 *     try:
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise errors.InvalidTimezoneError(
 *             "<'pddt'>\nInvalid timezone: %s %r." % (type(tz), tz)
 */
      /*finally:*/ {
        __pyx_L17_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __Pyx_XGOTREF(__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_23);
          __pyx_t_9 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_XGIVEREF(__pyx_t_22);
            __Pyx_XGIVEREF(__pyx_t_23);
            __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23);
          }
          __Pyx_XGIVEREF(__pyx_t_18);
          __Pyx_XGIVEREF(__pyx_t_19);
          __Pyx_XGIVEREF(__pyx_t_20);
          __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20);
          __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0;
          __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17;
          goto __pyx_L8_except_error;
        }
      }
    }
    goto __pyx_L8_except_error;

    /* "cytimes/pddatetime.pxd":32
 *     if tz is None or datetime.PyTZInfo_Check(tz):
 *         return tz
 *     try:             # <<<<<<<<<<<<<<
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:
 */
    __pyx_L8_except_error:;
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L10_try_return:;
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.pxd":27
 *     return pt._dt
 * 
 * cdef inline object parse_tzinfo(object tz):             # <<<<<<<<<<<<<<
 *     """Parse 'tz' into `<datetime.tzinfo>`. Accept both `<'str'>`
 *     (timezone name) and `<'tzinfo'>` instance."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_AddTraceback("cytimes.pddatetime.parse_tzinfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.pxd":39
 *         ) from err
 * 
 * cdef inline int ndarray_setitem_1d(np.ndarray arr, np.npy_intp i, object item):             # <<<<<<<<<<<<<<
 *     """Set item for 1-dimensional numpy ndarray `<'int'>`."""
 *     cdef void* itemptr = <void*>PyArray_GETPTR1(arr, i)
 */

static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_ndarray_setitem_1d(PyArrayObject *__pyx_v_arr, npy_intp __pyx_v_i, PyObject *__pyx_v_item) {
  void *__pyx_v_itemptr;
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cytimes/pddatetime.pxd":41
 * cdef inline int ndarray_setitem_1d(np.ndarray arr, np.npy_intp i, object item):
 *     """Set item for 1-dimensional numpy ndarray `<'int'>`."""
 *     cdef void* itemptr = <void*>PyArray_GETPTR1(arr, i)             # <<<<<<<<<<<<<<
 *     return PyArray_SETITEM(arr, itemptr, item)
 * 
 */
  __pyx_v_itemptr = ((void *)PyArray_GETPTR1(__pyx_v_arr, __pyx_v_i));

  /* "cytimes/pddatetime.pxd":42
 *     """Set item for 1-dimensional numpy ndarray `<'int'>`."""
 *     cdef void* itemptr = <void*>PyArray_GETPTR1(arr, i)
 *     return PyArray_SETITEM(arr, itemptr, item)             # <<<<<<<<<<<<<<
 * 
 * # pddt (Pandas Datetime)
 */
  __pyx_t_1 = PyArray_SETITEM(__pyx_v_arr, __pyx_v_itemptr, __pyx_v_item); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(5, 42, __pyx_L1_error)
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/pddatetime.pxd":39
 *         ) from err
 * 
 * cdef inline int ndarray_setitem_1d(np.ndarray arr, np.npy_intp i, object item):             # <<<<<<<<<<<<<<
 *     """Set item for 1-dimensional numpy ndarray `<'int'>`."""
 *     cdef void* itemptr = <void*>PyArray_GETPTR1(arr, i)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cytimes.pddatetime.ndarray_setitem_1d", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cydatetime.pxd":66
 * 
 * # Equivalent to `time.localtime(timestamp)`.
 * cdef inline tm localize_time(double timestamp) except * nogil:             # <<<<<<<<<<<<<<
 *     cdef:
 *         time_t tic = <time_t>timestamp
 */

static CYTHON_INLINE struct tm __pyx_f_7cytimes_10cydatetime_localize_time(double __pyx_v_timestamp) {
  time_t __pyx_v_tic;
  struct tm *__pyx_v_tms;
  struct tm __pyx_r;
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save;
  #endif

  /* "cydatetime.pxd":68
 * cdef inline tm localize_time(double timestamp) except * nogil:
 *     cdef:
 *         time_t tic = <time_t>timestamp             # <<<<<<<<<<<<<<
 *         tm* tms
 * 
 */
  __pyx_v_tic = ((time_t)__pyx_v_timestamp);

  /* "cydatetime.pxd":71
 *         tm* tms
 * 
 *     tms = libc_localtime(&tic)             # <<<<<<<<<<<<<<
 *     if tms is NULL:
 *         raise_from_errno()
 */
  __pyx_v_tms = localtime((&__pyx_v_tic));

  /* "cydatetime.pxd":72
 * 
 *     tms = libc_localtime(&tic)
 *     if tms is NULL:             # <<<<<<<<<<<<<<
 *         raise_from_errno()
 *     # Fix 0-based date values (and the 1900-based year).
 */
  __pyx_t_1 = (__pyx_v_tms == NULL);
  if (__pyx_t_1) {

    /* "cydatetime.pxd":73
 *     tms = libc_localtime(&tic)
 *     if tms is NULL:
 *         raise_from_errno()             # <<<<<<<<<<<<<<
 *     # Fix 0-based date values (and the 1900-based year).
 *     # See tmtotuple() in https://github.com/python/cpython/blob/master/Modules/timemodule.c
 */
    __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_raise_from_errno(); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(6, 73, __pyx_L1_error)

    /* "cydatetime.pxd":72
 * 
 *     tms = libc_localtime(&tic)
 *     if tms is NULL:             # <<<<<<<<<<<<<<
 *         raise_from_errno()
 *     # Fix 0-based date values (and the 1900-based year).
 */
  }

  /* "cydatetime.pxd":76
 *     # Fix 0-based date values (and the 1900-based year).
 *     # See tmtotuple() in https://github.com/python/cpython/blob/master/Modules/timemodule.c
 *     tms.tm_year += 1900             # <<<<<<<<<<<<<<
 *     tms.tm_mon += 1
 *     tms.tm_wday = (tms.tm_wday + 6) % 7
 */
  __pyx_v_tms->tm_year = (__pyx_v_tms->tm_year + 0x76C);

  /* "cydatetime.pxd":77
 *     # See tmtotuple() in https://github.com/python/cpython/blob/master/Modules/timemodule.c
 *     tms.tm_year += 1900
 *     tms.tm_mon += 1             # <<<<<<<<<<<<<<
 *     tms.tm_wday = (tms.tm_wday + 6) % 7
 *     tms.tm_yday += 1
 */
  __pyx_v_tms->tm_mon = (__pyx_v_tms->tm_mon + 1);

  /* "cydatetime.pxd":78
 *     tms.tm_year += 1900
 *     tms.tm_mon += 1
 *     tms.tm_wday = (tms.tm_wday + 6) % 7             # <<<<<<<<<<<<<<
 *     tms.tm_yday += 1
 *     return tms[0]
 */
  __pyx_v_tms->tm_wday = __Pyx_mod_long((__pyx_v_tms->tm_wday + 6), 7);

  /* "cydatetime.pxd":79
 *     tms.tm_mon += 1
 *     tms.tm_wday = (tms.tm_wday + 6) % 7
 *     tms.tm_yday += 1             # <<<<<<<<<<<<<<
 *     return tms[0]
 * 
 */
  __pyx_v_tms->tm_yday = (__pyx_v_tms->tm_yday + 1);

  /* "cydatetime.pxd":80
 *     tms.tm_wday = (tms.tm_wday + 6) % 7
 *     tms.tm_yday += 1
 *     return tms[0]             # <<<<<<<<<<<<<<
 * 
 * # Error handling for localize time
 */
  __pyx_r = (__pyx_v_tms[0]);
  goto __pyx_L0;

  /* "cydatetime.pxd":66
 * 
 * # Equivalent to `time.localtime(timestamp)`.
 * cdef inline tm localize_time(double timestamp) except * nogil:             # <<<<<<<<<<<<<<
 *     cdef:
 *         time_t tic = <time_t>timestamp
 */

  /* function exit code */
  __pyx_L1_error:;
  #ifdef WITH_THREAD
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  #endif
  __Pyx_AddTraceback("cytimes.cydatetime.localize_time", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  #ifdef WITH_THREAD
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  #endif
  __pyx_L0:;
  return __pyx_r;
}

/* "cydatetime.pxd":83
 * 
 * # Error handling for localize time
 * cdef inline int raise_from_errno() except -1 with gil:             # <<<<<<<<<<<<<<
 *     PyErr_SetFromErrno(RuntimeError)
 *     return <int> -1  # type: ignore
 */

static CYTHON_INLINE int __pyx_f_7cytimes_10cydatetime_raise_from_errno(void) {
  int __pyx_r;
  PyObject *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  #endif

  /* "cydatetime.pxd":84
 * # Error handling for localize time
 * cdef inline int raise_from_errno() except -1 with gil:
 *     PyErr_SetFromErrno(RuntimeError)             # <<<<<<<<<<<<<<
 *     return <int> -1  # type: ignore
 * 
 */
  __pyx_t_1 = PyErr_SetFromErrno(__pyx_builtin_RuntimeError); if (unlikely(__pyx_t_1 == ((PyObject *)NULL))) __PYX_ERR(6, 84, __pyx_L1_error)

  /* "cydatetime.pxd":85
 * cdef inline int raise_from_errno() except -1 with gil:
 *     PyErr_SetFromErrno(RuntimeError)
 *     return <int> -1  # type: ignore             # <<<<<<<<<<<<<<
 * 
 * # Convert timestamp to a local timestamp
 */
  __pyx_r = ((int)-1L);
  goto __pyx_L0;

  /* "cydatetime.pxd":83
 * 
 * # Error handling for localize time
 * cdef inline int raise_from_errno() except -1 with gil:             # <<<<<<<<<<<<<<
 *     PyErr_SetFromErrno(RuntimeError)
 *     return <int> -1  # type: ignore
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cytimes.cydatetime.raise_from_errno", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  #ifdef WITH_THREAD
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "cydatetime.pxd":88
 * 
 * # Convert timestamp to a local timestamp
 * cdef inline long long localize_ts(double timestamp) except *:             # <<<<<<<<<<<<<<
 *     # Localize timestamp
 *     cdef tm t = localize_time(timestamp)
 */

static CYTHON_INLINE PY_LONG_LONG __pyx_f_7cytimes_10cydatetime_localize_ts(double __pyx_v_timestamp) {
  struct tm __pyx_v_t;
  PY_LONG_LONG __pyx_v_ordinal;
  PY_LONG_LONG __pyx_v_seconds;
  PY_LONG_LONG __pyx_r;
  struct tm __pyx_t_1;
  unsigned int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cydatetime.pxd":90
 * cdef inline long long localize_ts(double timestamp) except *:
 *     # Localize timestamp
 *     cdef tm t = localize_time(timestamp)             # <<<<<<<<<<<<<<
 *     # Calculate total seconds
 *     cdef long long ordinal = ymd_to_ordinal(t.tm_year, t.tm_mon, t.tm_mday)
 */
  __pyx_t_1 = __pyx_f_7cytimes_10cydatetime_localize_time(__pyx_v_timestamp); if (unlikely(PyErr_Occurred())) __PYX_ERR(6, 90, __pyx_L1_error)
  __pyx_v_t = __pyx_t_1;

  /* "cydatetime.pxd":92
 *     cdef tm t = localize_time(timestamp)
 *     # Calculate total seconds
 *     cdef long long ordinal = ymd_to_ordinal(t.tm_year, t.tm_mon, t.tm_mday)             # <<<<<<<<<<<<<<
 *     cdef long long seconds = ordinal * 86_400 + t.tm_hour * 3_600 + t.tm_min * 60 + t.tm_sec
 *     # Return seconds since epoch
 */
  __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_ymd_to_ordinal(__pyx_v_t.tm_year, __pyx_v_t.tm_mon, __pyx_v_t.tm_mday); if (unlikely(__pyx_t_2 == ((unsigned int)-1))) __PYX_ERR(6, 92, __pyx_L1_error)
  __pyx_v_ordinal = __pyx_t_2;

  /* "cydatetime.pxd":93
 *     # Calculate total seconds
 *     cdef long long ordinal = ymd_to_ordinal(t.tm_year, t.tm_mon, t.tm_mday)
 *     cdef long long seconds = ordinal * 86_400 + t.tm_hour * 3_600 + t.tm_min * 60 + t.tm_sec             # <<<<<<<<<<<<<<
 *     # Return seconds since epoch
 *     return seconds - EPOCH_SEC
 */
  __pyx_v_seconds = ((((__pyx_v_ordinal * 0x15180) + (__pyx_v_t.tm_hour * 0xE10)) + (__pyx_v_t.tm_min * 60)) + __pyx_v_t.tm_sec);

  /* "cydatetime.pxd":95
 *     cdef long long seconds = ordinal * 86_400 + t.tm_hour * 3_600 + t.tm_min * 60 + t.tm_sec
 *     # Return seconds since epoch
 *     return seconds - EPOCH_SEC             # <<<<<<<<<<<<<<
 * 
 * # Convert struct:tm to Python string based on the 'format'
 */
  __pyx_r = (__pyx_v_seconds - __pyx_v_7cytimes_10cydatetime_EPOCH_SEC);
  goto __pyx_L0;

  /* "cydatetime.pxd":88
 * 
 * # Convert timestamp to a local timestamp
 * cdef inline long long localize_ts(double timestamp) except *:             # <<<<<<<<<<<<<<
 *     # Localize timestamp
 *     cdef tm t = localize_time(timestamp)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cytimes.cydatetime.localize_ts", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cydatetime.pxd":98
 * 
 * # Convert struct:tm to Python string based on the 'format'
 * cdef inline str stime_to_str(tm tms, str format):             # <<<<<<<<<<<<<<
 *     cdef:
 *         char buffer[256]
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10cydatetime_stime_to_str(struct tm __pyx_v_tms, PyObject *__pyx_v_format) {
  char __pyx_v_buffer[0x100];
  size_t __pyx_v_size;
  char const *__pyx_v_fmt;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char const *__pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("stime_to_str", 1);

  /* "cydatetime.pxd":103
 *         size_t size
 *         str result
 *         const char* fmt = PyUnicode_AsUTF8(format)             # <<<<<<<<<<<<<<
 * 
 *     # Revert back to 0-based date values.
 */
  __pyx_t_1 = PyUnicode_AsUTF8(__pyx_v_format); if (unlikely(__pyx_t_1 == ((char const *)NULL))) __PYX_ERR(6, 103, __pyx_L1_error)
  __pyx_v_fmt = __pyx_t_1;

  /* "cydatetime.pxd":106
 * 
 *     # Revert back to 0-based date values.
 *     tms.tm_year -= 1_900             # <<<<<<<<<<<<<<
 *     tms.tm_mon -= 1
 *     tms.tm_wday = (tms.tm_wday + 1) % 7
 */
  __pyx_v_tms.tm_year = (__pyx_v_tms.tm_year - 0x76C);

  /* "cydatetime.pxd":107
 *     # Revert back to 0-based date values.
 *     tms.tm_year -= 1_900
 *     tms.tm_mon -= 1             # <<<<<<<<<<<<<<
 *     tms.tm_wday = (tms.tm_wday + 1) % 7
 *     tms.tm_yday -= 1
 */
  __pyx_v_tms.tm_mon = (__pyx_v_tms.tm_mon - 1);

  /* "cydatetime.pxd":108
 *     tms.tm_year -= 1_900
 *     tms.tm_mon -= 1
 *     tms.tm_wday = (tms.tm_wday + 1) % 7             # <<<<<<<<<<<<<<
 *     tms.tm_yday -= 1
 *     # Convert to Python string.
 */
  __pyx_v_tms.tm_wday = __Pyx_mod_long((__pyx_v_tms.tm_wday + 1), 7);

  /* "cydatetime.pxd":109
 *     tms.tm_mon -= 1
 *     tms.tm_wday = (tms.tm_wday + 1) % 7
 *     tms.tm_yday -= 1             # <<<<<<<<<<<<<<
 *     # Convert to Python string.
 *     size = strftime(buffer, sizeof(buffer), fmt, &tms)
 */
  __pyx_v_tms.tm_yday = (__pyx_v_tms.tm_yday - 1);

  /* "cydatetime.pxd":111
 *     tms.tm_yday -= 1
 *     # Convert to Python string.
 *     size = strftime(buffer, sizeof(buffer), fmt, &tms)             # <<<<<<<<<<<<<<
 *     if size == 0:
 *         raise OverflowError("The format string for datetime is too long:\n'%s'" % format)
 */
  __pyx_v_size = strftime(__pyx_v_buffer, (sizeof(__pyx_v_buffer)), __pyx_v_fmt, (&__pyx_v_tms));

  /* "cydatetime.pxd":112
 *     # Convert to Python string.
 *     size = strftime(buffer, sizeof(buffer), fmt, &tms)
 *     if size == 0:             # <<<<<<<<<<<<<<
 *         raise OverflowError("The format string for datetime is too long:\n'%s'" % format)
 *     return PyUnicode_DecodeUTF8(buffer, size, NULL)
 */
  __pyx_t_2 = (__pyx_v_size == 0);
  if (unlikely(__pyx_t_2)) {

    /* "cydatetime.pxd":113
 *     size = strftime(buffer, sizeof(buffer), fmt, &tms)
 *     if size == 0:
 *         raise OverflowError("The format string for datetime is too long:\n'%s'" % format)             # <<<<<<<<<<<<<<
 *     return PyUnicode_DecodeUTF8(buffer, size, NULL)
 * 
 */
    __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_The_format_string_for_datetime_i, __pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 113, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_OverflowError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 113, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(6, 113, __pyx_L1_error)

    /* "cydatetime.pxd":112
 *     # Convert to Python string.
 *     size = strftime(buffer, sizeof(buffer), fmt, &tms)
 *     if size == 0:             # <<<<<<<<<<<<<<
 *         raise OverflowError("The format string for datetime is too long:\n'%s'" % format)
 *     return PyUnicode_DecodeUTF8(buffer, size, NULL)
 */
  }

  /* "cydatetime.pxd":114
 *     if size == 0:
 *         raise OverflowError("The format string for datetime is too long:\n'%s'" % format)
 *     return PyUnicode_DecodeUTF8(buffer, size, NULL)             # <<<<<<<<<<<<<<
 * 
 * # Calendar: year
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = PyUnicode_DecodeUTF8(__pyx_v_buffer, __pyx_v_size, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cydatetime.pxd":98
 * 
 * # Convert struct:tm to Python string based on the 'format'
 * cdef inline str stime_to_str(tm tms, str format):             # <<<<<<<<<<<<<<
 *     cdef:
 *         char buffer[256]
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.cydatetime.stime_to_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/cydelta.pxd":11
 * 
 * # Utils
 * cdef inline int combine_ms_us(int ms, int us) noexcept:             # <<<<<<<<<<<<<<
 *     """Combine millisecond and microsecond into microsecond `<'int'>`.
 *     Returns -1 if both values are invalid. """
 */

static CYTHON_INLINE int __pyx_f_7cytimes_7cydelta_combine_ms_us(int __pyx_v_ms, int __pyx_v_us) {
  int __pyx_v_ms_us;
  int __pyx_r;
  int __pyx_t_1;
  long __pyx_t_2;
  int __pyx_t_3;
  long __pyx_t_4;

  /* "cytimes/cydelta.pxd":16
 *     # Millisecond + Microsecond (fraction)
 *     cdef int ms_us
 *     if ms >= 0:             # <<<<<<<<<<<<<<
 *         ms_us = min(ms, 999) * 1_000
 *         if us > 0:
 */
  __pyx_t_1 = (__pyx_v_ms >= 0);
  if (__pyx_t_1) {

    /* "cytimes/cydelta.pxd":17
 *     cdef int ms_us
 *     if ms >= 0:
 *         ms_us = min(ms, 999) * 1_000             # <<<<<<<<<<<<<<
 *         if us > 0:
 *             ms_us += us % 1_000
 */
    __pyx_t_2 = 0x3E7;
    __pyx_t_3 = __pyx_v_ms;
    __pyx_t_1 = (__pyx_t_2 < __pyx_t_3);
    if (__pyx_t_1) {
      __pyx_t_4 = __pyx_t_2;
    } else {
      __pyx_t_4 = __pyx_t_3;
    }
    __pyx_v_ms_us = (__pyx_t_4 * 0x3E8);

    /* "cytimes/cydelta.pxd":18
 *     if ms >= 0:
 *         ms_us = min(ms, 999) * 1_000
 *         if us > 0:             # <<<<<<<<<<<<<<
 *             ms_us += us % 1_000
 *         return ms_us
 */
    __pyx_t_1 = (__pyx_v_us > 0);
    if (__pyx_t_1) {

      /* "cytimes/cydelta.pxd":19
 *         ms_us = min(ms, 999) * 1_000
 *         if us > 0:
 *             ms_us += us % 1_000             # <<<<<<<<<<<<<<
 *         return ms_us
 *     # Clip Microsecond
 */
      __pyx_v_ms_us = (__pyx_v_ms_us + __Pyx_mod_long(__pyx_v_us, 0x3E8));

      /* "cytimes/cydelta.pxd":18
 *     if ms >= 0:
 *         ms_us = min(ms, 999) * 1_000
 *         if us > 0:             # <<<<<<<<<<<<<<
 *             ms_us += us % 1_000
 *         return ms_us
 */
    }

    /* "cytimes/cydelta.pxd":20
 *         if us > 0:
 *             ms_us += us % 1_000
 *         return ms_us             # <<<<<<<<<<<<<<
 *     # Clip Microsecond
 *     if us >= 0:
 */
    __pyx_r = __pyx_v_ms_us;
    goto __pyx_L0;

    /* "cytimes/cydelta.pxd":16
 *     # Millisecond + Microsecond (fraction)
 *     cdef int ms_us
 *     if ms >= 0:             # <<<<<<<<<<<<<<
 *         ms_us = min(ms, 999) * 1_000
 *         if us > 0:
 */
  }

  /* "cytimes/cydelta.pxd":22
 *         return ms_us
 *     # Clip Microsecond
 *     if us >= 0:             # <<<<<<<<<<<<<<
 *         return min(us, 999_999)
 *     # Invalid Value
 */
  __pyx_t_1 = (__pyx_v_us >= 0);
  if (__pyx_t_1) {

    /* "cytimes/cydelta.pxd":23
 *     # Clip Microsecond
 *     if us >= 0:
 *         return min(us, 999_999)             # <<<<<<<<<<<<<<
 *     # Invalid Value
 *     return -1
 */
    __pyx_t_4 = 0xF423F;
    __pyx_t_3 = __pyx_v_us;
    __pyx_t_1 = (__pyx_t_4 < __pyx_t_3);
    if (__pyx_t_1) {
      __pyx_t_2 = __pyx_t_4;
    } else {
      __pyx_t_2 = __pyx_t_3;
    }
    __pyx_r = __pyx_t_2;
    goto __pyx_L0;

    /* "cytimes/cydelta.pxd":22
 *         return ms_us
 *     # Clip Microsecond
 *     if us >= 0:             # <<<<<<<<<<<<<<
 *         return min(us, 999_999)
 *     # Invalid Value
 */
  }

  /* "cytimes/cydelta.pxd":25
 *         return min(us, 999_999)
 *     # Invalid Value
 *     return -1             # <<<<<<<<<<<<<<
 * 
 * # cytimedelta
 */
  __pyx_r = -1;
  goto __pyx_L0;

  /* "cytimes/cydelta.pxd":11
 * 
 * # Utils
 * cdef inline int combine_ms_us(int ms, int us) noexcept:             # <<<<<<<<<<<<<<
 *     """Combine millisecond and microsecond into microsecond `<'int'>`.
 *     Returns -1 if both values are invalid. """
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/pydatetime.pxd":14
 * 
 * # Utils
 * cdef inline bint is_pydt(object obj) except -1:             # <<<<<<<<<<<<<<
 *     """Check if an object is 'pydt' `<'bool'>`"""
 *     return isinstance(obj, pydt)
 */

static CYTHON_INLINE int __pyx_f_7cytimes_10pydatetime_is_pydt(PyObject *__pyx_v_obj) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cytimes/pydatetime.pxd":16
 * cdef inline bint is_pydt(object obj) except -1:
 *     """Check if an object is 'pydt' `<'bool'>`"""
 *     return isinstance(obj, pydt)             # <<<<<<<<<<<<<<
 * 
 * cdef inline datetime.datetime access_pydt(pydt pt):
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_7cytimes_10pydatetime_pydt); 
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cytimes/pydatetime.pxd":14
 * 
 * # Utils
 * cdef inline bint is_pydt(object obj) except -1:             # <<<<<<<<<<<<<<
 *     """Check if an object is 'pydt' `<'bool'>`"""
 *     return isinstance(obj, pydt)
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/pydatetime.pxd":18
 *     return isinstance(obj, pydt)
 * 
 * cdef inline datetime.datetime access_pydt(pydt pt):             # <<<<<<<<<<<<<<
 *     """Access the `<'pydt'>` value, returns `<'datetime.datetime'>`."""
 *     return pt._dt
 */

static CYTHON_INLINE PyDateTime_DateTime *__pyx_f_7cytimes_10pydatetime_access_pydt(struct __pyx_obj_7cytimes_10pydatetime_pydt *__pyx_v_pt) {
  PyDateTime_DateTime *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("access_pydt", 1);

  /* "cytimes/pydatetime.pxd":20
 * cdef inline datetime.datetime access_pydt(pydt pt):
 *     """Access the `<'pydt'>` value, returns `<'datetime.datetime'>`."""
 *     return pt._dt             # <<<<<<<<<<<<<<
 * 
 * cdef inline object parse_tzinfo(object tz):
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_pt->_dt);
  __pyx_r = __pyx_v_pt->_dt;
  goto __pyx_L0;

  /* "cytimes/pydatetime.pxd":18
 *     return isinstance(obj, pydt)
 * 
 * cdef inline datetime.datetime access_pydt(pydt pt):             # <<<<<<<<<<<<<<
 *     """Access the `<'pydt'>` value, returns `<'datetime.datetime'>`."""
 *     return pt._dt
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pydatetime.pxd":22
 *     return pt._dt
 * 
 * cdef inline object parse_tzinfo(object tz):             # <<<<<<<<<<<<<<
 *     """Parse 'tz' into `<datetime.tzinfo>`. Accept both `<'str'>`
 *     (timezone name) and `<'tzinfo'>` instance."""
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pydatetime_parse_tzinfo(PyObject *__pyx_v_tz) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_UCS4 __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  int __pyx_t_16;
  char const *__pyx_t_17;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("parse_tzinfo", 1);

  /* "cytimes/pydatetime.pxd":25
 *     """Parse 'tz' into `<datetime.tzinfo>`. Accept both `<'str'>`
 *     (timezone name) and `<'tzinfo'>` instance."""
 *     if tz is None or datetime.PyTZInfo_Check(tz):             # <<<<<<<<<<<<<<
 *         return tz
 *     try:
 */
  __pyx_t_2 = (__pyx_v_tz == Py_None);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = PyTZInfo_Check(__pyx_v_tz);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cytimes/pydatetime.pxd":26
 *     (timezone name) and `<'tzinfo'>` instance."""
 *     if tz is None or datetime.PyTZInfo_Check(tz):
 *         return tz             # <<<<<<<<<<<<<<
 *     try:
 *         return typeref.ZONEINFO(tz)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_tz);
    __pyx_r = __pyx_v_tz;
    goto __pyx_L0;

    /* "cytimes/pydatetime.pxd":25
 *     """Parse 'tz' into `<datetime.tzinfo>`. Accept both `<'str'>`
 *     (timezone name) and `<'tzinfo'>` instance."""
 *     if tz is None or datetime.PyTZInfo_Check(tz):             # <<<<<<<<<<<<<<
 *         return tz
 *     try:
 */
  }

  /* "cytimes/pydatetime.pxd":27
 *     if tz is None or datetime.PyTZInfo_Check(tz):
 *         return tz
 *     try:             # <<<<<<<<<<<<<<
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "cytimes/pydatetime.pxd":28
 *         return tz
 *     try:
 *         return typeref.ZONEINFO(tz)             # <<<<<<<<<<<<<<
 *     except Exception as err:
 *         raise errors.InvalidTimezoneError(
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_ZONEINFO);
      __pyx_t_7 = __pyx_v_7cytimes_7typeref_ZONEINFO; __pyx_t_8 = NULL;
      __pyx_t_9 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
        if (likely(__pyx_t_8)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
          __Pyx_INCREF(__pyx_t_8);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_7, function);
          __pyx_t_9 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_tz};
        __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 28, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      }
      __pyx_r = __pyx_t_6;
      __pyx_t_6 = 0;
      goto __pyx_L10_try_return;

      /* "cytimes/pydatetime.pxd":27
 *     if tz is None or datetime.PyTZInfo_Check(tz):
 *         return tz
 *     try:             # <<<<<<<<<<<<<<
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:
 */
    }
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cytimes/pydatetime.pxd":29
 *     try:
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise errors.InvalidTimezoneError(
 *             "<'pydt'>\nInvalid timezone: %s %r." % (type(tz), tz)
 */
    __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_9) {
      __Pyx_AddTraceback("cytimes.pydatetime.parse_tzinfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(7, 29, __pyx_L8_except_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_v_err = __pyx_t_7;
      /*try:*/ {

        /* "cytimes/pydatetime.pxd":30
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:
 *         raise errors.InvalidTimezoneError(             # <<<<<<<<<<<<<<
 *             "<'pydt'>\nInvalid timezone: %s %r." % (type(tz), tz)
 *         ) from err
 */
        __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_errors); if (unlikely(!__pyx_t_11)) __PYX_ERR(7, 30, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_InvalidTimezoneError); if (unlikely(!__pyx_t_12)) __PYX_ERR(7, 30, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

        /* "cytimes/pydatetime.pxd":31
 *     except Exception as err:
 *         raise errors.InvalidTimezoneError(
 *             "<'pydt'>\nInvalid timezone: %s %r." % (type(tz), tz)             # <<<<<<<<<<<<<<
 *         ) from err
 * 
 */
        __pyx_t_11 = PyTuple_New(5); if (unlikely(!__pyx_t_11)) __PYX_ERR(7, 31, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_13 = 0;
        __pyx_t_14 = 127;
        __Pyx_INCREF(__pyx_kp_u_pydt_Invalid_timezone);
        __pyx_t_13 += 27;
        __Pyx_GIVEREF(__pyx_kp_u_pydt_Invalid_timezone);
        PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_pydt_Invalid_timezone);
        __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_tz))), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(7, 31, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
        __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_15);
        __pyx_t_15 = 0;
        __Pyx_INCREF(__pyx_kp_u__7);
        __pyx_t_13 += 1;
        __Pyx_GIVEREF(__pyx_kp_u__7);
        PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_kp_u__7);
        __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_tz), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(7, 31, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
        __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_11, 3, __pyx_t_15);
        __pyx_t_15 = 0;
        __Pyx_INCREF(__pyx_kp_u__8);
        __pyx_t_13 += 1;
        __Pyx_GIVEREF(__pyx_kp_u__8);
        PyTuple_SET_ITEM(__pyx_t_11, 4, __pyx_kp_u__8);
        __pyx_t_15 = __Pyx_PyUnicode_Join(__pyx_t_11, 5, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_15)) __PYX_ERR(7, 31, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_t_11 = NULL;
        __pyx_t_9 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_12))) {
          __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_12);
          if (likely(__pyx_t_11)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
            __Pyx_INCREF(__pyx_t_11);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_12, function);
            __pyx_t_9 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(7, 30, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        }

        /* "cytimes/pydatetime.pxd":32
 *         raise errors.InvalidTimezoneError(
 *             "<'pydt'>\nInvalid timezone: %s %r." % (type(tz), tz)
 *         ) from err             # <<<<<<<<<<<<<<
 * 
 * # pydt (Python Datetime)
 */
        __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_err);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __PYX_ERR(7, 30, __pyx_L17_error)
      }

      /* "cytimes/pydatetime.pxd":29
 *     try:
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:             # <<<<<<<<<<<<<<
 *         raise errors.InvalidTimezoneError(
 *             "<'pydt'>\nInvalid timezone: %s %r." % (type(tz), tz)
 */
      /*finally:*/ {
        __pyx_L17_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __Pyx_XGOTREF(__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_23);
          __pyx_t_9 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_XGIVEREF(__pyx_t_22);
            __Pyx_XGIVEREF(__pyx_t_23);
            __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23);
          }
          __Pyx_XGIVEREF(__pyx_t_18);
          __Pyx_XGIVEREF(__pyx_t_19);
          __Pyx_XGIVEREF(__pyx_t_20);
          __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20);
          __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0;
          __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17;
          goto __pyx_L8_except_error;
        }
      }
    }
    goto __pyx_L8_except_error;

    /* "cytimes/pydatetime.pxd":27
 *     if tz is None or datetime.PyTZInfo_Check(tz):
 *         return tz
 *     try:             # <<<<<<<<<<<<<<
 *         return typeref.ZONEINFO(tz)
 *     except Exception as err:
 */
    __pyx_L8_except_error:;
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L10_try_return:;
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L0;
  }

  /* "cytimes/pydatetime.pxd":22
 *     return pt._dt
 * 
 * cdef inline object parse_tzinfo(object tz):             # <<<<<<<<<<<<<<
 *     """Parse 'tz' into `<datetime.tzinfo>`. Accept both `<'str'>`
 *     (timezone name) and `<'tzinfo'>` instance."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_AddTraceback("cytimes.pydatetime.parse_tzinfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":70
 *     _default: object
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def now(
 *         cls,
 */

/* Python wrapper */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_1now(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_now, "(Class method) Create pddt with the current time `<'pddt'>`.\n\n        Similar to `datetime.now(tz)`.\n\n        :param size `<'int'>`: The size of the array.\n        :param tz `<'str/datetime.tzinfo'>`: The target timezone of the current time. Defaults to `None`.\n        :param name `<'str'>`: The name of the array. Defaults to `None`.\n        :param unit `<'str'>`: The desired time resolution. Defaults to `None`.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_1now = {"now", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_1now, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_now};
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_1now(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_size = 0;
  PyObject *__pyx_v_tz = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_unit = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("now (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size,&__pyx_n_s_tz,&__pyx_n_s_name,&__pyx_n_s_unit,0};

    /* "cytimes/pddatetime.py":74
 *         cls,
 *         size: int,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 */
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":75
 *         size: int,
 *         tz: str | datetime.tzinfo | None = None,
 *         name: str | None = None,             # <<<<<<<<<<<<<<
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 *     ) -> pddt:
 */
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":76
 *         tz: str | datetime.tzinfo | None = None,
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,             # <<<<<<<<<<<<<<
 *     ) -> pddt:
 *         """(Class method) Create pddt with the current time `<'pddt'>`.
 */
    values[3] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 70, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_tz);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 70, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 70, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unit);
          if (value) { values[3] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 70, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "now") < 0)) __PYX_ERR(0, 70, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_size = ((PyObject*)values[0]);
    __pyx_v_tz = values[1];
    __pyx_v_name = values[2];
    __pyx_v_unit = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("now", 0, 1, 4, __pyx_nargs); __PYX_ERR(0, 70, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.now", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_size), (&PyInt_Type), 0, "size", 1))) __PYX_ERR(0, 73, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_now(((PyTypeObject*)__pyx_v_cls), __pyx_v_size, __pyx_v_tz, __pyx_v_name, __pyx_v_unit);

  /* "cytimes/pddatetime.py":70
 *     _default: object
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def now(
 *         cls,
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_now(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_size, PyObject *__pyx_v_tz, PyObject *__pyx_v_name, PyObject *__pyx_v_unit) {
  PyDateTime_DateTime *__pyx_v_dt = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("now", 1);

  /* "cytimes/pddatetime.py":88
 *         """
 *         # Without timezone
 *         if tz is None:             # <<<<<<<<<<<<<<
 *             dt = cydt.gen_dt_now()
 *         # With timezone
 */
  __pyx_t_1 = (__pyx_v_tz == Py_None);
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":89
 *         # Without timezone
 *         if tz is None:
 *             dt = cydt.gen_dt_now()             # <<<<<<<<<<<<<<
 *         # With timezone
 *         else:
 */
    __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_gen_dt_now()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_dt = ((PyDateTime_DateTime *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cytimes/pddatetime.py":88
 *         """
 *         # Without timezone
 *         if tz is None:             # <<<<<<<<<<<<<<
 *             dt = cydt.gen_dt_now()
 *         # With timezone
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":92
 *         # With timezone
 *         else:
 *             dt = cydt.gen_dt_now_tz(parse_tzinfo(tz))  # type: ignore             # <<<<<<<<<<<<<<
 *         # Generate pddt
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 */
  /*else*/ {
    __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_parse_tzinfo(__pyx_v_tz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cpython_8datetime_tzinfo))))) __PYX_ERR(0, 92, __pyx_L1_error)
    __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_gen_dt_now_tz(((PyDateTime_TZInfo *)__pyx_t_2))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 92, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_dt = ((PyDateTime_DateTime *)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cytimes/pddatetime.py":94
 *             dt = cydt.gen_dt_now_tz(parse_tzinfo(tz))  # type: ignore
 *         # Generate pddt
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF((PyObject *)__pyx_v_dt);
  __Pyx_GIVEREF((PyObject *)__pyx_v_dt);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_dt))) __PYX_ERR(0, 94, __pyx_L1_error);
  { PyObject* __pyx_temp = PyNumber_InPlaceMultiply(__pyx_t_3, __pyx_v_size); if (unlikely(!__pyx_temp)) __PYX_ERR(0, 94, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_temp);
    __Pyx_DECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_temp;
  }
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4)) __PYX_ERR(0, 94, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_unit, __pyx_v_unit) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_copy, Py_False) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_cls), __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 94, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":70
 *     _default: object
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def now(
 *         cls,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.now", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_dt);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":96
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_dtobj(
 *         cls,
 */

/* Python wrapper */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_3from_dtobj(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_2from_dtobj, "(Class method) Create pddt from datetime objects `<'pddt'>`.\n\n        :param size `<'int'>`: The size of the array.\n        :param dtobj `<'object'>`: The datetime object to convert to pddt.\n        - Supported data types:\n        1. `<'str'>`: The datetime string, e.g. \"2021-01-01 12:00:00\" or \"Jan 12, 2023\".\n        2. `<'datetime.datetime'>`: Python native datetime or subclass.\n        3. `<'datetime.date'>`: Python native date or subclass.\n        4. `<'pydt'>`: Another pydt instance.\n        6. `<'numpy.datetime64'>`: Numpy datetime64 instance.\n\n        ### Parse 'dtobj' (Only applicable when 'dtobj' is type of `<'str'>`).\n        :param default `<'object'>`: The default to fill-in missing datetime elements. Defaults to `None`.\n        - `<'date'>`: If parser failed to extract Y/M/D values from the string,\n           the give 'date' will be used to fill-in the missing Y/M/D values.\n        - `<'datetime'>`: If parser failed to extract datetime elements from\n           the string, the given 'datetime' will be used to fill-in the\n           missing Y/M/D & H/M/S.f values.\n        - `None`: raise error if Y/M/D values are missing.\n\n        :param day1st `<'bool'>`: Whether to interpret first ambiguous date values as day. Defaults to `None`.\n        :param year1st `<'bool'>`: Whether to interpret first the ambiguous date value as year. Defaults to `None`.\n        - Both the 'day1st' & 'year1st' arguments works together to determine how\n          to interpret ambiguous Y/M/D values. If not provided (set to `None`),\n          defaults to the 'day1st' & 'year1st' settings of the Parser `<'Config'>`.\n        - For more information, please refer to the `cytimes.Parser.parse()` method.\n\n        :param cfg `<'Config'>`: The configurations for the Parser. Defaults to `None`.\n\n        ### Arguments for the array.\n        :param name `<'str'>`: The name of the array. Defaults to `None`.\n        :param unit `<'str'>`: The desired time resolu""tion. Defaults to `None`.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_3from_dtobj = {"from_dtobj", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_3from_dtobj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_2from_dtobj};
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_3from_dtobj(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_size = 0;
  PyObject *__pyx_v_dtobj = 0;
  PyObject *__pyx_v_default = 0;
  PyObject *__pyx_v_day1st = 0;
  PyObject *__pyx_v_year1st = 0;
  PyObject *__pyx_v_cfg = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_unit = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_dtobj (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size,&__pyx_n_s_dtobj,&__pyx_n_s_default,&__pyx_n_s_day1st,&__pyx_n_s_year1st,&__pyx_n_s_cfg,&__pyx_n_s_name,&__pyx_n_s_unit,0};

    /* "cytimes/pddatetime.py":101
 *         size: int,
 *         dtobj: object,
 *         default: object | None = None,             # <<<<<<<<<<<<<<
 *         day1st: bool | None = None,
 *         year1st: bool | None = None,
 */
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":102
 *         dtobj: object,
 *         default: object | None = None,
 *         day1st: bool | None = None,             # <<<<<<<<<<<<<<
 *         year1st: bool | None = None,
 *         cfg: Config | None = None,
 */
    values[3] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":103
 *         default: object | None = None,
 *         day1st: bool | None = None,
 *         year1st: bool | None = None,             # <<<<<<<<<<<<<<
 *         cfg: Config | None = None,
 *         name: str | None = None,
 */
    values[4] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":104
 *         day1st: bool | None = None,
 *         year1st: bool | None = None,
 *         cfg: Config | None = None,             # <<<<<<<<<<<<<<
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 */
    values[5] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":105
 *         year1st: bool | None = None,
 *         cfg: Config | None = None,
 *         name: str | None = None,             # <<<<<<<<<<<<<<
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 *     ) -> pddt:
 */
    values[6] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":106
 *         cfg: Config | None = None,
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,             # <<<<<<<<<<<<<<
 *     ) -> pddt:
 *         """(Class method) Create pddt from datetime objects `<'pddt'>`.
 */
    values[7] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dtobj)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[1]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("from_dtobj", 0, 2, 8, 1); __PYX_ERR(0, 96, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_default);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day1st);
          if (value) { values[3] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_year1st);
          if (value) { values[4] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cfg);
          if (value) { values[5] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name);
          if (value) { values[6] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unit);
          if (value) { values[7] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "from_dtobj") < 0)) __PYX_ERR(0, 96, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_size = ((PyObject*)values[0]);
    __pyx_v_dtobj = values[1];
    __pyx_v_default = values[2];
    __pyx_v_day1st = values[3];
    __pyx_v_year1st = values[4];
    __pyx_v_cfg = values[5];
    __pyx_v_name = values[6];
    __pyx_v_unit = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_dtobj", 0, 2, 8, __pyx_nargs); __PYX_ERR(0, 96, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.from_dtobj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_size), (&PyInt_Type), 0, "size", 1))) __PYX_ERR(0, 99, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_2from_dtobj(((PyTypeObject*)__pyx_v_cls), __pyx_v_size, __pyx_v_dtobj, __pyx_v_default, __pyx_v_day1st, __pyx_v_year1st, __pyx_v_cfg, __pyx_v_name, __pyx_v_unit);

  /* "cytimes/pddatetime.py":96
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_dtobj(
 *         cls,
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_2from_dtobj(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_size, PyObject *__pyx_v_dtobj, PyObject *__pyx_v_default, PyObject *__pyx_v_day1st, PyObject *__pyx_v_year1st, PyObject *__pyx_v_cfg, PyObject *__pyx_v_name, PyObject *__pyx_v_unit) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  struct __pyx_opt_args_7cytimes_8cyparser_6Parser_parse __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_t_14;
  char const *__pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_date __pyx_t_22;
  Py_ssize_t __pyx_t_23;
  Py_UCS4 __pyx_t_24;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_dtobj", 1);

  /* "cytimes/pddatetime.py":142
 *         """
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):             # <<<<<<<<<<<<<<
 *             try:
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_dtobj); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":143
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):
 *             try:             # <<<<<<<<<<<<<<
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)
 *             except Exception as err:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      /*try:*/ {

        /* "cytimes/pddatetime.py":144
 *         if isinstance(dtobj, str):
 *             try:
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)             # <<<<<<<<<<<<<<
 *             except Exception as err:
 *                 raise errors.InvalidDatetimeObjectError("<'pddt'> %s." % (err)) from err
 */
        __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cytimes_8cyparser_Parser), __pyx_v_cfg); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 144, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (!(likely(PyUnicode_CheckExact(__pyx_v_dtobj))||((__pyx_v_dtobj) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_dtobj))) __PYX_ERR(0, 144, __pyx_L4_error)
        __pyx_t_7.__pyx_n = 5;
        __pyx_t_7.__pyx_default = __pyx_v_default;
        __pyx_t_7.day1st = __pyx_v_day1st;
        __pyx_t_7.year1st = __pyx_v_year1st;
        __pyx_t_7.ignoretz = Py_False;
        __pyx_t_7.isoformat = Py_True;
        __pyx_t_6 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_8cyparser_Parser *)((struct __pyx_obj_7cytimes_8cyparser_Parser *)__pyx_t_5)->__pyx_vtab)->parse(((struct __pyx_obj_7cytimes_8cyparser_Parser *)__pyx_t_5), ((PyObject*)__pyx_v_dtobj), 0, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 144, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_dt = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "cytimes/pddatetime.py":143
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):
 *             try:             # <<<<<<<<<<<<<<
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)
 *             except Exception as err:
 */
      }
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":145
 *             try:
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidDatetimeObjectError("<'pddt'> %s." % (err)) from err
 *         # <'datetime.date'> subclass
 */
      __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_8) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.from_dtobj", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_9) < 0) __PYX_ERR(0, 145, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_v_err = __pyx_t_5;
        /*try:*/ {

          /* "cytimes/pddatetime.py":146
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)
 *             except Exception as err:
 *                 raise errors.InvalidDatetimeObjectError("<'pddt'> %s." % (err)) from err             # <<<<<<<<<<<<<<
 *         # <'datetime.date'> subclass
 *         elif datetime.PyDate_Check(dtobj):
 */
          __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_errors); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 146, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 146, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          __pyx_t_11 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_pddt_s, __pyx_v_err); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 146, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_13 = NULL;
          __pyx_t_8 = 0;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_12))) {
            __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
            if (likely(__pyx_t_13)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
              __Pyx_INCREF(__pyx_t_13);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_12, function);
              __pyx_t_8 = 1;
            }
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_11};
            __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
            __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
            __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 146, __pyx_L15_error)
            __Pyx_GOTREF(__pyx_t_10);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          }
          __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_err);
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          __PYX_ERR(0, 146, __pyx_L15_error)
        }

        /* "cytimes/pddatetime.py":145
 *             try:
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidDatetimeObjectError("<'pddt'> %s." % (err)) from err
 *         # <'datetime.date'> subclass
 */
        /*finally:*/ {
          __pyx_L15_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
            __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __pyx_t_8 = __pyx_lineno; __pyx_t_14 = __pyx_clineno; __pyx_t_15 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_XGIVEREF(__pyx_t_21);
              __Pyx_ExceptionReset(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            }
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_16, __pyx_t_17, __pyx_t_18);
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_14; __pyx_filename = __pyx_t_15;
            goto __pyx_L6_except_error;
          }
        }
      }
      goto __pyx_L6_except_error;

      /* "cytimes/pddatetime.py":143
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):
 *             try:             # <<<<<<<<<<<<<<
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)
 *             except Exception as err:
 */
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
      goto __pyx_L1_error;
      __pyx_L9_try_end:;
    }

    /* "cytimes/pddatetime.py":142
 *         """
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):             # <<<<<<<<<<<<<<
 *             try:
 *                 dt = Parser(cfg).parse(dtobj, default, day1st, year1st, False, True)
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":148
 *                 raise errors.InvalidDatetimeObjectError("<'pddt'> %s." % (err)) from err
 *         # <'datetime.date'> subclass
 *         elif datetime.PyDate_Check(dtobj):             # <<<<<<<<<<<<<<
 *             if datetime.PyDateTime_Check(dtobj):
 *                 dt = dtobj
 */
  __pyx_t_1 = PyDate_Check(__pyx_v_dtobj);
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":149
 *         # <'datetime.date'> subclass
 *         elif datetime.PyDate_Check(dtobj):
 *             if datetime.PyDateTime_Check(dtobj):             # <<<<<<<<<<<<<<
 *                 dt = dtobj
 *             else:
 */
    __pyx_t_1 = PyDateTime_Check(__pyx_v_dtobj);
    if (__pyx_t_1) {

      /* "cytimes/pddatetime.py":150
 *         elif datetime.PyDate_Check(dtobj):
 *             if datetime.PyDateTime_Check(dtobj):
 *                 dt = dtobj             # <<<<<<<<<<<<<<
 *             else:
 *                 dt = cydt.dt_fr_date(dtobj, None, 0)
 */
      __Pyx_INCREF(__pyx_v_dtobj);
      __pyx_v_dt = __pyx_v_dtobj;

      /* "cytimes/pddatetime.py":149
 *         # <'datetime.date'> subclass
 *         elif datetime.PyDate_Check(dtobj):
 *             if datetime.PyDateTime_Check(dtobj):             # <<<<<<<<<<<<<<
 *                 dt = dtobj
 *             else:
 */
      goto __pyx_L21;
    }

    /* "cytimes/pddatetime.py":152
 *                 dt = dtobj
 *             else:
 *                 dt = cydt.dt_fr_date(dtobj, None, 0)             # <<<<<<<<<<<<<<
 *         # <'pydt'>
 *         elif isinstance(dtobj, pydt):
 */
    /*else*/ {
      if (!(likely(((__pyx_v_dtobj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtobj, __pyx_ptype_7cpython_8datetime_date))))) __PYX_ERR(0, 152, __pyx_L1_error)
      __pyx_t_22.__pyx_n = 2;
      __pyx_t_22.tzinfo = ((PyDateTime_TZInfo *)Py_None);
      __pyx_t_22.fold = 0;
      __pyx_t_9 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt_fr_date(((PyDateTime_Date *)__pyx_v_dtobj), &__pyx_t_22)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 152, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_v_dt = __pyx_t_9;
      __pyx_t_9 = 0;
    }
    __pyx_L21:;

    /* "cytimes/pddatetime.py":148
 *                 raise errors.InvalidDatetimeObjectError("<'pddt'> %s." % (err)) from err
 *         # <'datetime.date'> subclass
 *         elif datetime.PyDate_Check(dtobj):             # <<<<<<<<<<<<<<
 *             if datetime.PyDateTime_Check(dtobj):
 *                 dt = dtobj
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":154
 *                 dt = cydt.dt_fr_date(dtobj, None, 0)
 *         # <'pydt'>
 *         elif isinstance(dtobj, pydt):             # <<<<<<<<<<<<<<
 *             dt = access_pydt(dtobj)
 *         # <'numpy.datetime64'>
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dtobj, __pyx_ptype_7cytimes_10pydatetime_pydt); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":155
 *         # <'pydt'>
 *         elif isinstance(dtobj, pydt):
 *             dt = access_pydt(dtobj)             # <<<<<<<<<<<<<<
 *         # <'numpy.datetime64'>
 *         elif np.is_datetime64_object(dtobj):
 */
    if (!(likely(((__pyx_v_dtobj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtobj, __pyx_ptype_7cytimes_10pydatetime_pydt))))) __PYX_ERR(0, 155, __pyx_L1_error)
    __pyx_t_9 = ((PyObject *)__pyx_f_7cytimes_10pydatetime_access_pydt(((struct __pyx_obj_7cytimes_10pydatetime_pydt *)__pyx_v_dtobj))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 155, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_v_dt = __pyx_t_9;
    __pyx_t_9 = 0;

    /* "cytimes/pddatetime.py":154
 *                 dt = cydt.dt_fr_date(dtobj, None, 0)
 *         # <'pydt'>
 *         elif isinstance(dtobj, pydt):             # <<<<<<<<<<<<<<
 *             dt = access_pydt(dtobj)
 *         # <'numpy.datetime64'>
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":157
 *             dt = access_pydt(dtobj)
 *         # <'numpy.datetime64'>
 *         elif np.is_datetime64_object(dtobj):             # <<<<<<<<<<<<<<
 *             dt = dtobj
 *         # Invalid
 */
  __pyx_t_1 = __pyx_f_5numpy_is_datetime64_object(__pyx_v_dtobj);
  if (likely(__pyx_t_1)) {

    /* "cytimes/pddatetime.py":158
 *         # <'numpy.datetime64'>
 *         elif np.is_datetime64_object(dtobj):
 *             dt = dtobj             # <<<<<<<<<<<<<<
 *         # Invalid
 *         else:
 */
    __Pyx_INCREF(__pyx_v_dtobj);
    __pyx_v_dt = __pyx_v_dtobj;

    /* "cytimes/pddatetime.py":157
 *             dt = access_pydt(dtobj)
 *         # <'numpy.datetime64'>
 *         elif np.is_datetime64_object(dtobj):             # <<<<<<<<<<<<<<
 *             dt = dtobj
 *         # Invalid
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":161
 *         # Invalid
 *         else:
 *             raise errors.InvalidDatetimeObjectError(             # <<<<<<<<<<<<<<
 *                 "<'pddt'>\nUnsupported 'dtobj' type: %s %r." % (type(dtobj), dtobj)
 *             )
 */
  /*else*/ {
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_errors); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":162
 *         else:
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'pddt'>\nUnsupported 'dtobj' type: %s %r." % (type(dtobj), dtobj)             # <<<<<<<<<<<<<<
 *             )
 *         # Generate pddt
 */
    __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_23 = 0;
    __pyx_t_24 = 127;
    __Pyx_INCREF(__pyx_kp_u_pddt_Unsupported_dtobj_type);
    __pyx_t_23 += 35;
    __Pyx_GIVEREF(__pyx_kp_u_pddt_Unsupported_dtobj_type);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_pddt_Unsupported_dtobj_type);
    __pyx_t_10 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_dtobj))), __pyx_empty_unicode); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_24 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) > __pyx_t_24) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) : __pyx_t_24;
    __pyx_t_23 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_10);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_10);
    __pyx_t_10 = 0;
    __Pyx_INCREF(__pyx_kp_u__7);
    __pyx_t_23 += 1;
    __Pyx_GIVEREF(__pyx_kp_u__7);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u__7);
    __pyx_t_10 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_dtobj), __pyx_empty_unicode); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_24 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) > __pyx_t_24) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) : __pyx_t_24;
    __pyx_t_23 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_10);
    PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_10);
    __pyx_t_10 = 0;
    __Pyx_INCREF(__pyx_kp_u__8);
    __pyx_t_23 += 1;
    __Pyx_GIVEREF(__pyx_kp_u__8);
    PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__8);
    __pyx_t_10 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_23, __pyx_t_24); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = NULL;
    __pyx_t_14 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
        __pyx_t_14 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_10};
      __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 161, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __Pyx_Raise(__pyx_t_9, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __PYX_ERR(0, 161, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cytimes/pddatetime.py":165
 *             )
 *         # Generate pddt
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_INCREF(__pyx_v_dt);
  __Pyx_GIVEREF(__pyx_v_dt);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_v_dt)) __PYX_ERR(0, 165, __pyx_L1_error);
  { PyObject* __pyx_temp = PyNumber_InPlaceMultiply(__pyx_t_9, __pyx_v_size); if (unlikely(!__pyx_temp)) __PYX_ERR(0, 165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_temp);
    __Pyx_DECREF(__pyx_t_9);
    __pyx_t_9 = __pyx_temp;
  }
  __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9)) __PYX_ERR(0, 165, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_t_9 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 165, __pyx_L1_error)
  __pyx_t_10 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_10);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_10)) __PYX_ERR(0, 165, __pyx_L1_error);
  __pyx_t_10 = 0;
  __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_unit, __pyx_v_unit) < 0) __PYX_ERR(0, 165, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_copy, Py_False) < 0) __PYX_ERR(0, 165, __pyx_L1_error)
  __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_cls), __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 165, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_6);
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":96
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_dtobj(
 *         cls,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.from_dtobj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":167
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_datetime(
 *         cls,
 */

/* Python wrapper */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_5from_datetime(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_4from_datetime, "(Class method) Create pddt from datetime values `<'pddt'>`.\n\n        :param size `<'int'>`: The size of the array.\n        :param year `<'int'>`: The year of the datetime.\n        :param month `<'int'>`: The month of the datetime.\n        :param day `<'int'>`: The day of the datetime.\n        :param hour `<'int'>`: The hour of the datetime. Defaults to `0`.\n        :param minute `<'int'>`: The minute of the datetime. Defaults to `0`.\n        :param second `<'int'>`: The second of the datetime. Defaults to `0`.\n        :param microsecond `<'int'>`: The microsecond of the datetime. Defaults to `0`.\n        :param nanosecond `<'int'>`: The nanosecond of the datetime. Defaults to `0`.\n        :param tz `<'str/datetime.tzinfo/None'>`: The timezone of the datetime. Defaults to `None`.\n        :param name `<'str'>`: The name of the array. Defaults to `None`.\n        :param unit `<'str'>`: The desired time resolution. Defaults to `None`.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_5from_datetime = {"from_datetime", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_5from_datetime, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_4from_datetime};
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_5from_datetime(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_size = 0;
  PyObject *__pyx_v_year = 0;
  PyObject *__pyx_v_month = 0;
  PyObject *__pyx_v_day = 0;
  PyObject *__pyx_v_hour = 0;
  PyObject *__pyx_v_minute = 0;
  PyObject *__pyx_v_second = 0;
  PyObject *__pyx_v_microsecond = 0;
  PyObject *__pyx_v_nanosecond = 0;
  PyObject *__pyx_v_tz = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_unit = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_datetime (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size,&__pyx_n_s_year,&__pyx_n_s_month,&__pyx_n_s_day,&__pyx_n_s_hour,&__pyx_n_s_minute,&__pyx_n_s_second,&__pyx_n_s_microsecond,&__pyx_n_s_nanosecond,&__pyx_n_s_tz,&__pyx_n_s_name,&__pyx_n_s_unit,0};
    values[4] = __Pyx_Arg_NewRef_FASTCALL(__pyx_k__9);
    values[5] = __Pyx_Arg_NewRef_FASTCALL(__pyx_k__10);
    values[6] = __Pyx_Arg_NewRef_FASTCALL(__pyx_k__11);
    values[7] = __Pyx_Arg_NewRef_FASTCALL(__pyx_k__12);
    values[8] = __Pyx_Arg_NewRef_FASTCALL(__pyx_k__13);

    /* "cytimes/pddatetime.py":179
 *         microsecond: int = 0,
 *         nanosecond: int = 0,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 */
    values[9] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":180
 *         nanosecond: int = 0,
 *         tz: str | datetime.tzinfo | None = None,
 *         name: str | None = None,             # <<<<<<<<<<<<<<
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 *     ) -> pddt:
 */
    values[10] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":181
 *         tz: str | datetime.tzinfo | None = None,
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,             # <<<<<<<<<<<<<<
 *     ) -> pddt:
 *         """(Class method) Create pddt from datetime values `<'pddt'>`.
 */
    values[11] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case 12: values[11] = __Pyx_Arg_FASTCALL(__pyx_args, 11);
        CYTHON_FALLTHROUGH;
        case 11: values[10] = __Pyx_Arg_FASTCALL(__pyx_args, 10);
        CYTHON_FALLTHROUGH;
        case 10: values[9] = __Pyx_Arg_FASTCALL(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_year)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[1]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("from_datetime", 0, 4, 12, 1); __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[2]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("from_datetime", 0, 4, 12, 2); __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[3]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("from_datetime", 0, 4, 12, 3); __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hour);
          if (value) { values[4] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_minute);
          if (value) { values[5] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_second);
          if (value) { values[6] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_microsecond);
          if (value) { values[7] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nanosecond);
          if (value) { values[8] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  9:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_tz);
          if (value) { values[9] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case 10:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name);
          if (value) { values[10] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case 11:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unit);
          if (value) { values[11] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "from_datetime") < 0)) __PYX_ERR(0, 167, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case 12: values[11] = __Pyx_Arg_FASTCALL(__pyx_args, 11);
        CYTHON_FALLTHROUGH;
        case 11: values[10] = __Pyx_Arg_FASTCALL(__pyx_args, 10);
        CYTHON_FALLTHROUGH;
        case 10: values[9] = __Pyx_Arg_FASTCALL(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_size = ((PyObject*)values[0]);
    __pyx_v_year = ((PyObject*)values[1]);
    __pyx_v_month = ((PyObject*)values[2]);
    __pyx_v_day = ((PyObject*)values[3]);
    __pyx_v_hour = ((PyObject*)values[4]);
    __pyx_v_minute = ((PyObject*)values[5]);
    __pyx_v_second = ((PyObject*)values[6]);
    __pyx_v_microsecond = ((PyObject*)values[7]);
    __pyx_v_nanosecond = ((PyObject*)values[8]);
    __pyx_v_tz = values[9];
    __pyx_v_name = values[10];
    __pyx_v_unit = values[11];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_datetime", 0, 4, 12, __pyx_nargs); __PYX_ERR(0, 167, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.from_datetime", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_size), (&PyInt_Type), 0, "size", 1))) __PYX_ERR(0, 170, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_year), (&PyInt_Type), 0, "year", 1))) __PYX_ERR(0, 171, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_month), (&PyInt_Type), 0, "month", 1))) __PYX_ERR(0, 172, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_day), (&PyInt_Type), 0, "day", 1))) __PYX_ERR(0, 173, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hour), (&PyInt_Type), 0, "hour", 1))) __PYX_ERR(0, 174, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_minute), (&PyInt_Type), 0, "minute", 1))) __PYX_ERR(0, 175, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_second), (&PyInt_Type), 0, "second", 1))) __PYX_ERR(0, 176, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_microsecond), (&PyInt_Type), 0, "microsecond", 1))) __PYX_ERR(0, 177, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nanosecond), (&PyInt_Type), 0, "nanosecond", 1))) __PYX_ERR(0, 178, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4from_datetime(((PyTypeObject*)__pyx_v_cls), __pyx_v_size, __pyx_v_year, __pyx_v_month, __pyx_v_day, __pyx_v_hour, __pyx_v_minute, __pyx_v_second, __pyx_v_microsecond, __pyx_v_nanosecond, __pyx_v_tz, __pyx_v_name, __pyx_v_unit);

  /* "cytimes/pddatetime.py":167
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_datetime(
 *         cls,
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_4from_datetime(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_size, PyObject *__pyx_v_year, PyObject *__pyx_v_month, PyObject *__pyx_v_day, PyObject *__pyx_v_hour, PyObject *__pyx_v_minute, PyObject *__pyx_v_second, PyObject *__pyx_v_microsecond, PyObject *__pyx_v_nanosecond, PyObject *__pyx_v_tz, PyObject *__pyx_v_name, PyObject *__pyx_v_unit) {
  PyObject *__pyx_v_dt = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  struct __pyx_opt_args_7cpython_8datetime_datetime_new __pyx_t_17;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_datetime", 1);

  /* "cytimes/pddatetime.py":200
 *         # fmt: off
 *         # With nanosecond
 *         if nanosecond:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt = Timestamp(
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_nanosecond); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 200, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":201
 *         # With nanosecond
 *         if nanosecond:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt = Timestamp(
 *                     year=year, month=month, day=day, hour=hour, minute=minute,
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      /*try:*/ {

        /* "cytimes/pddatetime.py":202
 *         if nanosecond:
 *             try:
 *                 dt = Timestamp(             # <<<<<<<<<<<<<<
 *                     year=year, month=month, day=day, hour=hour, minute=minute,
 *                     second=second, microsecond=microsecond, nanosecond=nanosecond,
 */
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_Timestamp); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 202, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_5);

        /* "cytimes/pddatetime.py":203
 *             try:
 *                 dt = Timestamp(
 *                     year=year, month=month, day=day, hour=hour, minute=minute,             # <<<<<<<<<<<<<<
 *                     second=second, microsecond=microsecond, nanosecond=nanosecond,
 *                     tz=parse_tzinfo(tz) ) # type: ignore
 */
        __pyx_t_6 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 203, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_year, __pyx_v_year) < 0) __PYX_ERR(0, 203, __pyx_L4_error)
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_month, __pyx_v_month) < 0) __PYX_ERR(0, 203, __pyx_L4_error)
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_day, __pyx_v_day) < 0) __PYX_ERR(0, 203, __pyx_L4_error)
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_hour, __pyx_v_hour) < 0) __PYX_ERR(0, 203, __pyx_L4_error)
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_minute, __pyx_v_minute) < 0) __PYX_ERR(0, 203, __pyx_L4_error)

        /* "cytimes/pddatetime.py":204
 *                 dt = Timestamp(
 *                     year=year, month=month, day=day, hour=hour, minute=minute,
 *                     second=second, microsecond=microsecond, nanosecond=nanosecond,             # <<<<<<<<<<<<<<
 *                     tz=parse_tzinfo(tz) ) # type: ignore
 *             except OutOfBoundsDatetime:
 */
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_second, __pyx_v_second) < 0) __PYX_ERR(0, 203, __pyx_L4_error)
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_microsecond, __pyx_v_microsecond) < 0) __PYX_ERR(0, 203, __pyx_L4_error)
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_nanosecond, __pyx_v_nanosecond) < 0) __PYX_ERR(0, 203, __pyx_L4_error)

        /* "cytimes/pddatetime.py":205
 *                     year=year, month=month, day=day, hour=hour, minute=minute,
 *                     second=second, microsecond=microsecond, nanosecond=nanosecond,
 *                     tz=parse_tzinfo(tz) ) # type: ignore             # <<<<<<<<<<<<<<
 *             except OutOfBoundsDatetime:
 *                 dt = datetime.datetime_new(
 */
        __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_parse_tzinfo(__pyx_v_tz); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 205, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_tz, __pyx_t_7) < 0) __PYX_ERR(0, 203, __pyx_L4_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "cytimes/pddatetime.py":202
 *         if nanosecond:
 *             try:
 *                 dt = Timestamp(             # <<<<<<<<<<<<<<
 *                     year=year, month=month, day=day, hour=hour, minute=minute,
 *                     second=second, microsecond=microsecond, nanosecond=nanosecond,
 */
        __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 202, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_dt = __pyx_t_7;
        __pyx_t_7 = 0;

        /* "cytimes/pddatetime.py":201
 *         # With nanosecond
 *         if nanosecond:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt = Timestamp(
 *                     year=year, month=month, day=day, hour=hour, minute=minute,
 */
      }
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":206
 *                     second=second, microsecond=microsecond, nanosecond=nanosecond,
 *                     tz=parse_tzinfo(tz) ) # type: ignore
 *             except OutOfBoundsDatetime:             # <<<<<<<<<<<<<<
 *                 dt = datetime.datetime_new(
 *                     year, month, day, hour, minute,
 */
      __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_6, &__pyx_t_5);
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_OutOfBoundsDatetime); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 206, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_7, __pyx_t_8);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_ErrRestore(__pyx_t_7, __pyx_t_6, __pyx_t_5);
      __pyx_t_7 = 0; __pyx_t_6 = 0; __pyx_t_5 = 0;
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.from_datetime", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 206, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cytimes/pddatetime.py":208
 *             except OutOfBoundsDatetime:
 *                 dt = datetime.datetime_new(
 *                     year, month, day, hour, minute,             # <<<<<<<<<<<<<<
 *                     second, microsecond, parse_tzinfo(tz), 0 # type: ignore
 *                 )
 */
        __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_year); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L6_except_error)
        __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_v_month); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L6_except_error)
        __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_day); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L6_except_error)
        __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_hour); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L6_except_error)
        __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_v_minute); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L6_except_error)

        /* "cytimes/pddatetime.py":209
 *                 dt = datetime.datetime_new(
 *                     year, month, day, hour, minute,
 *                     second, microsecond, parse_tzinfo(tz), 0 # type: ignore             # <<<<<<<<<<<<<<
 *                 )
 *         # Without nanosecond
 */
        __pyx_t_14 = __Pyx_PyInt_As_int(__pyx_v_second); if (unlikely((__pyx_t_14 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 209, __pyx_L6_except_error)
        __pyx_t_15 = __Pyx_PyInt_As_int(__pyx_v_microsecond); if (unlikely((__pyx_t_15 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 209, __pyx_L6_except_error)
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_parse_tzinfo(__pyx_v_tz); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 209, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_8);

        /* "cytimes/pddatetime.py":207
 *                     tz=parse_tzinfo(tz) ) # type: ignore
 *             except OutOfBoundsDatetime:
 *                 dt = datetime.datetime_new(             # <<<<<<<<<<<<<<
 *                     year, month, day, hour, minute,
 *                     second, microsecond, parse_tzinfo(tz), 0 # type: ignore
 */
        __pyx_t_17.__pyx_n = 1;
        __pyx_t_17.fold = 0;
        __pyx_t_16 = ((PyObject *)__pyx_f_7cpython_8datetime_datetime_new(__pyx_t_9, __pyx_t_10, __pyx_t_11, __pyx_t_12, __pyx_t_13, __pyx_t_14, __pyx_t_15, __pyx_t_8, &__pyx_t_17)); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 207, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_16);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF_SET(__pyx_v_dt, __pyx_t_16);
        __pyx_t_16 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cytimes/pddatetime.py":201
 *         # With nanosecond
 *         if nanosecond:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt = Timestamp(
 *                     year=year, month=month, day=day, hour=hour, minute=minute,
 */
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
      __pyx_L9_try_end:;
    }

    /* "cytimes/pddatetime.py":200
 *         # fmt: off
 *         # With nanosecond
 *         if nanosecond:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt = Timestamp(
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":213
 *         # Without nanosecond
 *         else:
 *             dt = datetime.datetime_new(             # <<<<<<<<<<<<<<
 *                 year, month, day, hour, minute,
 *                 second, microsecond, parse_tzinfo(tz), 0 # type: ignore
 */
  /*else*/ {

    /* "cytimes/pddatetime.py":214
 *         else:
 *             dt = datetime.datetime_new(
 *                 year, month, day, hour, minute,             # <<<<<<<<<<<<<<
 *                 second, microsecond, parse_tzinfo(tz), 0 # type: ignore
 *             )
 */
    __pyx_t_15 = __Pyx_PyInt_As_int(__pyx_v_year); if (unlikely((__pyx_t_15 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 214, __pyx_L1_error)
    __pyx_t_14 = __Pyx_PyInt_As_int(__pyx_v_month); if (unlikely((__pyx_t_14 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 214, __pyx_L1_error)
    __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_v_day); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 214, __pyx_L1_error)
    __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_hour); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 214, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_minute); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 214, __pyx_L1_error)

    /* "cytimes/pddatetime.py":215
 *             dt = datetime.datetime_new(
 *                 year, month, day, hour, minute,
 *                 second, microsecond, parse_tzinfo(tz), 0 # type: ignore             # <<<<<<<<<<<<<<
 *             )
 *         # fmt: on
 */
    __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_v_second); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 215, __pyx_L1_error)
    __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_microsecond); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 215, __pyx_L1_error)
    __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_parse_tzinfo(__pyx_v_tz); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "cytimes/pddatetime.py":213
 *         # Without nanosecond
 *         else:
 *             dt = datetime.datetime_new(             # <<<<<<<<<<<<<<
 *                 year, month, day, hour, minute,
 *                 second, microsecond, parse_tzinfo(tz), 0 # type: ignore
 */
    __pyx_t_17.__pyx_n = 1;
    __pyx_t_17.fold = 0;
    __pyx_t_6 = ((PyObject *)__pyx_f_7cpython_8datetime_datetime_new(__pyx_t_15, __pyx_t_14, __pyx_t_13, __pyx_t_12, __pyx_t_11, __pyx_t_10, __pyx_t_9, __pyx_t_7, &__pyx_t_17)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 213, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_v_dt = __pyx_t_6;
    __pyx_t_6 = 0;
  }
  __pyx_L3:;

  /* "cytimes/pddatetime.py":219
 *         # fmt: on
 *         # Generate pddt
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_INCREF(__pyx_v_dt);
  __Pyx_GIVEREF(__pyx_v_dt);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_v_dt)) __PYX_ERR(0, 219, __pyx_L1_error);
  { PyObject* __pyx_temp = PyNumber_InPlaceMultiply(__pyx_t_6, __pyx_v_size); if (unlikely(!__pyx_temp)) __PYX_ERR(0, 219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_temp);
    __Pyx_DECREF(__pyx_t_6);
    __pyx_t_6 = __pyx_temp;
  }
  __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6)) __PYX_ERR(0, 219, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 219, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5)) __PYX_ERR(0, 219, __pyx_L1_error);
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_unit, __pyx_v_unit) < 0) __PYX_ERR(0, 219, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_copy, Py_False) < 0) __PYX_ERR(0, 219, __pyx_L1_error)
  __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_cls), __pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 219, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_7);
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":167
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_datetime(
 *         cls,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.from_datetime", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":221
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_range(
 *         cls,
 */

/* Python wrapper */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_7from_range(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_6from_range, "(Class method) Create pddt from a fixed frequency `<'pddt'>`.\n\n        Returns the range of equally spaced time points (where the difference between any\n        two adjacent points is specified by the given frequency) such that they all\n        satisfy `start <[=] x <[=] end`, where the first one and the last one are, resp.,\n        the first and last time points in that range that fall on the boundary of ``freq``\n        (if given as a frequency string) or that are valid for 'freq'. For more information\n        please refer to `pandas.date_range()` documentation.\n\n        :param start `<'object'>`: The left bound of the range. Defaults to `None`.\n        :param end `<'object'>`: The right bound of the range. Defaults to `None`.\n        :param freq `<'str'>`: The frequency for the range. Defaults to `'D'`.\n        :param periods `<'int'>`: The number of periods to generate. Defaults to `None`.\n        :param tz `<'str/datetime.tzinfo/None'>`: The timezone of the range. Defaults to `None`.\n        :param inclusive `<'str'>`: Include boundaries, whether to set each bound as closed or open. Defaults to `'both'`.\n        :param normalize `<'bool'>`: Normalize 'start/end' to midnight before generating date range. Defaults to `False`.\n        :param name `<'str'>`: The name of the array. Defaults to `None`.\n        :param unit `<'str'>`: The desired time resolution. Defaults to `None`.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_7from_range = {"from_range", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_7from_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_6from_range};
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_7from_range(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_start = 0;
  PyObject *__pyx_v_end = 0;
  PyObject *__pyx_v_freq = 0;
  PyObject *__pyx_v_periods = 0;
  PyObject *__pyx_v_tz = 0;
  PyObject *__pyx_v_inclusive = 0;
  PyObject *__pyx_v_normalize = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_unit = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_range (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_start,&__pyx_n_s_end,&__pyx_n_s_freq,&__pyx_n_s_periods,&__pyx_n_s_tz,&__pyx_n_s_inclusive,&__pyx_n_s_normalize,&__pyx_n_s_name,&__pyx_n_s_unit,0};

    /* "cytimes/pddatetime.py":224
 *     def from_range(
 *         cls,
 *         start: object = None,             # <<<<<<<<<<<<<<
 *         end: object = None,
 *         freq: Literal["Y", "M", "W", "D", "B" "h", "m", "s", "ms", "us", "ns"] = "D",
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":225
 *         cls,
 *         start: object = None,
 *         end: object = None,             # <<<<<<<<<<<<<<
 *         freq: Literal["Y", "M", "W", "D", "B" "h", "m", "s", "ms", "us", "ns"] = "D",
 *         periods: int = None,
 */
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_D));

    /* "cytimes/pddatetime.py":227
 *         end: object = None,
 *         freq: Literal["Y", "M", "W", "D", "B" "h", "m", "s", "ms", "us", "ns"] = "D",
 *         periods: int = None,             # <<<<<<<<<<<<<<
 *         tz: str | datetime.tzinfo | None = None,
 *         inclusive: Literal["left", "right", "both", "neither"] = "both",
 */
    values[3] = __Pyx_Arg_NewRef_FASTCALL(((PyObject*)Py_None));

    /* "cytimes/pddatetime.py":228
 *         freq: Literal["Y", "M", "W", "D", "B" "h", "m", "s", "ms", "us", "ns"] = "D",
 *         periods: int = None,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         inclusive: Literal["left", "right", "both", "neither"] = "both",
 *         normalize: bool = False,
 */
    values[4] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    values[5] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_both));

    /* "cytimes/pddatetime.py":230
 *         tz: str | datetime.tzinfo | None = None,
 *         inclusive: Literal["left", "right", "both", "neither"] = "both",
 *         normalize: bool = False,             # <<<<<<<<<<<<<<
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 */
    values[6] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_False));

    /* "cytimes/pddatetime.py":231
 *         inclusive: Literal["left", "right", "both", "neither"] = "both",
 *         normalize: bool = False,
 *         name: str | None = None,             # <<<<<<<<<<<<<<
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 *     ) -> pddt:
 */
    values[7] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":232
 *         normalize: bool = False,
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,             # <<<<<<<<<<<<<<
 *     ) -> pddt:
 *         """(Class method) Create pddt from a fixed frequency `<'pddt'>`.
 */
    values[8] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_start);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_end);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_freq);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_periods);
          if (value) { values[3] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_tz);
          if (value) { values[4] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_inclusive);
          if (value) { values[5] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_normalize);
          if (value) { values[6] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name);
          if (value) { values[7] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unit);
          if (value) { values[8] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 221, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "from_range") < 0)) __PYX_ERR(0, 221, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_start = values[0];
    __pyx_v_end = values[1];
    __pyx_v_freq = values[2];
    __pyx_v_periods = ((PyObject*)values[3]);
    __pyx_v_tz = values[4];
    __pyx_v_inclusive = values[5];
    __pyx_v_normalize = values[6];
    __pyx_v_name = values[7];
    __pyx_v_unit = values[8];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_range", 0, 0, 9, __pyx_nargs); __PYX_ERR(0, 221, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.from_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_periods), (&PyInt_Type), 1, "periods", 1))) __PYX_ERR(0, 227, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_6from_range(((PyTypeObject*)__pyx_v_cls), __pyx_v_start, __pyx_v_end, __pyx_v_freq, __pyx_v_periods, __pyx_v_tz, __pyx_v_inclusive, __pyx_v_normalize, __pyx_v_name, __pyx_v_unit);

  /* "cytimes/pddatetime.py":221
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_range(
 *         cls,
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_6from_range(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_start, PyObject *__pyx_v_end, PyObject *__pyx_v_freq, PyObject *__pyx_v_periods, PyObject *__pyx_v_tz, PyObject *__pyx_v_inclusive, PyObject *__pyx_v_normalize, PyObject *__pyx_v_name, PyObject *__pyx_v_unit) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_range", 1);

  /* "cytimes/pddatetime.py":254
 *         """
 *         # fmt: off
 *         return cls(FN_PD_DATERANGE(             # <<<<<<<<<<<<<<
 *             start=start, end=end, periods=periods, freq="min" if freq == "m" else freq, tz=tz,
 *             normalize=normalize, name=name, inclusive=inclusive, unit=unit),
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);

  /* "cytimes/pddatetime.py":255
 *         # fmt: off
 *         return cls(FN_PD_DATERANGE(
 *             start=start, end=end, periods=periods, freq="min" if freq == "m" else freq, tz=tz,             # <<<<<<<<<<<<<<
 *             normalize=normalize, name=name, inclusive=inclusive, unit=unit),
 *             copy=False,
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_start, __pyx_v_start) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_end, __pyx_v_end) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_periods, __pyx_v_periods) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_freq, __pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 255, __pyx_L1_error)
  if (__pyx_t_3) {
    __Pyx_INCREF(__pyx_n_u_min);
    __pyx_t_2 = __pyx_n_u_min;
  } else {
    __Pyx_INCREF(__pyx_v_freq);
    __pyx_t_2 = __pyx_v_freq;
  }
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_freq, __pyx_t_2) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_tz, __pyx_v_tz) < 0) __PYX_ERR(0, 255, __pyx_L1_error)

  /* "cytimes/pddatetime.py":256
 *         return cls(FN_PD_DATERANGE(
 *             start=start, end=end, periods=periods, freq="min" if freq == "m" else freq, tz=tz,
 *             normalize=normalize, name=name, inclusive=inclusive, unit=unit),             # <<<<<<<<<<<<<<
 *             copy=False,
 *         )
 */
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_normalize, __pyx_v_normalize) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_inclusive, __pyx_v_inclusive) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_unit, __pyx_v_unit) < 0) __PYX_ERR(0, 255, __pyx_L1_error)

  /* "cytimes/pddatetime.py":254
 *         """
 *         # fmt: off
 *         return cls(FN_PD_DATERANGE(             # <<<<<<<<<<<<<<
 *             start=start, end=end, periods=periods, freq="min" if freq == "m" else freq, tz=tz,
 *             normalize=normalize, name=name, inclusive=inclusive, unit=unit),
 */
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_10pddatetime_FN_PD_DATERANGE, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error);
  __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":257
 *             start=start, end=end, periods=periods, freq="min" if freq == "m" else freq, tz=tz,
 *             normalize=normalize, name=name, inclusive=inclusive, unit=unit),
 *             copy=False,             # <<<<<<<<<<<<<<
 *         )
 *         # fmt: on
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_copy, Py_False) < 0) __PYX_ERR(0, 257, __pyx_L1_error)

  /* "cytimes/pddatetime.py":254
 *         """
 *         # fmt: off
 *         return cls(FN_PD_DATERANGE(             # <<<<<<<<<<<<<<
 *             start=start, end=end, periods=periods, freq="min" if freq == "m" else freq, tz=tz,
 *             normalize=normalize, name=name, inclusive=inclusive, unit=unit),
 */
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_cls), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 254, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_4);
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":221
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_range(
 *         cls,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.from_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":261
 *         # fmt: on
 * 
 *     def __init__(             # <<<<<<<<<<<<<<
 *         self,
 *         dtsobj: object,
 */

/* Python wrapper */
static int __pyx_pw_7cytimes_10pddatetime_4pddt_9__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_8__init__, "The pddt (Pandas Datetime) that makes working with Series[Timestamp] easier.\n\n        ### Datetimes Object\n        :param dtsobj `<'object'>`: The datetimes object to convert to pddt.\n        - Supported data types:\n            1. Sequence of <'datetime'> or datetime <'str'>\n            2. `<'Series'>` of timestamp or datetime object\n            3. `<'DatetimeIndex'>`\n            4. `<'ndarray'> of datetime64 or datetime object\n            5. `<'pddt'>`\n\n        ### Parser for 'dtsobj'. (Only applicable when 'dtsobj' is sequence of datetime <'str'>).\n        :param default `<'object'>`: The default to fill-in missing datetime elements. Defaults to `None`.\n        - `<'date'>`: If parser failed to extract Y/M/D values from the string,\n           the give 'date' will be used to fill-in the missing Y/M/D values.\n        - `<'datetime'>`: If parser failed to extract datetime elements from\n           the string, the given 'datetime' will be used to fill-in the\n           missing Y/M/D & H/M/S.f values.\n        - `None`: raise error if Y/M/D values are missing.\n\n        :param day1st `<'bool'>`: Whether to interpret first ambiguous date values as day. Defaults to `None`.\n        :param year1st `<'bool'>`: Whether to interpret first the ambiguous date value as year. Defaults to `None`.\n        - Both the 'day1st' & 'year1st' arguments works together to determine how\n          to interpret ambiguous Y/M/D values. If not provided (set to `None`),\n          defaults to the 'day1st' & 'year1st' settings of the Parser `<'Config'>`.\n        - For more information, please refer to the `cytimes.Parser.parse()` method.\n\n        :param utc `<'bool'>`: Control timezone-related parsing, localization and conversion. Defaults to `False`.\n        - If `True`, `ALWAYS` parse to tinzome-aware UTC-localized `<'Timestamp'>`. Timezone-naive inputs\n          are `LOCALIZED` as UTC, while timezone-aware inputs are `CONVERTED` to UTC.\n        - If `False`, Timezone-""naive inputs remain naive, while timezone-aware ones will keep their timezone.\n        - For more information, please refer to `pandas.to_datetime()` documentation.\n          <https://pandas.pydata.org/docs/reference/api/pandas.to_datetime.html>\n\n        :param format `<str>`: The strftime to parse the 'dtsobj' with. Defaults to `None`.\n        - strftime format (e.g. \"%d/%m/%Y\"): Note that \"%f\" will parse all the way to nanoseconds.\n          For more infomation, please refer to <https://docs.python.org/3/library/datetime.html\n          #strftime-and-strptime-behavior>.\n        - \"ISO8601\": Parse any `ISO8601` time string (not necessarily in exactly the same format).\n          For more infomation, please refer to <https://en.wikipedia.org/wiki/ISO_8601>.\n        - \"mixed\": Infer the format for each element individually. This is risky, and should probably\n          use it along with `dayfirst`.\n\n        :param exact: `<'bool'>` Whether to parse with the exact provided 'format'. Defaults to `True`.\n        - If `True`, perform an exact 'format' match (Only applicable when 'format' is provided).\n        - If `False`, allow the 'format' to match anywhere in the string.\n        - Can `NOT` be used alongside `format='ISO8601'` or `format='mixed'`.\n\n        :param cfg `<'Config'>`: The configurations for the Parser. Defaults to `None`.\n\n        ### Arguments for the array.\n        :param name `<'str'>`: The name of the array. Defaults to `None`.\n        :param unit `<'str'>`: The desired time resolution. Defaults to `None`.\n        :param copy `<'bool'>`: Whether to copy the data. Defaults to `True`.\n        - If `copy=False` and 'name' is given, the original series name will be replaced.\n        ");
#if CYTHON_UPDATE_DESCRIPTOR_DOC
struct wrapperbase __pyx_wrapperbase_7cytimes_10pddatetime_4pddt_8__init__;
#endif
static int __pyx_pw_7cytimes_10pddatetime_4pddt_9__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_dtsobj = 0;
  PyObject *__pyx_v_default = 0;
  PyObject *__pyx_v_day1st = 0;
  PyObject *__pyx_v_year1st = 0;
  PyObject *__pyx_v_utc = 0;
  PyObject *__pyx_v_format = 0;
  PyObject *__pyx_v_exact = 0;
  PyObject *__pyx_v_cfg = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_copy = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dtsobj,&__pyx_n_s_default,&__pyx_n_s_day1st,&__pyx_n_s_year1st,&__pyx_n_s_utc,&__pyx_n_s_format,&__pyx_n_s_exact,&__pyx_n_s_cfg,&__pyx_n_s_name,&__pyx_n_s_unit,&__pyx_n_s_copy,0};

    /* "cytimes/pddatetime.py":264
 *         self,
 *         dtsobj: object,
 *         default: object | None = None,             # <<<<<<<<<<<<<<
 *         day1st: bool | None = None,
 *         year1st: bool | None = None,
 */
    values[1] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":265
 *         dtsobj: object,
 *         default: object | None = None,
 *         day1st: bool | None = None,             # <<<<<<<<<<<<<<
 *         year1st: bool | None = None,
 *         utc: bool = False,
 */
    values[2] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":266
 *         default: object | None = None,
 *         day1st: bool | None = None,
 *         year1st: bool | None = None,             # <<<<<<<<<<<<<<
 *         utc: bool = False,
 *         format: str = None,
 */
    values[3] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":267
 *         day1st: bool | None = None,
 *         year1st: bool | None = None,
 *         utc: bool = False,             # <<<<<<<<<<<<<<
 *         format: str = None,
 *         exact: bool = True,
 */
    values[4] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_False));

    /* "cytimes/pddatetime.py":268
 *         year1st: bool | None = None,
 *         utc: bool = False,
 *         format: str = None,             # <<<<<<<<<<<<<<
 *         exact: bool = True,
 *         cfg: Config | None = None,
 */
    values[5] = __Pyx_Arg_NewRef_VARARGS(((PyObject*)Py_None));

    /* "cytimes/pddatetime.py":269
 *         utc: bool = False,
 *         format: str = None,
 *         exact: bool = True,             # <<<<<<<<<<<<<<
 *         cfg: Config | None = None,
 *         name: str | None = None,
 */
    values[6] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_True));

    /* "cytimes/pddatetime.py":270
 *         format: str = None,
 *         exact: bool = True,
 *         cfg: Config | None = None,             # <<<<<<<<<<<<<<
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 */
    values[7] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":271
 *         exact: bool = True,
 *         cfg: Config | None = None,
 *         name: str | None = None,             # <<<<<<<<<<<<<<
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 *         copy: bool = True,
 */
    values[8] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":272
 *         cfg: Config | None = None,
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,             # <<<<<<<<<<<<<<
 *         copy: bool = True,
 *     ) -> None:
 */
    values[9] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":273
 *         name: str | None = None,
 *         unit: Literal["s", "ms", "us", "ns"] | None = None,
 *         copy: bool = True,             # <<<<<<<<<<<<<<
 *     ) -> None:
 *         """The pddt (Pandas Datetime) that makes working with Series[Timestamp] easier.
 */
    values[10] = __Pyx_Arg_NewRef_VARARGS(((PyObject *)Py_True));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case 11: values[10] = __Pyx_Arg_VARARGS(__pyx_args, 10);
        CYTHON_FALLTHROUGH;
        case 10: values[9] = __Pyx_Arg_VARARGS(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = __Pyx_Arg_VARARGS(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_VARARGS(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_VARARGS(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_VARARGS(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_VARARGS(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dtsobj)) != 0)) {
          (void)__Pyx_Arg_NewRef_VARARGS(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_default);
          if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day1st);
          if (value) { values[2] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_year1st);
          if (value) { values[3] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_utc);
          if (value) { values[4] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_format);
          if (value) { values[5] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_exact);
          if (value) { values[6] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cfg);
          if (value) { values[7] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name);
          if (value) { values[8] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  9:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unit);
          if (value) { values[9] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case 10:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_copy);
          if (value) { values[10] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 261, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case 11: values[10] = __Pyx_Arg_VARARGS(__pyx_args, 10);
        CYTHON_FALLTHROUGH;
        case 10: values[9] = __Pyx_Arg_VARARGS(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = __Pyx_Arg_VARARGS(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_VARARGS(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_VARARGS(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_VARARGS(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_VARARGS(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_dtsobj = values[0];
    __pyx_v_default = values[1];
    __pyx_v_day1st = values[2];
    __pyx_v_year1st = values[3];
    __pyx_v_utc = values[4];
    __pyx_v_format = ((PyObject*)values[5]);
    __pyx_v_exact = values[6];
    __pyx_v_cfg = values[7];
    __pyx_v_name = values[8];
    __pyx_v_unit = values[9];
    __pyx_v_copy = values[10];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 11, __pyx_nargs); __PYX_ERR(0, 261, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyUnicode_Type), 1, "format", 1))) __PYX_ERR(0, 268, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_8__init__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_dtsobj, __pyx_v_default, __pyx_v_day1st, __pyx_v_year1st, __pyx_v_utc, __pyx_v_format, __pyx_v_exact, __pyx_v_cfg, __pyx_v_name, __pyx_v_unit, __pyx_v_copy);

  /* "cytimes/pddatetime.py":261
 *         # fmt: on
 * 
 *     def __init__(             # <<<<<<<<<<<<<<
 *         self,
 *         dtsobj: object,
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_7cytimes_10pddatetime_4pddt_8__init__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtsobj, PyObject *__pyx_v_default, PyObject *__pyx_v_day1st, PyObject *__pyx_v_year1st, PyObject *__pyx_v_utc, PyObject *__pyx_v_format, PyObject *__pyx_v_exact, PyObject *__pyx_v_cfg, PyObject *__pyx_v_name, PyObject *__pyx_v_unit, PyObject *__pyx_v_copy) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_default);

  /* "cytimes/pddatetime.py":332
 *         """
 *         # Set config
 *         self._cfg = cfg             # <<<<<<<<<<<<<<
 *         self._day1st = (
 *             (False if self._cfg is None else self._cfg.day1st)
 */
  if (!(likely(((__pyx_v_cfg) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_cfg, __pyx_ptype_7cytimes_8cyparser_Config))))) __PYX_ERR(0, 332, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_cfg;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_cfg);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_cfg);
  __pyx_v_self->_cfg = ((struct __pyx_obj_7cytimes_8cyparser_Config *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":335
 *         self._day1st = (
 *             (False if self._cfg is None else self._cfg.day1st)
 *             if day1st is None             # <<<<<<<<<<<<<<
 *             else bool(day1st)
 *         )
 */
  __pyx_t_2 = (__pyx_v_day1st == Py_None);
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":334
 *         self._cfg = cfg
 *         self._day1st = (
 *             (False if self._cfg is None else self._cfg.day1st)             # <<<<<<<<<<<<<<
 *             if day1st is None
 *             else bool(day1st)
 */
    __pyx_t_4 = (((PyObject *)__pyx_v_self->_cfg) == Py_None);
    if (__pyx_t_4) {
      __Pyx_INCREF(Py_False);
      __pyx_t_3 = Py_False;
    } else {
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_cfg), __pyx_n_s_day1st); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 334, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
    }
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {

    /* "cytimes/pddatetime.py":336
 *             (False if self._cfg is None else self._cfg.day1st)
 *             if day1st is None
 *             else bool(day1st)             # <<<<<<<<<<<<<<
 *         )
 *         self._year1st = (
 */
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_day1st); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 336, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyBool_FromLong((!(!__pyx_t_4))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  }

  /* "cytimes/pddatetime.py":333
 *         # Set config
 *         self._cfg = cfg
 *         self._day1st = (             # <<<<<<<<<<<<<<
 *             (False if self._cfg is None else self._cfg.day1st)
 *             if day1st is None
 */
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->_day1st);
  __Pyx_DECREF(__pyx_v_self->_day1st);
  __pyx_v_self->_day1st = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":340
 *         self._year1st = (
 *             (False if self._cfg is None else self._cfg.year1st)
 *             if year1st is None             # <<<<<<<<<<<<<<
 *             else bool(year1st)
 *         )
 */
  __pyx_t_2 = (__pyx_v_year1st == Py_None);
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":339
 *         )
 *         self._year1st = (
 *             (False if self._cfg is None else self._cfg.year1st)             # <<<<<<<<<<<<<<
 *             if year1st is None
 *             else bool(year1st)
 */
    __pyx_t_4 = (((PyObject *)__pyx_v_self->_cfg) == Py_None);
    if (__pyx_t_4) {
      __Pyx_INCREF(Py_False);
      __pyx_t_3 = Py_False;
    } else {
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_cfg), __pyx_n_s_year1st); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 339, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
    }
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {

    /* "cytimes/pddatetime.py":341
 *             (False if self._cfg is None else self._cfg.year1st)
 *             if year1st is None
 *             else bool(year1st)             # <<<<<<<<<<<<<<
 *         )
 *         self._utc = bool(utc)
 */
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_year1st); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 341, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyBool_FromLong((!(!__pyx_t_4))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  }

  /* "cytimes/pddatetime.py":338
 *             else bool(day1st)
 *         )
 *         self._year1st = (             # <<<<<<<<<<<<<<
 *             (False if self._cfg is None else self._cfg.year1st)
 *             if year1st is None
 */
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->_year1st);
  __Pyx_DECREF(__pyx_v_self->_year1st);
  __pyx_v_self->_year1st = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":343
 *             else bool(year1st)
 *         )
 *         self._utc = bool(utc)             # <<<<<<<<<<<<<<
 *         self._format = format
 *         self._exact = bool(exact)
 */
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_utc); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 343, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyBool_FromLong((!(!__pyx_t_2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->_utc);
  __Pyx_DECREF(__pyx_v_self->_utc);
  __pyx_v_self->_utc = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":344
 *         )
 *         self._utc = bool(utc)
 *         self._format = format             # <<<<<<<<<<<<<<
 *         self._exact = bool(exact)
 *         # Parse default
 */
  __Pyx_INCREF(__pyx_v_format);
  __Pyx_GIVEREF(__pyx_v_format);
  __Pyx_GOTREF(__pyx_v_self->_format);
  __Pyx_DECREF(__pyx_v_self->_format);
  __pyx_v_self->_format = __pyx_v_format;

  /* "cytimes/pddatetime.py":345
 *         self._utc = bool(utc)
 *         self._format = format
 *         self._exact = bool(exact)             # <<<<<<<<<<<<<<
 *         # Parse default
 *         if default is not None:
 */
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_exact); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 345, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyBool_FromLong((!(!__pyx_t_2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->_exact);
  __Pyx_DECREF(__pyx_v_self->_exact);
  __pyx_v_self->_exact = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":347
 *         self._exact = bool(exact)
 *         # Parse default
 *         if default is not None:             # <<<<<<<<<<<<<<
 *             default = self._parse_dtobj(default, None, True)
 *         self._default = default
 */
  __pyx_t_2 = (__pyx_v_default != Py_None);
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":348
 *         # Parse default
 *         if default is not None:
 *             default = self._parse_dtobj(default, None, True)             # <<<<<<<<<<<<<<
 *         self._default = default
 *         # Parse pddt value
 */
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtobj(__pyx_v_self, __pyx_v_default, Py_None, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_default, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":347
 *         self._exact = bool(exact)
 *         # Parse default
 *         if default is not None:             # <<<<<<<<<<<<<<
 *             default = self._parse_dtobj(default, None, True)
 *         self._default = default
 */
  }

  /* "cytimes/pddatetime.py":349
 *         if default is not None:
 *             default = self._parse_dtobj(default, None, True)
 *         self._default = default             # <<<<<<<<<<<<<<
 *         # Parse pddt value
 *         self._dt = self._parse_dtsobj(dtsobj, default, name, unit, bool(copy))
 */
  __Pyx_INCREF(__pyx_v_default);
  __Pyx_GIVEREF(__pyx_v_default);
  __Pyx_GOTREF(__pyx_v_self->_default);
  __Pyx_DECREF(__pyx_v_self->_default);
  __pyx_v_self->_default = __pyx_v_default;

  /* "cytimes/pddatetime.py":351
 *         self._default = default
 *         # Parse pddt value
 *         self._dt = self._parse_dtsobj(dtsobj, default, name, unit, bool(copy))             # <<<<<<<<<<<<<<
 * 
 *     # Access ----------------------------------------------------------------------------------
 */
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_copy); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 351, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj(__pyx_v_self, __pyx_v_dtsobj, __pyx_v_default, __pyx_v_name, __pyx_v_unit, (!(!__pyx_t_2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->_dt);
  __Pyx_DECREF(__pyx_v_self->_dt);
  __pyx_v_self->_dt = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":261
 *         # fmt: on
 * 
 *     def __init__(             # <<<<<<<<<<<<<<
 *         self,
 *         dtsobj: object,
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_default);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":354
 * 
 *     # Access ----------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def name(self) -> str | None:
 *         """Access the 'name' of the Series `<str/None>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4name_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4name___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4name___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":357
 *     def name(self) -> str | None:
 *         """Access the 'name' of the Series `<str/None>`."""
 *         return self._dt.name             # <<<<<<<<<<<<<<
 * 
 *     @name.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":354
 * 
 *     # Access ----------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def name(self) -> str | None:
 *         """Access the 'name' of the Series `<str/None>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":359
 *         return self._dt.name
 * 
 *     @name.setter             # <<<<<<<<<<<<<<
 *     def name(self, value: str | None) -> None:
 *         self._dt.name = value
 */

/* Python wrapper */
static int __pyx_pw_7cytimes_10pddatetime_4pddt_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_7cytimes_10pddatetime_4pddt_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4name_2__set__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_7cytimes_10pddatetime_4pddt_4name_2__set__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cytimes/pddatetime.py":361
 *     @name.setter
 *     def name(self, value: str | None) -> None:
 *         self._dt.name = value             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self->_dt, __pyx_n_s_name, __pyx_v_value) < 0) __PYX_ERR(0, 361, __pyx_L1_error)

  /* "cytimes/pddatetime.py":359
 *         return self._dt.name
 * 
 *     @name.setter             # <<<<<<<<<<<<<<
 *     def name(self, value: str | None) -> None:
 *         self._dt.name = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cytimes/pddatetime.py":363
 *         self._dt.name = value
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def index(self) -> Index:
 *         """Access the 'index' of the Series `<Index>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_5index_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_5index_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_5index___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_5index___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":366
 *     def index(self) -> Index:
 *         """Access the 'index' of the Series `<Index>`."""
 *         return self._dt.index             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":363
 *         self._dt.name = value
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def index(self) -> Index:
 *         """Access the 'index' of the Series `<Index>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.index.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":368
 *         return self._dt.index
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def unit(self) -> str:
 *         """Access the time unit of the Series `<'str'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4unit_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4unit_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4unit___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4unit___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":372
 *         """Access the time unit of the Series `<'str'>`.
 *         Such as 'ns', 'us', 'ms', 's'."""
 *         return self._c_unit()             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__c_unit(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":368
 *         return self._dt.index
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def unit(self) -> str:
 *         """Access the time unit of the Series `<'str'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.unit.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":374
 *         return self._c_unit()
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def year(self) -> Series[int]:
 *         """Access the year `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4year_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4year_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4year___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4year___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":377
 *     def year(self) -> Series[int]:
 *         """Access the year `<'Series[int]'>`."""
 *         return self._dt.dt.year             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_year); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":374
 *         return self._c_unit()
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def year(self) -> Series[int]:
 *         """Access the year `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.year.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":379
 *         return self._dt.dt.year
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def quarter(self) -> Series[int]:
 *         """Access the quarter `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7quarter_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7quarter_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_7quarter___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7quarter___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":382
 *     def quarter(self) -> Series[int]:
 *         """Access the quarter `<'Series[int]'>`."""
 *         return self._dt.dt.quarter             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_quarter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":379
 *         return self._dt.dt.year
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def quarter(self) -> Series[int]:
 *         """Access the quarter `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.quarter.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":384
 *         return self._dt.dt.quarter
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def month(self) -> Series[int]:
 *         """Access the month `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_5month_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_5month_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_5month___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_5month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":387
 *     def month(self) -> Series[int]:
 *         """Access the month `<'Series[int]'>`."""
 *         return self._dt.dt.month             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":384
 *         return self._dt.dt.quarter
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def month(self) -> Series[int]:
 *         """Access the month `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.month.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":389
 *         return self._dt.dt.month
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def day(self) -> Series[int]:
 *         """Access the day `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_3day_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_3day_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_3day___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_3day___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":392
 *     def day(self) -> Series[int]:
 *         """Access the day `<'Series[int]'>`."""
 *         return self._dt.dt.day             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_day); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":389
 *         return self._dt.dt.month
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def day(self) -> Series[int]:
 *         """Access the day `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.day.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":394
 *         return self._dt.dt.day
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def hour(self) -> Series[int]:
 *         """Access the hour `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4hour_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4hour_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4hour___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4hour___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":397
 *     def hour(self) -> Series[int]:
 *         """Access the hour `<'Series[int]'>`."""
 *         return self._dt.dt.hour             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_hour); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":394
 *         return self._dt.dt.day
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def hour(self) -> Series[int]:
 *         """Access the hour `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.hour.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":399
 *         return self._dt.dt.hour
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def minute(self) -> Series[int]:
 *         """Access the minute `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6minute_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6minute_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_6minute___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6minute___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":402
 *     def minute(self) -> Series[int]:
 *         """Access the minute `<'Series[int]'>`."""
 *         return self._dt.dt.minute             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_minute); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":399
 *         return self._dt.dt.hour
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def minute(self) -> Series[int]:
 *         """Access the minute `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.minute.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":404
 *         return self._dt.dt.minute
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def second(self) -> Series[int]:
 *         """Access the second `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6second_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6second_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_6second___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6second___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":407
 *     def second(self) -> Series[int]:
 *         """Access the second `<'Series[int]'>`."""
 *         return self._dt.dt.second             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_second); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":404
 *         return self._dt.dt.minute
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def second(self) -> Series[int]:
 *         """Access the second `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.second.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":409
 *         return self._dt.dt.second
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def microsecond(self) -> Series[int]:
 *         """Access the microsecond `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_11microsecond_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_11microsecond_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_11microsecond___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_11microsecond___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":412
 *     def microsecond(self) -> Series[int]:
 *         """Access the microsecond `<'Series[int]'>`."""
 *         return self._dt.dt.microsecond             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_microsecond); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":409
 *         return self._dt.dt.second
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def microsecond(self) -> Series[int]:
 *         """Access the microsecond `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.microsecond.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":414
 *         return self._dt.dt.microsecond
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def nanosecond(self) -> Series[int]:
 *         """Access the nanosecond `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_10nanosecond_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_10nanosecond_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_10nanosecond___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_10nanosecond___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":417
 *     def nanosecond(self) -> Series[int]:
 *         """Access the nanosecond `<'Series[int]'>`."""
 *         return self._dt.dt.nanosecond             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_nanosecond); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":414
 *         return self._dt.dt.microsecond
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def nanosecond(self) -> Series[int]:
 *         """Access the nanosecond `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.nanosecond.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":419
 *         return self._dt.dt.nanosecond
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def tzinfo(self) -> datetime.tzinfo | None:
 *         """Access the timezone `<'datetime.tzinfo/None'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6tzinfo_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6tzinfo_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_6tzinfo___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6tzinfo___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":422
 *     def tzinfo(self) -> datetime.tzinfo | None:
 *         """Access the timezone `<'datetime.tzinfo/None'>`."""
 *         return self._dt.dt.tz             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":419
 *         return self._dt.dt.nanosecond
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def tzinfo(self) -> datetime.tzinfo | None:
 *         """Access the timezone `<'datetime.tzinfo/None'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tzinfo.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":424
 *         return self._dt.dt.tz
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def tzname(self) -> str | None:
 *         """Access the timezone name `<'str/None'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6tzname_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6tzname_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_6tzname___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6tzname___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":427
 *     def tzname(self) -> str | None:
 *         """Access the timezone name `<'str/None'>`."""
 *         return cydt.tzinfo_name(self._dt.dt.tz, None)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10cydatetime_tzinfo_name(__pyx_t_2, ((PyDateTime_DateTime *)Py_None)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":424
 *         return self._dt.dt.tz
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def tzname(self) -> str | None:
 *         """Access the timezone name `<'str/None'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tzname.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":429
 *         return cydt.tzinfo_name(self._dt.dt.tz, None)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt(self) -> Series[Timestamp]:
 *         """Access as `<'Series[Timestamp]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_2dt_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_2dt_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_2dt___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_2dt___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":432
 *     def dt(self) -> Series[Timestamp]:
 *         """Access as `<'Series[Timestamp]'>`."""
 *         return self._dt             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_dt);
  __pyx_r = __pyx_v_self->_dt;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":429
 *         return cydt.tzinfo_name(self._dt.dt.tz, None)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt(self) -> Series[Timestamp]:
 *         """Access as `<'Series[Timestamp]'>`."""
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":434
 *         return self._dt
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt_str(self) -> Series[str]:
 *         """Access in string format `<'Series[str]'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6dt_str_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6dt_str_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_6dt_str___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6dt_str___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":438
 *         """Access in string format `<'Series[str]'>`.
 *         e.g: "2021-01-01 12:00:00.000001"""
 *         return self._dt.dt.strftime("%Y-%m-%d %H:%M:%S.%f")             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_strftime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_kp_u_Y_m_d_H_M_S_f};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 438, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":434
 *         return self._dt
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt_str(self) -> Series[str]:
 *         """Access in string format `<'Series[str]'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.dt_str.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":440
 *         return self._dt.dt.strftime("%Y-%m-%d %H:%M:%S.%f")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt_strtz(self) -> Series[str]:
 *         """Access in string format with timezone `<'Series[str]'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_8dt_strtz_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_8dt_strtz_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_8dt_strtz___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_8dt_strtz___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":444
 *         """Access in string format with timezone `<'Series[str]'>`.
 *         e.g: "2021-01-01 12:00:00.000001+00:00"""
 *         return self._dt.dt.strftime("%Y-%m-%d %H:%M:%S.%f%z")             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_strftime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_kp_u_Y_m_d_H_M_S_f_z};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":440
 *         return self._dt.dt.strftime("%Y-%m-%d %H:%M:%S.%f")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt_strtz(self) -> Series[str]:
 *         """Access in string format with timezone `<'Series[str]'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.dt_strtz.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":446
 *         return self._dt.dt.strftime("%Y-%m-%d %H:%M:%S.%f%z")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt_iso(self) -> str:
 *         """Access in ISO format `<'Series[str]'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6dt_iso_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6dt_iso_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_6dt_iso___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6dt_iso___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":450
 *         """Access in ISO format `<'Series[str]'>`.
 *         e.g: "2021-01-01T12:00:00.000001"""
 *         return self._dt.dt.strftime("%Y-%m-%dT%H:%M:%S.%f")             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_strftime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_kp_u_Y_m_dT_H_M_S_f};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":446
 *         return self._dt.dt.strftime("%Y-%m-%d %H:%M:%S.%f%z")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt_iso(self) -> str:
 *         """Access in ISO format `<'Series[str]'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.dt_iso.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":452
 *         return self._dt.dt.strftime("%Y-%m-%dT%H:%M:%S.%f")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt_isotz(self) -> str:
 *         """Access in ISO format with timezone `<'Series[str]'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_8dt_isotz_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_8dt_isotz_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_8dt_isotz___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_8dt_isotz___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":456
 *         """Access in ISO format with timezone `<'Series[str]'>`.
 *         e.g: "2021-01-01T12:00:00.000001+00:00"""
 *         return self._dt.dt.strftime("%Y-%m-%dT%H:%M:%S.%f%z")             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_strftime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_kp_u_Y_m_dT_H_M_S_f_z};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 456, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":452
 *         return self._dt.dt.strftime("%Y-%m-%dT%H:%M:%S.%f")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt_isotz(self) -> str:
 *         """Access in ISO format with timezone `<'Series[str]'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.dt_isotz.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":458
 *         return self._dt.dt.strftime("%Y-%m-%dT%H:%M:%S.%f%z")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt64(self) -> np.ndarray[np.datetime64]:
 *         """Access as `<'ndarray[datetime64]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4dt64_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4dt64_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4dt64___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4dt64___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":461
 *     def dt64(self) -> np.ndarray[np.datetime64]:
 *         """Access as `<'ndarray[datetime64]'>`."""
 *         return self._dt.values             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":458
 *         return self._dt.dt.strftime("%Y-%m-%dT%H:%M:%S.%f%z")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dt64(self) -> np.ndarray[np.datetime64]:
 *         """Access as `<'ndarray[datetime64]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.dt64.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":463
 *         return self._dt.values
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dtpy(self) -> np.ndarray[np.datetime64]:
 *         """Access as `<'ndarray[datetime.datetime]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4dtpy_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4dtpy_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4dtpy___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4dtpy___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":466
 *     def dtpy(self) -> np.ndarray[np.datetime64]:
 *         """Access as `<'ndarray[datetime.datetime]'>`."""
 *         return self._dt.dt.to_pydatetime()             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_to_pydatetime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":463
 *         return self._dt.values
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def dtpy(self) -> np.ndarray[np.datetime64]:
 *         """Access as `<'ndarray[datetime.datetime]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.dtpy.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":468
 *         return self._dt.dt.to_pydatetime()
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def pydt(self) -> np.ndarray[pydt]:
 *         """Access as `<'ndarray[pydt]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4pydt_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4pydt_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4pydt___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4pydt___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_v_default = NULL;
  PyObject *__pyx_v_day1st = NULL;
  PyObject *__pyx_v_year1st = NULL;
  struct __pyx_obj_7cytimes_8cyparser_Config *__pyx_v_cfg = NULL;
  npy_intp __pyx_v_dim[1];
  PyArrayObject *__pyx_v_arr = 0;
  Py_ssize_t __pyx_v_idx;
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  npy_intp __pyx_t_3[1];
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":472
 *         """Access as `<'ndarray[pydt]'>`."""
 *         # Config for pydt
 *         default = self._default             # <<<<<<<<<<<<<<
 *         day1st = self._day1st
 *         year1st = self._year1st
 */
  __pyx_t_1 = __pyx_v_self->_default;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_default = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":473
 *         # Config for pydt
 *         default = self._default
 *         day1st = self._day1st             # <<<<<<<<<<<<<<
 *         year1st = self._year1st
 *         cfg = self._cfg
 */
  __pyx_t_1 = __pyx_v_self->_day1st;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_day1st = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":474
 *         default = self._default
 *         day1st = self._day1st
 *         year1st = self._year1st             # <<<<<<<<<<<<<<
 *         cfg = self._cfg
 *         # Generate ndarray
 */
  __pyx_t_1 = __pyx_v_self->_year1st;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_year1st = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":475
 *         day1st = self._day1st
 *         year1st = self._year1st
 *         cfg = self._cfg             # <<<<<<<<<<<<<<
 *         # Generate ndarray
 *         dim: np.npy_intp[1] = [len(self._dt)]
 */
  __pyx_t_1 = ((PyObject *)__pyx_v_self->_cfg);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_cfg = ((struct __pyx_obj_7cytimes_8cyparser_Config *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":477
 *         cfg = self._cfg
 *         # Generate ndarray
 *         dim: np.npy_intp[1] = [len(self._dt)]             # <<<<<<<<<<<<<<
 *         arr: np.ndarray = np.PyArray_EMPTY(1, dim, np.NPY_TYPES.NPY_OBJECT, 0)
 *         idx: cython.Py_ssize_t = 0
 */
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 477, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3[0] = __pyx_t_2;
  memcpy(&(__pyx_v_dim[0]), __pyx_t_3, sizeof(__pyx_v_dim[0]) * (1));

  /* "cytimes/pddatetime.py":478
 *         # Generate ndarray
 *         dim: np.npy_intp[1] = [len(self._dt)]
 *         arr: np.ndarray = np.PyArray_EMPTY(1, dim, np.NPY_TYPES.NPY_OBJECT, 0)             # <<<<<<<<<<<<<<
 *         idx: cython.Py_ssize_t = 0
 *         for dt in self._dt:
 */
  __pyx_t_1 = PyArray_EMPTY(1, __pyx_v_dim, NPY_OBJECT, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 478, __pyx_L1_error)
  __pyx_v_arr = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":479
 *         dim: np.npy_intp[1] = [len(self._dt)]
 *         arr: np.ndarray = np.PyArray_EMPTY(1, dim, np.NPY_TYPES.NPY_OBJECT, 0)
 *         idx: cython.Py_ssize_t = 0             # <<<<<<<<<<<<<<
 *         for dt in self._dt:
 *             ndarray_setitem_1d(  # type: ignore
 */
  __pyx_v_idx = 0;

  /* "cytimes/pddatetime.py":480
 *         arr: np.ndarray = np.PyArray_EMPTY(1, dim, np.NPY_TYPES.NPY_OBJECT, 0)
 *         idx: cython.Py_ssize_t = 0
 *         for dt in self._dt:             # <<<<<<<<<<<<<<
 *             ndarray_setitem_1d(  # type: ignore
 *                 arr, idx, pydt(dt, default, day1st, year1st, False, True, cfg)
 */
  if (likely(PyList_CheckExact(__pyx_v_self->_dt)) || PyTuple_CheckExact(__pyx_v_self->_dt)) {
    __pyx_t_1 = __pyx_v_self->_dt; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_self->_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 480, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_MACROS
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 480, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_5); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 480, __pyx_L1_error)
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 480, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        #endif
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_MACROS
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 480, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_5); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 480, __pyx_L1_error)
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 480, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        #endif
      }
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_1);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 480, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_XDECREF_SET(__pyx_v_dt, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":482
 *         for dt in self._dt:
 *             ndarray_setitem_1d(  # type: ignore
 *                 arr, idx, pydt(dt, default, day1st, year1st, False, True, cfg)             # <<<<<<<<<<<<<<
 *             )
 *             idx += 1
 */
    __pyx_t_5 = PyTuple_New(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v_dt);
    __Pyx_GIVEREF(__pyx_v_dt);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_dt)) __PYX_ERR(0, 482, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_default);
    __Pyx_GIVEREF(__pyx_v_default);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_default)) __PYX_ERR(0, 482, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_day1st);
    __Pyx_GIVEREF(__pyx_v_day1st);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_day1st)) __PYX_ERR(0, 482, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_year1st);
    __Pyx_GIVEREF(__pyx_v_year1st);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_v_year1st)) __PYX_ERR(0, 482, __pyx_L1_error);
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 4, Py_False)) __PYX_ERR(0, 482, __pyx_L1_error);
    __Pyx_INCREF(Py_True);
    __Pyx_GIVEREF(Py_True);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 5, Py_True)) __PYX_ERR(0, 482, __pyx_L1_error);
    __Pyx_INCREF((PyObject *)__pyx_v_cfg);
    __Pyx_GIVEREF((PyObject *)__pyx_v_cfg);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_v_cfg))) __PYX_ERR(0, 482, __pyx_L1_error);
    __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cytimes_10pydatetime_pydt), __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":481
 *         idx: cython.Py_ssize_t = 0
 *         for dt in self._dt:
 *             ndarray_setitem_1d(  # type: ignore             # <<<<<<<<<<<<<<
 *                 arr, idx, pydt(dt, default, day1st, year1st, False, True, cfg)
 *             )
 */
    __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_ndarray_setitem_1d(__pyx_v_arr, __pyx_v_idx, __pyx_t_6); if (unlikely(__pyx_t_7 == ((int)-1) && PyErr_Occurred())) __PYX_ERR(0, 481, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cytimes/pddatetime.py":484
 *                 arr, idx, pydt(dt, default, day1st, year1st, False, True, cfg)
 *             )
 *             idx += 1             # <<<<<<<<<<<<<<
 *         return arr
 * 
 */
    __pyx_v_idx = (__pyx_v_idx + 1);

    /* "cytimes/pddatetime.py":480
 *         arr: np.ndarray = np.PyArray_EMPTY(1, dim, np.NPY_TYPES.NPY_OBJECT, 0)
 *         idx: cython.Py_ssize_t = 0
 *         for dt in self._dt:             # <<<<<<<<<<<<<<
 *             ndarray_setitem_1d(  # type: ignore
 *                 arr, idx, pydt(dt, default, day1st, year1st, False, True, cfg)
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":485
 *             )
 *             idx += 1
 *         return arr             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_arr);
  __pyx_r = ((PyObject *)__pyx_v_arr);
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":468
 *         return self._dt.dt.to_pydatetime()
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def pydt(self) -> np.ndarray[pydt]:
 *         """Access as `<'ndarray[pydt]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.pydt.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_default);
  __Pyx_XDECREF(__pyx_v_day1st);
  __Pyx_XDECREF(__pyx_v_year1st);
  __Pyx_XDECREF((PyObject *)__pyx_v_cfg);
  __Pyx_XDECREF((PyObject *)__pyx_v_arr);
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":487
 *         return arr
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def date(self) -> Series[datetime.date]:
 *         """Access as `<'Series[datetime.date]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4date_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4date_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4date___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4date___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":490
 *     def date(self) -> Series[datetime.date]:
 *         """Access as `<'Series[datetime.date]'>`."""
 *         return self._dt.dt.date             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_date); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":487
 *         return arr
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def date(self) -> Series[datetime.date]:
 *         """Access as `<'Series[datetime.date]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.date.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":492
 *         return self._dt.dt.date
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def date_iso(self) -> Series[str]:
 *         """Access dates in ISO format `<'Series[str]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_8date_iso_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_8date_iso_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_8date_iso___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_8date_iso___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":495
 *     def date_iso(self) -> Series[str]:
 *         """Access dates in ISO format `<'Series[str]'>`."""
 *         return self._dt.dt.strftime("%Y-%m-%d")             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_strftime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_kp_u_Y_m_d};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":492
 *         return self._dt.dt.date
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def date_iso(self) -> Series[str]:
 *         """Access dates in ISO format `<'Series[str]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.date_iso.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":497
 *         return self._dt.dt.strftime("%Y-%m-%d")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def time(self) -> Series[datetime.time]:
 *         """Access as `<'Series[datetime.time]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4time_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_4time_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_4time___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_4time___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":500
 *     def time(self) -> Series[datetime.time]:
 *         """Access as `<'Series[datetime.time]'>`."""
 *         return self._dt.dt.time             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":497
 *         return self._dt.dt.strftime("%Y-%m-%d")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def time(self) -> Series[datetime.time]:
 *         """Access as `<'Series[datetime.time]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.time.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":502
 *         return self._dt.dt.time
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def timetz(self) -> Series[datetime.time]:
 *         """Access as `<'Series[datetime.time]'>` with timezone."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6timetz_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_6timetz_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_6timetz___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_6timetz___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":505
 *     def timetz(self) -> Series[datetime.time]:
 *         """Access as `<'Series[datetime.time]'>` with timezone."""
 *         return self._dt.dt.timetz             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_timetz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":502
 *         return self._dt.dt.time
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def timetz(self) -> Series[datetime.time]:
 *         """Access as `<'Series[datetime.time]'>` with timezone."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.timetz.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":507
 *         return self._dt.dt.timetz
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def time_iso(self) -> Series[str]:
 *         """Access times in ISO format `<'Series[str]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_8time_iso_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_8time_iso_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_8time_iso___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_8time_iso___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":510
 *     def time_iso(self) -> Series[str]:
 *         """Access times in ISO format `<'Series[str]'>`."""
 *         return self._dt.dt.strftime("%H:%M:%S.%f")             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_strftime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_kp_u_H_M_S_f};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 510, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":507
 *         return self._dt.dt.timetz
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def time_iso(self) -> Series[str]:
 *         """Access times in ISO format `<'Series[str]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.time_iso.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":512
 *         return self._dt.dt.strftime("%H:%M:%S.%f")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def ordinal(self) -> Series[int]:
 *         """Access in ordinal values `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7ordinal_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7ordinal_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_7ordinal___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7ordinal___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":515
 *     def ordinal(self) -> Series[int]:
 *         """Access in ordinal values `<'Series[int]'>`."""
 *         if self._dt.dt.tz is not None:             # <<<<<<<<<<<<<<
 *             return cydt.dt64series_to_ordinals(self._dt.dt.tz_localize(None))
 *         else:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 != Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cytimes/pddatetime.py":516
 *         """Access in ordinal values `<'Series[int]'>`."""
 *         if self._dt.dt.tz is not None:
 *             return cydt.dt64series_to_ordinals(self._dt.dt.tz_localize(None))             # <<<<<<<<<<<<<<
 *         else:
 *             return cydt.dt64series_to_ordinals(self._dt)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    __pyx_t_5 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
        __pyx_t_5 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, Py_None};
      __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 516, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
    __pyx_t_4 = __pyx_f_7cytimes_10cydatetime_dt64series_to_ordinals(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":515
 *     def ordinal(self) -> Series[int]:
 *         """Access in ordinal values `<'Series[int]'>`."""
 *         if self._dt.dt.tz is not None:             # <<<<<<<<<<<<<<
 *             return cydt.dt64series_to_ordinals(self._dt.dt.tz_localize(None))
 *         else:
 */
  }

  /* "cytimes/pddatetime.py":518
 *             return cydt.dt64series_to_ordinals(self._dt.dt.tz_localize(None))
 *         else:
 *             return cydt.dt64series_to_ordinals(self._dt)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_dt64series_to_ordinals(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.py":512
 *         return self._dt.dt.strftime("%H:%M:%S.%f")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def ordinal(self) -> Series[int]:
 *         """Access in ordinal values `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.ordinal.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":520
 *             return cydt.dt64series_to_ordinals(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def seconds(self) -> Series[int]:
 *         """Access in total seconds since EPOCH, ignoring
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7seconds_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7seconds_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_7seconds___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7seconds___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":528
 *         This should `NOT` be treated as timestamp.
 *         """
 *         if self._dt.dt.tz is not None:             # <<<<<<<<<<<<<<
 *             return cydt.dt64series_to_seconds(self._dt.dt.tz_localize(None))
 *         else:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 != Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cytimes/pddatetime.py":529
 *         """
 *         if self._dt.dt.tz is not None:
 *             return cydt.dt64series_to_seconds(self._dt.dt.tz_localize(None))             # <<<<<<<<<<<<<<
 *         else:
 *             return cydt.dt64series_to_seconds(self._dt)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    __pyx_t_5 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
        __pyx_t_5 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, Py_None};
      __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 529, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
    __pyx_t_4 = __pyx_f_7cytimes_10cydatetime_dt64series_to_seconds(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":528
 *         This should `NOT` be treated as timestamp.
 *         """
 *         if self._dt.dt.tz is not None:             # <<<<<<<<<<<<<<
 *             return cydt.dt64series_to_seconds(self._dt.dt.tz_localize(None))
 *         else:
 */
  }

  /* "cytimes/pddatetime.py":531
 *             return cydt.dt64series_to_seconds(self._dt.dt.tz_localize(None))
 *         else:
 *             return cydt.dt64series_to_seconds(self._dt)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_dt64series_to_seconds(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.py":520
 *             return cydt.dt64series_to_ordinals(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def seconds(self) -> Series[int]:
 *         """Access in total seconds since EPOCH, ignoring
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.seconds.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":533
 *             return cydt.dt64series_to_seconds(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def seconds_utc(self) -> Series[int]:
 *         """Access in total seconds since EPOCH `<'Series[int]'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_11seconds_utc_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_11seconds_utc_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_11seconds_utc___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_11seconds_utc___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":542
 *         This should `NOT` be treated as timestamp.
 *         """
 *         return cydt.dt64series_to_seconds(self._dt)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_dt64series_to_seconds(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":533
 *             return cydt.dt64series_to_seconds(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def seconds_utc(self) -> Series[int]:
 *         """Access in total seconds since EPOCH `<'Series[int]'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.seconds_utc.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":544
 *         return cydt.dt64series_to_seconds(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def microseconds(self) -> Series[int]:
 *         """Access in total microseconds since EPOCH, ignoring
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12microseconds_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12microseconds_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_12microseconds___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12microseconds___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":548
 *         """Access in total microseconds since EPOCH, ignoring
 *         the timezone (if exists) `<'Series[int]'>`."""
 *         if self._dt.dt.tz is not None:             # <<<<<<<<<<<<<<
 *             return cydt.dt64series_to_microseconds(self._dt.dt.tz_localize(None))
 *         else:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 != Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cytimes/pddatetime.py":549
 *         the timezone (if exists) `<'Series[int]'>`."""
 *         if self._dt.dt.tz is not None:
 *             return cydt.dt64series_to_microseconds(self._dt.dt.tz_localize(None))             # <<<<<<<<<<<<<<
 *         else:
 *             return cydt.dt64series_to_microseconds(self._dt)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    __pyx_t_5 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
        __pyx_t_5 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, Py_None};
      __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 549, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
    __pyx_t_4 = __pyx_f_7cytimes_10cydatetime_dt64series_to_microseconds(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":548
 *         """Access in total microseconds since EPOCH, ignoring
 *         the timezone (if exists) `<'Series[int]'>`."""
 *         if self._dt.dt.tz is not None:             # <<<<<<<<<<<<<<
 *             return cydt.dt64series_to_microseconds(self._dt.dt.tz_localize(None))
 *         else:
 */
  }

  /* "cytimes/pddatetime.py":551
 *             return cydt.dt64series_to_microseconds(self._dt.dt.tz_localize(None))
 *         else:
 *             return cydt.dt64series_to_microseconds(self._dt)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_dt64series_to_microseconds(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.py":544
 *         return cydt.dt64series_to_seconds(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def microseconds(self) -> Series[int]:
 *         """Access in total microseconds since EPOCH, ignoring
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.microseconds.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":553
 *             return cydt.dt64series_to_microseconds(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def microseconds_utc(self) -> Series[int]:
 *         """Access in total microseconds since EPOCH `<'Series[int]'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_16microseconds_utc_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_16microseconds_utc_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_16microseconds_utc___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_16microseconds_utc___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":559
 *         - If `timezone-naive`, requivalent to `pddt.microseconds`.
 *         """
 *         return cydt.dt64series_to_microseconds(self._dt)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_dt64series_to_microseconds(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":553
 *             return cydt.dt64series_to_microseconds(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def microseconds_utc(self) -> Series[int]:
 *         """Access in total microseconds since EPOCH `<'Series[int]'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.microseconds_utc.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":561
 *         return cydt.dt64series_to_microseconds(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def timestamp(self) -> Series[float]:
 *         """Access in timestamp values `<'Series[float]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_9timestamp_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_9timestamp_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_9timestamp___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_9timestamp___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":564
 *     def timestamp(self) -> Series[float]:
 *         """Access in timestamp values `<'Series[float]'>`."""
 *         return cydt.dt64series_to_timestamps(self._dt)             # <<<<<<<<<<<<<<
 * 
 *     # Year ------------------------------------------------------------------------------------
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_dt64series_to_timestamps(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":561
 *         return cydt.dt64series_to_microseconds(self._dt)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def timestamp(self) -> Series[float]:
 *         """Access in timestamp values `<'Series[float]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.timestamp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":567
 * 
 *     # Year ------------------------------------------------------------------------------------
 *     def is_leapyear(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are leap years `<'Series[bool]'>`."""
 *         return self._dt.dt.is_leap_year
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_11is_leapyear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_10is_leapyear, "Whether the dates are leap years `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_11is_leapyear = {"is_leapyear", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_11is_leapyear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_10is_leapyear};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_11is_leapyear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_leapyear (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_leapyear", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_leapyear", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_10is_leapyear(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_10is_leapyear(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_leapyear", 1);

  /* "cytimes/pddatetime.py":569
 *     def is_leapyear(self) -> Series[bool]:
 *         """Whether the dates are leap years `<'Series[bool]'>`."""
 *         return self._dt.dt.is_leap_year             # <<<<<<<<<<<<<<
 * 
 *     def leap_bt_years(self, year: int) -> Series[int]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_leap_year); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":567
 * 
 *     # Year ------------------------------------------------------------------------------------
 *     def is_leapyear(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are leap years `<'Series[bool]'>`."""
 *         return self._dt.dt.is_leap_year
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_leapyear", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":571
 *         return self._dt.dt.is_leap_year
 * 
 *     def leap_bt_years(self, year: int) -> Series[int]:             # <<<<<<<<<<<<<<
 *         """Calculate the number of leap years between the dates
 *         and the given 'year' `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_13leap_bt_years(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_12leap_bt_years, "Calculate the number of leap years between the dates\n        and the given 'year' `<'Series[int]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_13leap_bt_years = {"leap_bt_years", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_13leap_bt_years, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_12leap_bt_years};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_13leap_bt_years(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_year = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("leap_bt_years (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_year,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_year)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 571, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "leap_bt_years") < 0)) __PYX_ERR(0, 571, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_year = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("leap_bt_years", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 571, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.leap_bt_years", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_year), (&PyInt_Type), 0, "year", 1))) __PYX_ERR(0, 571, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_12leap_bt_years(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_year);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12leap_bt_years(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_year) {
  PyObject *__pyx_v_y1_arr = NULL;
  PyObject *__pyx_v_y2_arr = NULL;
  PyObject *__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("leap_bt_years", 1);

  /* "cytimes/pddatetime.py":574
 *         """Calculate the number of leap years between the dates
 *         and the given 'year' `<'Series[int]'>`."""
 *         y1_arr = self._dt.dt.year.values             # <<<<<<<<<<<<<<
 *         y2_arr = y1_arr.copy()
 *         y1_arr = FN_NP_WHERE(y1_arr <= year, y1_arr, year) - 1
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_year); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_y1_arr = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":575
 *         and the given 'year' `<'Series[int]'>`."""
 *         y1_arr = self._dt.dt.year.values
 *         y2_arr = y1_arr.copy()             # <<<<<<<<<<<<<<
 *         y1_arr = FN_NP_WHERE(y1_arr <= year, y1_arr, year) - 1
 *         y2_arr = FN_NP_WHERE(y2_arr > year, y2_arr, year) - 1
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_y1_arr, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_v_y2_arr = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":576
 *         y1_arr = self._dt.dt.year.values
 *         y2_arr = y1_arr.copy()
 *         y1_arr = FN_NP_WHERE(y1_arr <= year, y1_arr, year) - 1             # <<<<<<<<<<<<<<
 *         y2_arr = FN_NP_WHERE(y2_arr > year, y2_arr, year) - 1
 *         arr = (
 */
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_y1_arr, __pyx_v_year, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 576, __pyx_L1_error)
  __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_WHERE);
  __pyx_t_3 = __pyx_v_7cytimes_10pddatetime_FN_NP_WHERE; __pyx_t_5 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_5, __pyx_t_2, __pyx_v_y1_arr, __pyx_v_year};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 3+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 576, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF_SET(__pyx_v_y1_arr, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":577
 *         y2_arr = y1_arr.copy()
 *         y1_arr = FN_NP_WHERE(y1_arr <= year, y1_arr, year) - 1
 *         y2_arr = FN_NP_WHERE(y2_arr > year, y2_arr, year) - 1             # <<<<<<<<<<<<<<
 *         arr = (
 *             (y2_arr // 4 - y1_arr // 4)
 */
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_y2_arr, __pyx_v_year, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_WHERE);
  __pyx_t_2 = __pyx_v_7cytimes_10pddatetime_FN_NP_WHERE; __pyx_t_5 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_5, __pyx_t_1, __pyx_v_y2_arr, __pyx_v_year};
    __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 3+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_t_3, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF_SET(__pyx_v_y2_arr, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":579
 *         y2_arr = FN_NP_WHERE(y2_arr > year, y2_arr, year) - 1
 *         arr = (
 *             (y2_arr // 4 - y1_arr // 4)             # <<<<<<<<<<<<<<
 *             - (y2_arr // 100 - y1_arr // 100)
 *             + (y2_arr // 400 - y1_arr // 400)
 */
  __pyx_t_2 = __Pyx_PyInt_FloorDivideObjC(__pyx_v_y2_arr, __pyx_int_4, 4, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_FloorDivideObjC(__pyx_v_y1_arr, __pyx_int_4, 4, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":580
 *         arr = (
 *             (y2_arr // 4 - y1_arr // 4)
 *             - (y2_arr // 100 - y1_arr // 100)             # <<<<<<<<<<<<<<
 *             + (y2_arr // 400 - y1_arr // 400)
 *         )
 */
  __pyx_t_3 = __Pyx_PyInt_FloorDivideObjC(__pyx_v_y2_arr, __pyx_int_100, 0x64, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyInt_FloorDivideObjC(__pyx_v_y1_arr, __pyx_int_100, 0x64, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Subtract(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cytimes/pddatetime.py":581
 *             (y2_arr // 4 - y1_arr // 4)
 *             - (y2_arr // 100 - y1_arr // 100)
 *             + (y2_arr // 400 - y1_arr // 400)             # <<<<<<<<<<<<<<
 *         )
 *         return self._arr_to_series(arr)
 */
  __pyx_t_5 = __Pyx_PyInt_FloorDivideObjC(__pyx_v_y2_arr, __pyx_int_400, 0x190, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_1 = __Pyx_PyInt_FloorDivideObjC(__pyx_v_y1_arr, __pyx_int_400, 0x190, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_arr = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":583
 *             + (y2_arr // 400 - y1_arr // 400)
 *         )
 *         return self._arr_to_series(arr)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_v_arr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":571
 *         return self._dt.dt.is_leap_year
 * 
 *     def leap_bt_years(self, year: int) -> Series[int]:             # <<<<<<<<<<<<<<
 *         """Calculate the number of leap years between the dates
 *         and the given 'year' `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.leap_bt_years", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_y1_arr);
  __Pyx_XDECREF(__pyx_v_y2_arr);
  __Pyx_XDECREF(__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":585
 *         return self._arr_to_series(arr)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_in_year(self) -> Series[int]:
 *         """Get the maximum number of days in the year.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12days_in_year_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12days_in_year_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_12days_in_year___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12days_in_year___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":589
 *         """Get the maximum number of days in the year.
 *         Expect 365 or 366 (leapyear) `<'Series[int]'>`."""
 *         return self._arr_to_series(self._dt.dt.is_leap_year.values + 365)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_leap_year); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_365, 0x16D, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":585
 *         return self._arr_to_series(arr)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_in_year(self) -> Series[int]:
 *         """Get the maximum number of days in the year.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.days_in_year.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":591
 *         return self._arr_to_series(self._dt.dt.is_leap_year.values + 365)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_bf_year(self) -> Series[int]:
 *         """Get the number of days betweem the 1st day of 1AD and
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12days_bf_year_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12days_bf_year_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_12days_bf_year___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12days_bf_year___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":595
 *         """Get the number of days betweem the 1st day of 1AD and
 *         the 1st day of the year of the dates `<'Series[int]'>`."""
 *         return self.ordinal - self._dt.dt.day_of_year             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ordinal); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_day_of_year); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":591
 *         return self._arr_to_series(self._dt.dt.is_leap_year.values + 365)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_bf_year(self) -> Series[int]:
 *         """Get the number of days betweem the 1st day of 1AD and
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.days_bf_year.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":597
 *         return self.ordinal - self._dt.dt.day_of_year
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_of_year(self) -> Series[int]:
 *         """Get the number of days between the 1st day
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12days_of_year_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12days_of_year_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_12days_of_year___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12days_of_year___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":601
 *         """Get the number of days between the 1st day
 *         of the year and the dates `<'Series[int]'>`."""
 *         return self._dt.dt.day_of_year             # <<<<<<<<<<<<<<
 * 
 *     def is_year(self, year: int) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_day_of_year); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":597
 *         return self.ordinal - self._dt.dt.day_of_year
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_of_year(self) -> Series[int]:
 *         """Get the number of days between the 1st day
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.days_of_year.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":603
 *         return self._dt.dt.day_of_year
 * 
 *     def is_year(self, year: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'year' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.year.values == year)
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_15is_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_14is_year, "Whether the dates are in the given 'year' `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_15is_year = {"is_year", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_15is_year, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_14is_year};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_15is_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_year = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_year (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_year,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_year)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 603, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "is_year") < 0)) __PYX_ERR(0, 603, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_year = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_year", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 603, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_year), (&PyInt_Type), 0, "year", 1))) __PYX_ERR(0, 603, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_14is_year(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_year);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_14is_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_year) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_year", 1);

  /* "cytimes/pddatetime.py":605
 *     def is_year(self, year: int) -> Series[bool]:
 *         """Whether the dates are in the given 'year' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.year.values == year)             # <<<<<<<<<<<<<<
 * 
 *     def is_year_1st(self) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_year); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_v_year, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 605, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":603
 *         return self._dt.dt.day_of_year
 * 
 *     def is_year(self, year: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'year' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.year.values == year)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":607
 *         return self._arr_to_series(self._dt.dt.year.values == year)
 * 
 *     def is_year_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_start
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_17is_year_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_16is_year_1st, "Whether the dates are the 1st day of the year `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_17is_year_1st = {"is_year_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_17is_year_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_16is_year_1st};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_17is_year_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_year_1st (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_year_1st", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_year_1st", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_16is_year_1st(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_16is_year_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_year_1st", 1);

  /* "cytimes/pddatetime.py":609
 *     def is_year_1st(self) -> Series[bool]:
 *         """Whether the dates are the 1st day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_start             # <<<<<<<<<<<<<<
 * 
 *     def is_year_lst(self) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_year_start); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":607
 *         return self._arr_to_series(self._dt.dt.year.values == year)
 * 
 *     def is_year_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_start
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_year_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":611
 *         return self._dt.dt.is_year_start
 * 
 *     def is_year_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_end
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_19is_year_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_18is_year_lst, "Whether the dates are the last day of the year `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_19is_year_lst = {"is_year_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_19is_year_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_18is_year_lst};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_19is_year_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_year_lst (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_year_lst", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_year_lst", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_18is_year_lst(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_18is_year_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_year_lst", 1);

  /* "cytimes/pddatetime.py":613
 *     def is_year_lst(self) -> Series[bool]:
 *         """Whether the dates are the last day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_end             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_year_end); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":611
 *         return self._dt.dt.is_year_start
 * 
 *     def is_year_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_end
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_year_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":615
 *         return self._dt.dt.is_year_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year_1st(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_21to_year_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_year_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_year_1st", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_year_1st); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 615, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_21to_year_1st)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 615, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 615, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":618
 *     def to_year_1st(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt + typeref.OFST_YEAREND(0) - typeref.OFST_YEARBEGIN(1, month=1)
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":620
 *         try:
 *             dt: Series = (
 *                 self._dt + typeref.OFST_YEAREND(0) - typeref.OFST_YEARBEGIN(1, month=1)             # <<<<<<<<<<<<<<
 *             )
 *         except Exception as err:
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
      __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_3 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 620, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 620, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 620, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_month, __pyx_int_1) < 0) __PYX_ERR(0, 620, __pyx_L3_error)
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_YEARBEGIN, __pyx_tuple__14, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 620, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 620, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":618
 *     def to_year_1st(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt + typeref.OFST_YEAREND(0) - typeref.OFST_YEARBEGIN(1, month=1)
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":622
 *                 self._dt + typeref.OFST_YEAREND(0) - typeref.OFST_YEARBEGIN(1, month=1)
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 622, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_v_err = __pyx_t_3;
      /*try:*/ {

        /* "cytimes/pddatetime.py":623
 *             )
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 623, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 623, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":622
 *                 self._dt + typeref.OFST_YEAREND(0) - typeref.OFST_YEARBEGIN(1, month=1)
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":618
 *     def to_year_1st(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt + typeref.OFST_YEAREND(0) - typeref.OFST_YEARBEGIN(1, month=1)
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":624
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 624, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":615
 *         return self._dt.dt.is_year_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year_1st(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_21to_year_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_20to_year_1st, "Go to the 1st day of the year `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_21to_year_1st = {"to_year_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_21to_year_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_20to_year_1st};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_21to_year_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_year_1st (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_year_1st", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_year_1st", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_20to_year_1st(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_20to_year_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_year_1st", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_year_1st(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":626
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year_lst(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_23to_year_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_year_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_year_lst", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_year_lst); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 626, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_23to_year_lst)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 626, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 626, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":629
 *     def to_year_lst(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_YEAREND(0)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":630
 *         """Go to the 1st day of the year `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
      __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_3 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 630, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_dt = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":629
 *     def to_year_lst(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_YEAREND(0)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":631
 *         try:
 *             dt: Series = self._dt + typeref.OFST_YEAREND(0)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_3) < 0) __PYX_ERR(0, 631, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_v_err = __pyx_t_1;
      /*try:*/ {

        /* "cytimes/pddatetime.py":632
 *             dt: Series = self._dt + typeref.OFST_YEAREND(0)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 632, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 632, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":631
 *         try:
 *             dt: Series = self._dt + typeref.OFST_YEAREND(0)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":629
 *     def to_year_lst(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_YEAREND(0)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":633
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 633, __pyx_L1_error) }
  __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":626
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year_lst(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_23to_year_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_22to_year_lst, "Go to the 1st day of the year `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_23to_year_lst = {"to_year_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_23to_year_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_22to_year_lst};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_23to_year_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_year_lst (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_year_lst", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_year_lst", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_22to_year_lst(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_22to_year_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_year_lst", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_year_lst(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":635
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_year(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_25to_curr_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_year *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":638
 *     def to_curr_year(
 *         self,
 *         month: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *         day: cython.int = -1,
 *     ) -> pddt:
 */
  PyObject *__pyx_v_month = ((PyObject *)Py_None);
  int __pyx_v_day = ((int)-1);
  int __pyx_v_mth;
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  char const *__pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  char const *__pyx_t_20;
  char const *__pyx_t_21;
  char const *__pyx_t_22;
  char const *__pyx_t_23;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_curr_year", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_month = __pyx_optional_args->month;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_day = __pyx_optional_args->day;
      }
    }
  }

  /* "cytimes/pddatetime.py":635
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_year(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_curr_year); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 635, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_25to_curr_year)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 635, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_month, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 635, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 635, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":643
 *         """Go to specific 'month' and 'day' of the current year `<'pddt'>`."""
 *         # Invalid 'month' value
 *         mth: cython.int = self._parse_month(month)             # <<<<<<<<<<<<<<
 *         if mth == -1:
 *             return self.to_curr_month(day)  # exit
 */
  __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_month(__pyx_v_self, __pyx_v_month); if (unlikely(__pyx_t_6 == ((int)-2))) __PYX_ERR(0, 643, __pyx_L1_error)
  __pyx_v_mth = __pyx_t_6;

  /* "cytimes/pddatetime.py":644
 *         # Invalid 'month' value
 *         mth: cython.int = self._parse_month(month)
 *         if mth == -1:             # <<<<<<<<<<<<<<
 *             return self.to_curr_month(day)  # exit
 *         # Invalid 'day' value
 */
  __pyx_t_7 = (__pyx_v_mth == -1L);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":645
 *         mth: cython.int = self._parse_month(month)
 *         if mth == -1:
 *             return self.to_curr_month(day)  # exit             # <<<<<<<<<<<<<<
 *         # Invalid 'day' value
 *         if day < 1:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.day = __pyx_v_day;
    __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_curr_month(__pyx_v_self, 0, &__pyx_t_8)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 645, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":644
 *         # Invalid 'month' value
 *         mth: cython.int = self._parse_month(month)
 *         if mth == -1:             # <<<<<<<<<<<<<<
 *             return self.to_curr_month(day)  # exit
 *         # Invalid 'day' value
 */
  }

  /* "cytimes/pddatetime.py":647
 *             return self.to_curr_month(day)  # exit
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_7 = (__pyx_v_day < 1);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":648
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":651
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_4 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_0};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 651, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 651, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":652
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 652, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_mth); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 652, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_month, __pyx_t_4) < 0) __PYX_ERR(0, 652, __pyx_L5_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_YEARBEGIN, __pyx_tuple__14, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 652, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 652, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":655
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values) - 1,             # <<<<<<<<<<<<<<
 *                     "D",
 *                 )
 */
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 655, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 655, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 655, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 655, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_day); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 655, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_values); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 655, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_3 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_2};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 655, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 655, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":654
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values) - 1,
 *                     "D",
 */
        __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_3, __pyx_n_u_D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 654, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 654, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "cytimes/pddatetime.py":648
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L10_try_end;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":658
 *                     "D",
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month
 */
      __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_6) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 658, __pyx_L7_except_error)
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_err = __pyx_t_1;
        /*try:*/ {

          /* "cytimes/pddatetime.py":659
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # First day of the month
 *         elif day == 1:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 659, __pyx_L16_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 659, __pyx_L16_error)
        }

        /* "cytimes/pddatetime.py":658
 *                     "D",
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L17;
          }
          __pyx_L16_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_14);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __pyx_t_6 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_13 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
            }
            __Pyx_XGIVEREF(__pyx_t_14);
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16);
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_13;
            goto __pyx_L7_except_error;
          }
          __pyx_L17:;
        }
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L6_exception_handled;
      }
      goto __pyx_L7_except_error;

      /* "cytimes/pddatetime.py":648
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L7_except_error:;
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L6_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      __pyx_L10_try_end:;
    }

    /* "cytimes/pddatetime.py":647
 *             return self.to_curr_month(day)  # exit
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":661
 *                 self._raise_error(err)
 *         # First day of the month
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_7 = (__pyx_v_day == 1);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":662
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_9);
      /*try:*/ {

        /* "cytimes/pddatetime.py":665
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_3 = NULL;
        __pyx_t_12 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_12 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_12, 1+__pyx_t_12);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 665, __pyx_L22_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 665, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":666
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_mth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 666, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_month, __pyx_t_3) < 0) __PYX_ERR(0, 666, __pyx_L22_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_YEARBEGIN, __pyx_tuple__14, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 666, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_v_dt = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":662
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L27_try_end;
      __pyx_L22_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":668
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28
 */
      __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_12) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_1) < 0) __PYX_ERR(0, 668, __pyx_L24_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_3);
        __pyx_v_err = __pyx_t_3;
        /*try:*/ {

          /* "cytimes/pddatetime.py":669
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 28
 *         elif day < 29:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 669, __pyx_L33_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 669, __pyx_L33_error)
        }

        /* "cytimes/pddatetime.py":668
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L34;
          }
          __pyx_L33_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_t_14 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_15, &__pyx_t_14);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_18, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_18, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_14);
            __pyx_t_12 = __pyx_lineno; __pyx_t_6 = __pyx_clineno; __pyx_t_20 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_XGIVEREF(__pyx_t_14);
              __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_15, __pyx_t_14);
            }
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_19, __pyx_t_18, __pyx_t_17);
            __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_t_14 = 0;
            __pyx_lineno = __pyx_t_12; __pyx_clineno = __pyx_t_6; __pyx_filename = __pyx_t_20;
            goto __pyx_L24_except_error;
          }
          __pyx_L34:;
        }
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L23_exception_handled;
      }
      goto __pyx_L24_except_error;

      /* "cytimes/pddatetime.py":662
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L24_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_10, __pyx_t_9);
      goto __pyx_L1_error;
      __pyx_L23_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_10, __pyx_t_9);
      __pyx_L27_try_end:;
    }

    /* "cytimes/pddatetime.py":661
 *                 self._raise_error(err)
 *         # First day of the month
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":671
 *                 self._raise_error(err)
 *         # Days before 28
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_7 = (__pyx_v_day < 29);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":672
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":675
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                     + typeref.OFST_DAY(day - 1)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_3 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_2 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_2)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_2);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_int_0};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 675, __pyx_L39_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_t_3 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 675, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":676
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 676, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_mth); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 676, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_month, __pyx_t_2) < 0) __PYX_ERR(0, 676, __pyx_L39_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_YEARBEGIN, __pyx_tuple__14, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 676, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Subtract(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 676, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":677
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                     + typeref.OFST_DAY(day - 1)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_3 = __Pyx_PyInt_From_long((__pyx_v_day - 1)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 677, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_DAY);
        __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_DAY; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 677, __pyx_L39_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 677, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":672
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L44_try_end;
      __pyx_L39_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":679
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31
 */
      __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_6) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 679, __pyx_L41_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_v_err = __pyx_t_2;
        /*try:*/ {

          /* "cytimes/pddatetime.py":680
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 31
 *         elif day < 31:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 680, __pyx_L50_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 680, __pyx_L50_error)
        }

        /* "cytimes/pddatetime.py":679
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L51;
          }
          __pyx_L50_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_14);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __pyx_t_6 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_21 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
            }
            __Pyx_XGIVEREF(__pyx_t_14);
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16);
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_21;
            goto __pyx_L41_except_error;
          }
          __pyx_L51:;
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L40_exception_handled;
      }
      goto __pyx_L41_except_error;

      /* "cytimes/pddatetime.py":672
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L41_except_error:;
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L40_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      __pyx_L44_try_end:;
    }

    /* "cytimes/pddatetime.py":671
 *                 self._raise_error(err)
 *         # Days before 28
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":682
 *                 self._raise_error(err)
 *         # Days before 31
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_7 = (__pyx_v_day < 31);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":683
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_9);
      /*try:*/ {

        /* "cytimes/pddatetime.py":686
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_4 = NULL;
        __pyx_t_12 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_12 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_0};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_12, 1+__pyx_t_12);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 686, __pyx_L56_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 686, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":687
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_mth); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 687, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_month, __pyx_t_4) < 0) __PYX_ERR(0, 687, __pyx_L56_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_YEARBEGIN, __pyx_tuple__14, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 687, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":690
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 690, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 690, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_3 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_5 = NULL;
        __pyx_t_12 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_12 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_2};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_12, 2+__pyx_t_12);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 690, __pyx_L56_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 690, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":689
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 */
        __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_3, __pyx_n_u_D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 689, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 689, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "cytimes/pddatetime.py":683
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L61_try_end;
      __pyx_L56_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":692
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month
 */
      __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_12) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 692, __pyx_L58_except_error)
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_err = __pyx_t_1;
        /*try:*/ {

          /* "cytimes/pddatetime.py":693
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Last day of the month
 *         else:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 693, __pyx_L67_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 693, __pyx_L67_error)
        }

        /* "cytimes/pddatetime.py":692
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L68;
          }
          __pyx_L67_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_t_14 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_15, &__pyx_t_14);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_18, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_18, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_14);
            __pyx_t_12 = __pyx_lineno; __pyx_t_6 = __pyx_clineno; __pyx_t_22 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_XGIVEREF(__pyx_t_14);
              __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_15, __pyx_t_14);
            }
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_19, __pyx_t_18, __pyx_t_17);
            __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_t_14 = 0;
            __pyx_lineno = __pyx_t_12; __pyx_clineno = __pyx_t_6; __pyx_filename = __pyx_t_22;
            goto __pyx_L58_except_error;
          }
          __pyx_L68:;
        }
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L57_exception_handled;
      }
      goto __pyx_L58_except_error;

      /* "cytimes/pddatetime.py":683
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L58_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_10, __pyx_t_9);
      goto __pyx_L1_error;
      __pyx_L57_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_10, __pyx_t_9);
      __pyx_L61_try_end:;
    }

    /* "cytimes/pddatetime.py":682
 *                 self._raise_error(err)
 *         # Days before 31
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":696
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
  /*else*/ {
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":699
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                     + typeref.OFST_MONTHEND(0)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_3 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 699, __pyx_L73_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 699, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":700
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 700, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_mth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 700, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_month, __pyx_t_3) < 0) __PYX_ERR(0, 700, __pyx_L73_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_YEARBEGIN, __pyx_tuple__14, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 700, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 700, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

        /* "cytimes/pddatetime.py":701
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_4 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_0};
          __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 701, __pyx_L73_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 701, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":696
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L78_try_end;
      __pyx_L73_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":703
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
      __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_6) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 703, __pyx_L75_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_3);
        __pyx_v_err = __pyx_t_3;
        /*try:*/ {

          /* "cytimes/pddatetime.py":704
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 704, __pyx_L84_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 704, __pyx_L84_error)
        }

        /* "cytimes/pddatetime.py":703
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L85;
          }
          __pyx_L84_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_14);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __pyx_t_6 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_23 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
            }
            __Pyx_XGIVEREF(__pyx_t_14);
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16);
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_23;
            goto __pyx_L75_except_error;
          }
          __pyx_L85:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L74_exception_handled;
      }
      goto __pyx_L75_except_error;

      /* "cytimes/pddatetime.py":696
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L75_except_error:;
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L74_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      __pyx_L78_try_end:;
    }
  }
  __pyx_L4:;

  /* "cytimes/pddatetime.py":706
 *                 self._raise_error(err)
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 706, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":635
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_year(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_25to_curr_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_24to_curr_year, "Go to specific 'month' and 'day' of the current year `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_25to_curr_year = {"to_curr_year", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_25to_curr_year, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_24to_curr_year};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_25to_curr_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_month = 0;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_curr_year (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_month,&__pyx_n_s_day,0};

    /* "cytimes/pddatetime.py":638
 *     def to_curr_year(
 *         self,
 *         month: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *         day: cython.int = -1,
 *     ) -> pddt:
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 635, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 635, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_curr_year") < 0)) __PYX_ERR(0, 635, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_month = values[0];
    if (values[1]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 639, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_curr_year", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 635, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_24to_curr_year(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_month, __pyx_v_day);

  /* "cytimes/pddatetime.py":635
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_year(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_24to_curr_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_year __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_curr_year", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.month = __pyx_v_month;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_curr_year(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":708
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_year(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_27to_prev_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_year *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":711
 *     def to_prev_year(
 *         self,
 *         month: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *         day: cython.int = -1,
 *     ) -> pddt:
 */
  PyObject *__pyx_v_month = ((PyObject *)Py_None);
  int __pyx_v_day = ((int)-1);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_prev_year", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_month = __pyx_optional_args->month;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_day = __pyx_optional_args->day;
      }
    }
  }

  /* "cytimes/pddatetime.py":708
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_year(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_prev_year); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 708, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_27to_prev_year)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 708, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_month, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 708, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 708, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":715
 *     ) -> pddt:
 *         """Go to specific 'month' and 'day' of the previous year `<'pddt'>`."""
 *         return self.to_year(-1, month, day)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_7.__pyx_n = 3;
  __pyx_t_7.offset = -1;
  __pyx_t_7.month = __pyx_v_month;
  __pyx_t_7.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_year(__pyx_v_self, 0, &__pyx_t_7)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":708
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_year(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_27to_prev_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_26to_prev_year, "Go to specific 'month' and 'day' of the previous year `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_27to_prev_year = {"to_prev_year", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_27to_prev_year, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_26to_prev_year};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_27to_prev_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_month = 0;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_prev_year (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_month,&__pyx_n_s_day,0};

    /* "cytimes/pddatetime.py":711
 *     def to_prev_year(
 *         self,
 *         month: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *         day: cython.int = -1,
 *     ) -> pddt:
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 708, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 708, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_prev_year") < 0)) __PYX_ERR(0, 708, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_month = values[0];
    if (values[1]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 712, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_prev_year", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 708, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_26to_prev_year(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_month, __pyx_v_day);

  /* "cytimes/pddatetime.py":708
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_year(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_26to_prev_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_year __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_prev_year", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.month = __pyx_v_month;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_prev_year(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":717
 *         return self.to_year(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_year(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_29to_next_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_next_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_year *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":720
 *     def to_next_year(
 *         self,
 *         month: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *         day: cython.int = -1,
 *     ) -> pddt:
 */
  PyObject *__pyx_v_month = ((PyObject *)Py_None);
  int __pyx_v_day = ((int)-1);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_next_year", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_month = __pyx_optional_args->month;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_day = __pyx_optional_args->day;
      }
    }
  }

  /* "cytimes/pddatetime.py":717
 *         return self.to_year(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_year(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_next_year); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_29to_next_year)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 717, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_month, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 717, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 717, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":724
 *     ) -> pddt:
 *         """Go to specific 'month' and 'day' of the next year `<'pddt'>`."""
 *         return self.to_year(1, month, day)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_7.__pyx_n = 3;
  __pyx_t_7.offset = 1;
  __pyx_t_7.month = __pyx_v_month;
  __pyx_t_7.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_year(__pyx_v_self, 0, &__pyx_t_7)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 724, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":717
 *         return self.to_year(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_year(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_29to_next_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_28to_next_year, "Go to specific 'month' and 'day' of the next year `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_29to_next_year = {"to_next_year", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_29to_next_year, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_28to_next_year};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_29to_next_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_month = 0;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_next_year (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_month,&__pyx_n_s_day,0};

    /* "cytimes/pddatetime.py":720
 *     def to_next_year(
 *         self,
 *         month: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *         day: cython.int = -1,
 *     ) -> pddt:
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 717, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 717, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_next_year") < 0)) __PYX_ERR(0, 717, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_month = values[0];
    if (values[1]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 721, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_next_year", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 717, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_28to_next_year(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_month, __pyx_v_day);

  /* "cytimes/pddatetime.py":717
 *         return self.to_year(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_year(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_28to_next_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_year __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_next_year", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.month = __pyx_v_month;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_next_year(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":726
 *         return self.to_year(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_31to_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year *__pyx_optional_args) {
  int __pyx_v_offset = ((int)0);

  /* "cytimes/pddatetime.py":730
 *         self,
 *         offset: cython.int = 0,
 *         month: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *         day: cython.int = -1,
 *     ) -> pddt:
 */
  PyObject *__pyx_v_month = ((PyObject *)Py_None);
  int __pyx_v_day = ((int)-1);
  int __pyx_v_mth;
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_year __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  char const *__pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month __pyx_t_21;
  char const *__pyx_t_22;
  char const *__pyx_t_23;
  char const *__pyx_t_24;
  char const *__pyx_t_25;
  char const *__pyx_t_26;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_year", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_offset = __pyx_optional_args->offset;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_month = __pyx_optional_args->month;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_day = __pyx_optional_args->day;
        }
      }
    }
  }

  /* "cytimes/pddatetime.py":726
 *         return self.to_year(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_year); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 726, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_31to_year)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 726, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 726, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_6, __pyx_t_3, __pyx_v_month, __pyx_t_4};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 3+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 726, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 726, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":735
 *         """Go to specific 'month' and 'day' of the current year (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self.to_curr_year(month, day)  # exit
 *         # Invalid 'month' value
 */
  __pyx_t_8 = (__pyx_v_offset == 0);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":736
 *         # No 'offset' adjustment
 *         if offset == 0:
 *             return self.to_curr_year(month, day)  # exit             # <<<<<<<<<<<<<<
 *         # Invalid 'month' value
 *         mth: cython.int = self._parse_month(month)
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_9.__pyx_n = 2;
    __pyx_t_9.month = __pyx_v_month;
    __pyx_t_9.day = __pyx_v_day;
    __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_curr_year(__pyx_v_self, 0, &__pyx_t_9)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":735
 *         """Go to specific 'month' and 'day' of the current year (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self.to_curr_year(month, day)  # exit
 *         # Invalid 'month' value
 */
  }

  /* "cytimes/pddatetime.py":738
 *             return self.to_curr_year(month, day)  # exit
 *         # Invalid 'month' value
 *         mth: cython.int = self._parse_month(month)             # <<<<<<<<<<<<<<
 *         if mth == -1:
 *             try:
 */
  __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_month(__pyx_v_self, __pyx_v_month); if (unlikely(__pyx_t_7 == ((int)-2))) __PYX_ERR(0, 738, __pyx_L1_error)
  __pyx_v_mth = __pyx_t_7;

  /* "cytimes/pddatetime.py":739
 *         # Invalid 'month' value
 *         mth: cython.int = self._parse_month(month)
 *         if mth == -1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)
 */
  __pyx_t_8 = (__pyx_v_mth == -1L);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":740
 *         mth: cython.int = self._parse_month(month)
 *         if mth == -1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)
 *             except Exception as err:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cytimes/pddatetime.py":741
 *         if mth == -1:
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)             # <<<<<<<<<<<<<<
 *             except Exception as err:
 *                 self._raise_error(err)
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 741, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 741, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_years, __pyx_t_2) < 0) __PYX_ERR(0, 741, __pyx_L5_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 741, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 741, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":740
 *         mth: cython.int = self._parse_month(month)
 *         if mth == -1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)
 *             except Exception as err:
 */
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L10_try_end;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":742
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_5) < 0) __PYX_ERR(0, 742, __pyx_L7_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_v_err = __pyx_t_2;
        /*try:*/ {

          /* "cytimes/pddatetime.py":743
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 *         # Invalid 'day' value
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 743, __pyx_L16_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 743, __pyx_L16_error)
        }

        /* "cytimes/pddatetime.py":742
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L17;
          }
          __pyx_L16_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __pyx_t_7 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
            }
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17);
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14;
            goto __pyx_L7_except_error;
          }
          __pyx_L17:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        goto __pyx_L6_exception_handled;
      }
      goto __pyx_L7_except_error;

      /* "cytimes/pddatetime.py":740
 *         mth: cython.int = self._parse_month(month)
 *         if mth == -1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)
 *             except Exception as err:
 */
      __pyx_L7_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L6_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_L10_try_end:;
    }

    /* "cytimes/pddatetime.py":744
 *             except Exception as err:
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit             # <<<<<<<<<<<<<<
 *         # Invalid 'day' value
 *         if day < 1:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 744, __pyx_L1_error) }
    __pyx_t_5 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 744, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_21.__pyx_n = 1;
    __pyx_t_21.day = __pyx_v_day;
    __pyx_t_2 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_5)->__pyx_vtab)->to_curr_month(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_5), 0, &__pyx_t_21)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 744, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":739
 *         # Invalid 'month' value
 *         mth: cython.int = self._parse_month(month)
 *         if mth == -1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(years=offset)
 */
  }

  /* "cytimes/pddatetime.py":746
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day < 1);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":747
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_11, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cytimes/pddatetime.py":750
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_5 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_1 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_1)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 750, __pyx_L23_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        __pyx_t_5 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 750, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":751
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 751, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 751, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_years, __pyx_t_1) < 0) __PYX_ERR(0, 751, __pyx_L23_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyInt_From_long((__pyx_v_mth - 12)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 751, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_months, __pyx_t_1) < 0) __PYX_ERR(0, 751, __pyx_L23_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 751, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Add(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 751, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_v_dt = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":754
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values)             # <<<<<<<<<<<<<<
 *                     - dt.dt.day.values,
 *                     "D",
 */
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 754, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 754, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 754, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 754, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 754, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 754, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_4 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_3 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_1, __pyx_t_5};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_13, 2+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 754, __pyx_L23_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }

        /* "cytimes/pddatetime.py":755
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values)
 *                     - dt.dt.day.values,             # <<<<<<<<<<<<<<
 *                     "D",
 *                 )
 */
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 755, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_day); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 755, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 755, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_Subtract(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 755, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":753
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values)
 *                     - dt.dt.day.values,
 */
        __pyx_t_4 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_5, __pyx_n_u_D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 753, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 753, __pyx_L23_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_5);
        __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":747
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L28_try_end;
      __pyx_L23_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":758
 *                     "D",
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month
 */
      __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_13) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_2) < 0) __PYX_ERR(0, 758, __pyx_L25_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v_err = __pyx_t_4;
        /*try:*/ {

          /* "cytimes/pddatetime.py":759
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # First day of the month
 *         elif day == 1:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 759, __pyx_L34_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 759, __pyx_L34_error)
        }

        /* "cytimes/pddatetime.py":758
 *                     "D",
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L35;
          }
          __pyx_L34_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_16, &__pyx_t_15);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __pyx_t_13 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_22 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_16, __pyx_t_15);
            }
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_20, __pyx_t_19, __pyx_t_18);
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_22;
            goto __pyx_L25_except_error;
          }
          __pyx_L35:;
        }
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L24_exception_handled;
      }
      goto __pyx_L25_except_error;

      /* "cytimes/pddatetime.py":747
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L25_except_error:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L24_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      __pyx_L28_try_end:;
    }

    /* "cytimes/pddatetime.py":746
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L22;
  }

  /* "cytimes/pddatetime.py":761
 *                 self._raise_error(err)
 *         # First day of the month
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day == 1);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":762
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cytimes/pddatetime.py":765
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                     + typeref.OFST_DATEOFFSET(years=offset)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_5 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 765, __pyx_L40_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 765, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":766
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(years=offset)
 *                 )
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 766, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_mth); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 766, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_month, __pyx_t_5) < 0) __PYX_ERR(0, 766, __pyx_L40_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_YEARBEGIN, __pyx_tuple__14, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 766, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Subtract(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 766, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":767
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                     + typeref.OFST_DATEOFFSET(years=offset)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 767, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 767, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_years, __pyx_t_4) < 0) __PYX_ERR(0, 767, __pyx_L40_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 767, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 767, __pyx_L40_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_dt = __pyx_t_5;
        __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":762
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L45_try_end;
      __pyx_L40_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":769
 *                     + typeref.OFST_DATEOFFSET(years=offset)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_2) < 0) __PYX_ERR(0, 769, __pyx_L42_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v_err = __pyx_t_4;
        /*try:*/ {

          /* "cytimes/pddatetime.py":770
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 28
 *         elif day < 29:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 770, __pyx_L51_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 770, __pyx_L51_error)
        }

        /* "cytimes/pddatetime.py":769
 *                     + typeref.OFST_DATEOFFSET(years=offset)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L52;
          }
          __pyx_L51_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __pyx_t_7 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_23 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
            }
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17);
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_23;
            goto __pyx_L42_except_error;
          }
          __pyx_L52:;
        }
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L41_exception_handled;
      }
      goto __pyx_L42_except_error;

      /* "cytimes/pddatetime.py":762
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L42_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L41_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_L45_try_end:;
    }

    /* "cytimes/pddatetime.py":761
 *                 self._raise_error(err)
 *         # First day of the month
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L22;
  }

  /* "cytimes/pddatetime.py":772
 *                 self._raise_error(err)
 *         # Days before 28
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day < 29);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":773
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_11, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cytimes/pddatetime.py":776
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                     + typeref.OFST_DATEOFFSET(years=offset, days=day - 1)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_5 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 776, __pyx_L57_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 776, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":777
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(years=offset, days=day - 1)
 *                 )
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 777, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_mth); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 777, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_month, __pyx_t_5) < 0) __PYX_ERR(0, 777, __pyx_L57_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_YEARBEGIN, __pyx_tuple__14, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 777, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Subtract(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 777, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":778
 *                     + typeref.OFST_YEAREND(0)
 *                     - typeref.OFST_YEARBEGIN(1, month=mth)
 *                     + typeref.OFST_DATEOFFSET(years=offset, days=day - 1)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 778, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 778, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_years, __pyx_t_4) < 0) __PYX_ERR(0, 778, __pyx_L57_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyInt_From_long((__pyx_v_day - 1)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 778, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_days, __pyx_t_4) < 0) __PYX_ERR(0, 778, __pyx_L57_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 778, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 778, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_dt = __pyx_t_5;
        __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":773
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L62_try_end;
      __pyx_L57_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":780
 *                     + typeref.OFST_DATEOFFSET(years=offset, days=day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31st
 */
      __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_13) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_2) < 0) __PYX_ERR(0, 780, __pyx_L59_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v_err = __pyx_t_4;
        /*try:*/ {

          /* "cytimes/pddatetime.py":781
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 31st
 *         elif day < 31:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 781, __pyx_L68_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 781, __pyx_L68_error)
        }

        /* "cytimes/pddatetime.py":780
 *                     + typeref.OFST_DATEOFFSET(years=offset, days=day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31st
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L69;
          }
          __pyx_L68_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_16, &__pyx_t_15);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __pyx_t_13 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_24 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_16, __pyx_t_15);
            }
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_20, __pyx_t_19, __pyx_t_18);
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_24;
            goto __pyx_L59_except_error;
          }
          __pyx_L69:;
        }
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L58_exception_handled;
      }
      goto __pyx_L59_except_error;

      /* "cytimes/pddatetime.py":773
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L59_except_error:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L58_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      __pyx_L62_try_end:;
    }

    /* "cytimes/pddatetime.py":772
 *                 self._raise_error(err)
 *         # Days before 28
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L22;
  }

  /* "cytimes/pddatetime.py":783
 *                 self._raise_error(err)
 *         # Days before 31st
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day < 31);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":784
 *         # Days before 31st
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cytimes/pddatetime.py":787
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_5 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 787, __pyx_L74_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 787, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":788
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 788, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 788, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_years, __pyx_t_5) < 0) __PYX_ERR(0, 788, __pyx_L74_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyInt_From_long((__pyx_v_mth - 12)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 788, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_months, __pyx_t_5) < 0) __PYX_ERR(0, 788, __pyx_L74_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 788, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Add(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 788, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_dt = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":791
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - dt.dt.day.values, "D"             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 791, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 791, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 791, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 791, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_1 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_3 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_4};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_7, 2+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 791, __pyx_L74_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 791, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 791, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 791, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 791, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":790
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - dt.dt.day.values, "D"
 *                 )
 */
        __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_4, __pyx_n_u_D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 790, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":784
 *         # Days before 31st
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L79_try_end;
      __pyx_L74_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":793
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - dt.dt.day.values, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 793, __pyx_L76_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_err = __pyx_t_1;
        /*try:*/ {

          /* "cytimes/pddatetime.py":794
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Last day of the month
 *         else:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 794, __pyx_L85_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 794, __pyx_L85_error)
        }

        /* "cytimes/pddatetime.py":793
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - dt.dt.day.values, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L86;
          }
          __pyx_L85_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __pyx_t_7 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_25 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
            }
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17);
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_25;
            goto __pyx_L76_except_error;
          }
          __pyx_L86:;
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L75_exception_handled;
      }
      goto __pyx_L76_except_error;

      /* "cytimes/pddatetime.py":784
 *         # Days before 31st
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L76_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L75_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_L79_try_end:;
    }

    /* "cytimes/pddatetime.py":783
 *                 self._raise_error(err)
 *         # Days before 31st
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L22;
  }

  /* "cytimes/pddatetime.py":797
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
  /*else*/ {
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_11, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cytimes/pddatetime.py":800
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)
 *                     + typeref.OFST_MONTHEND(0)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_YEAREND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_YEAREND; __pyx_t_4 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 800, __pyx_L91_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 800, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":801
 *                     self._dt
 *                     + typeref.OFST_YEAREND(0)
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 801, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 801, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_years, __pyx_t_4) < 0) __PYX_ERR(0, 801, __pyx_L91_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyInt_From_long((__pyx_v_mth - 12)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 801, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_months, __pyx_t_4) < 0) __PYX_ERR(0, 801, __pyx_L91_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 801, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 801, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":802
 *                     + typeref.OFST_YEAREND(0)
 *                     + typeref.OFST_DATEOFFSET(years=offset, months=mth - 12)
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_5 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 802, __pyx_L91_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 802, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":797
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L96_try_end;
      __pyx_L91_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":804
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
      __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_13) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_4, &__pyx_t_2) < 0) __PYX_ERR(0, 804, __pyx_L93_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v_err = __pyx_t_4;
        /*try:*/ {

          /* "cytimes/pddatetime.py":805
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 805, __pyx_L102_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 805, __pyx_L102_error)
        }

        /* "cytimes/pddatetime.py":804
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L103;
          }
          __pyx_L102_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_16, &__pyx_t_15);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __pyx_t_13 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_26 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_16, __pyx_t_15);
            }
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_20, __pyx_t_19, __pyx_t_18);
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_26;
            goto __pyx_L93_except_error;
          }
          __pyx_L103:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L92_exception_handled;
      }
      goto __pyx_L93_except_error;

      /* "cytimes/pddatetime.py":797
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L93_except_error:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L92_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      __pyx_L96_try_end:;
    }
  }
  __pyx_L22:;

  /* "cytimes/pddatetime.py":807
 *                 self._raise_error(err)
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 * 
 *     # Quarter ---------------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 807, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":726
 *         return self.to_year(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_31to_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_30to_year, "Go to specific 'month' and 'day' of the current year (+/-) 'offset' `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_31to_year = {"to_year", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_31to_year, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_30to_year};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_31to_year(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_offset;
  PyObject *__pyx_v_month = 0;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_year (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,&__pyx_n_s_month,&__pyx_n_s_day,0};

    /* "cytimes/pddatetime.py":730
 *         self,
 *         offset: cython.int = 0,
 *         month: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *         day: cython.int = -1,
 *     ) -> pddt:
 */
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_offset);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 726, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 726, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 726, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_year") < 0)) __PYX_ERR(0, 726, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_offset = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_offset == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 729, __pyx_L3_error)
    } else {
      __pyx_v_offset = ((int)0);
    }
    __pyx_v_month = values[1];
    if (values[2]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 731, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_year", 0, 0, 3, __pyx_nargs); __PYX_ERR(0, 726, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_30to_year(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_offset, __pyx_v_month, __pyx_v_day);

  /* "cytimes/pddatetime.py":726
 *         return self.to_year(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_30to_year(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, PyObject *__pyx_v_month, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_year", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 3;
  __pyx_t_2.offset = __pyx_v_offset;
  __pyx_t_2.month = __pyx_v_month;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_year(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_year", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":810
 * 
 *     # Quarter ---------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def days_in_quarter(self) -> Series[int]:
 *         """Get the maximum number of days in the quarter `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_15days_in_quarter_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_15days_in_quarter_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_15days_in_quarter___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_15days_in_quarter___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_v_quarter = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":813
 *     def days_in_quarter(self) -> Series[int]:
 *         """Get the maximum number of days in the quarter `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values             # <<<<<<<<<<<<<<
 *         return self._arr_to_series(
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter]
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_quarter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_quarter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":814
 *         """Get the maximum number of days in the quarter `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter]
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 */
  __Pyx_XDECREF(__pyx_r);

  /* "cytimes/pddatetime.py":815
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter]             # <<<<<<<<<<<<<<
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 *             + self._dt.dt.is_leap_year.values
 */
  __pyx_t_1 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_7cytimes_10cydatetime_DAYS_BR_QUARTER_NDARRAY), __pyx_v_quarter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "cytimes/pddatetime.py":816
 *         return self._arr_to_series(
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter]
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]             # <<<<<<<<<<<<<<
 *             + self._dt.dt.is_leap_year.values
 *         )
 */
  __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_v_quarter, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_7cytimes_10cydatetime_DAYS_BR_QUARTER_NDARRAY), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":817
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter]
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 *             + self._dt.dt.is_leap_year.values             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_is_leap_year); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":814
 *         """Get the maximum number of days in the quarter `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter]
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 */
  __pyx_t_3 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":810
 * 
 *     # Quarter ---------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def days_in_quarter(self) -> Series[int]:
 *         """Get the maximum number of days in the quarter `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.days_in_quarter.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_quarter);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":820
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_bf_quarter(self) -> Series[int]:
 *         """Get the number of days between the 1st day of the year and
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_15days_bf_quarter_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_15days_bf_quarter_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_15days_bf_quarter___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_15days_bf_quarter___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_v_quarter = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":824
 *         """Get the number of days between the 1st day of the year and
 *         the 1st day of the quarter `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values             # <<<<<<<<<<<<<<
 *         return self._arr_to_series(
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_quarter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_quarter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":825
 *         the 1st day of the quarter `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 *             + self._dt.dt.is_leap_year.values * (quarter > 1)
 */
  __Pyx_XDECREF(__pyx_r);

  /* "cytimes/pddatetime.py":826
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]             # <<<<<<<<<<<<<<
 *             + self._dt.dt.is_leap_year.values * (quarter > 1)
 *         )
 */
  __pyx_t_1 = __Pyx_PyInt_SubtractObjC(__pyx_v_quarter, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 826, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_7cytimes_10cydatetime_DAYS_BR_QUARTER_NDARRAY), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 826, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":827
 *         return self._arr_to_series(
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 *             + self._dt.dt.is_leap_year.values * (quarter > 1)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_leap_year); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_RichCompare(__pyx_v_quarter, __pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error)
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":825
 *         the 1st day of the quarter `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 *             + self._dt.dt.is_leap_year.values * (quarter > 1)
 */
  __pyx_t_4 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":820
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_bf_quarter(self) -> Series[int]:
 *         """Get the number of days between the 1st day of the year and
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.days_bf_quarter.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_quarter);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":830
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_of_quarter(self) -> Series[int]:
 *         """Get the number of days between the 1st day of the quarter
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_15days_of_quarter_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_15days_of_quarter_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_15days_of_quarter___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_15days_of_quarter___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_v_quarter = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":834
 *         """Get the number of days between the 1st day of the quarter
 *         and the dates `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values             # <<<<<<<<<<<<<<
 *         return self._arr_to_series(
 *             self._dt.dt.day_of_year.values
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_quarter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_quarter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":835
 *         and the dates `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             self._dt.dt.day_of_year.values
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 */
  __Pyx_XDECREF(__pyx_r);

  /* "cytimes/pddatetime.py":836
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(
 *             self._dt.dt.day_of_year.values             # <<<<<<<<<<<<<<
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 *             - self._dt.dt.is_leap_year.values * (quarter > 1)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_day_of_year); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":837
 *         return self._arr_to_series(
 *             self._dt.dt.day_of_year.values
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]             # <<<<<<<<<<<<<<
 *             - self._dt.dt.is_leap_year.values * (quarter > 1)
 *         )
 */
  __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_v_quarter, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_7cytimes_10cydatetime_DAYS_BR_QUARTER_NDARRAY), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":838
 *             self._dt.dt.day_of_year.values
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 *             - self._dt.dt.is_leap_year.values * (quarter > 1)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_is_leap_year); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_quarter, __pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 838, __pyx_L1_error)
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":835
 *         and the dates `<'Series[int]'>`."""
 *         quarter = self._dt.dt.quarter.values
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             self._dt.dt.day_of_year.values
 *             - cydt.DAYS_BR_QUARTER_NDARRAY[quarter - 1]
 */
  __pyx_t_4 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":830
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_of_quarter(self) -> Series[int]:
 *         """Get the number of days between the 1st day of the quarter
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.days_of_quarter.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_quarter);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":841
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def quarter_1st_month(self) -> Series[int]:
 *         """Get the first month of the quarter.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_17quarter_1st_month_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_17quarter_1st_month_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_17quarter_1st_month___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_17quarter_1st_month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":845
 *         """Get the first month of the quarter.
 *         Expect 1, 4, 7, 10 `<'Series[int]'>`."""
 *         return self._arr_to_series(self._dt.dt.quarter.values * 3 - 2)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_quarter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_MultiplyObjC(__pyx_t_1, __pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyInt_SubtractObjC(__pyx_t_2, __pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":841
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def quarter_1st_month(self) -> Series[int]:
 *         """Get the first month of the quarter.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.quarter_1st_month.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":847
 *         return self._arr_to_series(self._dt.dt.quarter.values * 3 - 2)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def quarter_lst_month(self) -> Series[int]:
 *         """Get the last month of the quarter.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_17quarter_lst_month_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_17quarter_lst_month_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_17quarter_lst_month___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_17quarter_lst_month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":851
 *         """Get the last month of the quarter.
 *         Expect 3, 6, 9, 12 `<'Series[int]'>`."""
 *         return self._arr_to_series(self._dt.dt.quarter.values * 3)             # <<<<<<<<<<<<<<
 * 
 *     def is_quarter(self, quarter: int) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_quarter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_MultiplyObjC(__pyx_t_1, __pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":847
 *         return self._arr_to_series(self._dt.dt.quarter.values * 3 - 2)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def quarter_lst_month(self) -> Series[int]:
 *         """Get the last month of the quarter.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.quarter_lst_month.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":853
 *         return self._arr_to_series(self._dt.dt.quarter.values * 3)
 * 
 *     def is_quarter(self, quarter: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'quarter' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_33is_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_32is_quarter, "Whether the dates are in the given 'quarter' `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_33is_quarter = {"is_quarter", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_33is_quarter, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_32is_quarter};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_33is_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_quarter = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_quarter (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_quarter,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_quarter)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 853, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "is_quarter") < 0)) __PYX_ERR(0, 853, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_quarter = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_quarter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 853, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quarter), (&PyInt_Type), 0, "quarter", 1))) __PYX_ERR(0, 853, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_32is_quarter(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_quarter);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_32is_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_quarter) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_quarter", 1);

  /* "cytimes/pddatetime.py":855
 *     def is_quarter(self, quarter: int) -> Series[bool]:
 *         """Whether the dates are in the given 'quarter' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)             # <<<<<<<<<<<<<<
 * 
 *     def is_quarter_1st(self) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_quarter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_v_quarter, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":853
 *         return self._arr_to_series(self._dt.dt.quarter.values * 3)
 * 
 *     def is_quarter(self, quarter: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'quarter' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":857
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)
 * 
 *     def is_quarter_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_start
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_35is_quarter_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_34is_quarter_1st, "Whether the dates are the 1st day of the quarter `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_35is_quarter_1st = {"is_quarter_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_35is_quarter_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_34is_quarter_1st};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_35is_quarter_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_quarter_1st (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_quarter_1st", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_quarter_1st", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_34is_quarter_1st(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_34is_quarter_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_quarter_1st", 1);

  /* "cytimes/pddatetime.py":859
 *     def is_quarter_1st(self) -> Series[bool]:
 *         """Whether the dates are the 1st day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_start             # <<<<<<<<<<<<<<
 * 
 *     def is_quarter_lst(self) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_quarter_start); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":857
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)
 * 
 *     def is_quarter_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_start
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_quarter_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":861
 *         return self._dt.dt.is_quarter_start
 * 
 *     def is_quarter_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_end
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_37is_quarter_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_36is_quarter_lst, "Whether the dates are the last day of the quarter `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_37is_quarter_lst = {"is_quarter_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_37is_quarter_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_36is_quarter_lst};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_37is_quarter_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_quarter_lst (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_quarter_lst", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_quarter_lst", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_36is_quarter_lst(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_36is_quarter_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_quarter_lst", 1);

  /* "cytimes/pddatetime.py":863
 *     def is_quarter_lst(self) -> Series[bool]:
 *         """Whether the dates are the last day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_end             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_quarter_end); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":861
 *         return self._dt.dt.is_quarter_start
 * 
 *     def is_quarter_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_end
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_quarter_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":865
 *         return self._dt.dt.is_quarter_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter_1st(self) -> pddt:
 *         """Go to the 1st day of the quarter `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_39to_quarter_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_quarter_1st", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_quarter_1st); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_39to_quarter_1st)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 865, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 865, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":868
 *     def to_quarter_1st(self) -> pddt:
 *         """Go to the 1st day of the quarter `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":871
 *             dt: Series = (
 *                 self._dt
 *                 + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                 - typeref.OFST_QUARTERBEGIN(1, startingMonth=1)
 *             )
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
      __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_3 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 871, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 871, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":872
 *                 self._dt
 *                 + typeref.OFST_QUARTEREND(0)
 *                 - typeref.OFST_QUARTERBEGIN(1, startingMonth=1)             # <<<<<<<<<<<<<<
 *             )
 *         except Exception as err:
 */
      __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 872, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_startingMonth, __pyx_int_1) < 0) __PYX_ERR(0, 872, __pyx_L3_error)
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN, __pyx_tuple__14, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 872, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 872, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":868
 *     def to_quarter_1st(self) -> pddt:
 *         """Go to the 1st day of the quarter `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":874
 *                 - typeref.OFST_QUARTERBEGIN(1, startingMonth=1)
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 874, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_v_err = __pyx_t_3;
      /*try:*/ {

        /* "cytimes/pddatetime.py":875
 *             )
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 875, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 875, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":874
 *                 - typeref.OFST_QUARTERBEGIN(1, startingMonth=1)
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":868
 *     def to_quarter_1st(self) -> pddt:
 *         """Go to the 1st day of the quarter `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":876
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 876, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":865
 *         return self._dt.dt.is_quarter_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter_1st(self) -> pddt:
 *         """Go to the 1st day of the quarter `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_39to_quarter_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_38to_quarter_1st, "Go to the 1st day of the quarter `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_39to_quarter_1st = {"to_quarter_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_39to_quarter_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_38to_quarter_1st};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_39to_quarter_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_quarter_1st (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_quarter_1st", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_quarter_1st", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_38to_quarter_1st(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_38to_quarter_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_quarter_1st", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter_1st(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":878
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter_lst(self) -> pddt:
 *         """Go to the last day of the quarter `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_41to_quarter_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_quarter_lst", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_quarter_lst); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 878, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_41to_quarter_lst)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 878, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 878, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":881
 *     def to_quarter_lst(self) -> pddt:
 *         """Go to the last day of the quarter `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_QUARTEREND(0)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":882
 *         """Go to the last day of the quarter `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
      __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_3 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 882, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 882, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_dt = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":881
 *     def to_quarter_lst(self) -> pddt:
 *         """Go to the last day of the quarter `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_QUARTEREND(0)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":883
 *         try:
 *             dt: Series = self._dt + typeref.OFST_QUARTEREND(0)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_3) < 0) __PYX_ERR(0, 883, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_v_err = __pyx_t_1;
      /*try:*/ {

        /* "cytimes/pddatetime.py":884
 *             dt: Series = self._dt + typeref.OFST_QUARTEREND(0)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 884, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 884, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":883
 *         try:
 *             dt: Series = self._dt + typeref.OFST_QUARTEREND(0)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":881
 *     def to_quarter_lst(self) -> pddt:
 *         """Go to the last day of the quarter `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_QUARTEREND(0)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":885
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 885, __pyx_L1_error) }
  __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":878
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter_lst(self) -> pddt:
 *         """Go to the last day of the quarter `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_41to_quarter_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_40to_quarter_lst, "Go to the last day of the quarter `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_41to_quarter_lst = {"to_quarter_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_41to_quarter_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_40to_quarter_lst};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_41to_quarter_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_quarter_lst (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_quarter_lst", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_quarter_lst", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_40to_quarter_lst(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_40to_quarter_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_quarter_lst", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter_lst(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":887
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])'
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_43to_curr_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_quarter *__pyx_optional_args) {
  int __pyx_v_month = ((int)-1);
  int __pyx_v_day = ((int)-1);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month __pyx_t_9;
  long __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_t_14;
  char const *__pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  char const *__pyx_t_22;
  char const *__pyx_t_23;
  char const *__pyx_t_24;
  char const *__pyx_t_25;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_curr_quarter", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_month = __pyx_optional_args->month;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_day = __pyx_optional_args->day;
      }
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_curr_quarter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_43to_curr_quarter)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 887, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 887, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 2+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 887, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 887, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":892
 *         and 'day' of the current quarter `<'pddt'>`."""
 *         # Invalid 'month' value
 *         if month < 1:             # <<<<<<<<<<<<<<
 *             return self.to_curr_month(day)  # exit
 *         month = month % 3 or 3
 */
  __pyx_t_8 = (__pyx_v_month < 1);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":893
 *         # Invalid 'month' value
 *         if month < 1:
 *             return self.to_curr_month(day)  # exit             # <<<<<<<<<<<<<<
 *         month = month % 3 or 3
 *         # Invalid 'day' value
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_9.__pyx_n = 1;
    __pyx_t_9.day = __pyx_v_day;
    __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_curr_month(__pyx_v_self, 0, &__pyx_t_9)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 893, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":892
 *         and 'day' of the current quarter `<'pddt'>`."""
 *         # Invalid 'month' value
 *         if month < 1:             # <<<<<<<<<<<<<<
 *             return self.to_curr_month(day)  # exit
 *         month = month % 3 or 3
 */
  }

  /* "cytimes/pddatetime.py":894
 *         if month < 1:
 *             return self.to_curr_month(day)  # exit
 *         month = month % 3 or 3             # <<<<<<<<<<<<<<
 *         # Invalid 'day' value
 *         if day < 1:
 */
  __pyx_t_10 = __Pyx_mod_long(__pyx_v_month, 3);
  if (!__pyx_t_10) {
  } else {
    __pyx_t_7 = __pyx_t_10;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_7 = 3;
  __pyx_L4_bool_binop_done:;
  __pyx_v_month = __pyx_t_7;

  /* "cytimes/pddatetime.py":896
 *         month = month % 3 or 3
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day < 1);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":897
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      /*try:*/ {

        /* "cytimes/pddatetime.py":900
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_5 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 900, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 900, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":901
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 901, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_startingMonth, __pyx_t_5) < 0) __PYX_ERR(0, 901, __pyx_L7_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN, __pyx_tuple__14, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 901, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":904
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values) - 1,             # <<<<<<<<<<<<<<
 *                     "D",
 *                 )
 */
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 904, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 904, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 904, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 904, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 904, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_values); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 904, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_4 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_3 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_2};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 2+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 904, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = __Pyx_PyInt_SubtractObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 904, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":903
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values) - 1,
 *                     "D",
 */
        __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_4, __pyx_n_u_D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 903, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 903, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":897
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      goto __pyx_L12_try_end;
      __pyx_L7_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":907
 *                     "D",
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 907, __pyx_L9_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_err = __pyx_t_1;
        /*try:*/ {

          /* "cytimes/pddatetime.py":908
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # First day of the month
 *         elif day == 1:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 908, __pyx_L18_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 908, __pyx_L18_error)
        }

        /* "cytimes/pddatetime.py":907
 *                     "D",
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L19;
          }
          __pyx_L18_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __pyx_t_7 = __pyx_lineno; __pyx_t_14 = __pyx_clineno; __pyx_t_15 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_XGIVEREF(__pyx_t_21);
              __Pyx_ExceptionReset(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            }
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_16, __pyx_t_17, __pyx_t_18);
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_14; __pyx_filename = __pyx_t_15;
            goto __pyx_L9_except_error;
          }
          __pyx_L19:;
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L8_exception_handled;
      }
      goto __pyx_L9_except_error;

      /* "cytimes/pddatetime.py":897
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L9_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      goto __pyx_L1_error;
      __pyx_L8_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_L12_try_end:;
    }

    /* "cytimes/pddatetime.py":896
 *         month = month % 3 or 3
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L6;
  }

  /* "cytimes/pddatetime.py":910
 *                 self._raise_error(err)
 *         # First day of the month
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day == 1);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":911
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_13, &__pyx_t_12, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":914
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_4 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 914, __pyx_L24_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":915
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 915, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 915, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_startingMonth, __pyx_t_4) < 0) __PYX_ERR(0, 915, __pyx_L24_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN, __pyx_tuple__14, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 915, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 915, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_dt = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":911
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L29_try_end;
      __pyx_L24_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":917
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28
 */
      __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_14) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_1) < 0) __PYX_ERR(0, 917, __pyx_L26_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v_err = __pyx_t_4;
        /*try:*/ {

          /* "cytimes/pddatetime.py":918
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 28
 *         elif day < 29:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 918, __pyx_L35_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 918, __pyx_L35_error)
        }

        /* "cytimes/pddatetime.py":917
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L36;
          }
          __pyx_L35_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_17, &__pyx_t_16);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __pyx_t_14 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_22 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_17, __pyx_t_16);
            }
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ErrRestore(__pyx_t_21, __pyx_t_20, __pyx_t_19);
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_22;
            goto __pyx_L26_except_error;
          }
          __pyx_L36:;
        }
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L25_exception_handled;
      }
      goto __pyx_L26_except_error;

      /* "cytimes/pddatetime.py":911
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L26_except_error:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L25_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      __pyx_L29_try_end:;
    }

    /* "cytimes/pddatetime.py":910
 *                 self._raise_error(err)
 *         # First day of the month
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L6;
  }

  /* "cytimes/pddatetime.py":920
 *                 self._raise_error(err)
 *         # Days before 28
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day < 29);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":921
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      /*try:*/ {

        /* "cytimes/pddatetime.py":924
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                     + typeref.OFST_DAY(day - 1)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_2 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_2)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_2);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_int_0};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 924, __pyx_L41_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 924, __pyx_L41_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":925
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L41_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 925, __pyx_L41_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_startingMonth, __pyx_t_2) < 0) __PYX_ERR(0, 925, __pyx_L41_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN, __pyx_tuple__14, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 925, __pyx_L41_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Subtract(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L41_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":926
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                     + typeref.OFST_DAY(day - 1)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_4 = __Pyx_PyInt_From_long((__pyx_v_day - 1)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 926, __pyx_L41_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_DAY);
        __pyx_t_5 = __pyx_v_7cytimes_7typeref_OFST_DAY; __pyx_t_3 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 926, __pyx_L41_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 926, __pyx_L41_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_5;
        __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":921
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      goto __pyx_L46_try_end;
      __pyx_L41_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":928
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 928, __pyx_L43_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_v_err = __pyx_t_2;
        /*try:*/ {

          /* "cytimes/pddatetime.py":929
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 31
 *         elif day < 31:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 929, __pyx_L52_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 929, __pyx_L52_error)
        }

        /* "cytimes/pddatetime.py":928
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L53;
          }
          __pyx_L52_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __pyx_t_7 = __pyx_lineno; __pyx_t_14 = __pyx_clineno; __pyx_t_23 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_XGIVEREF(__pyx_t_21);
              __Pyx_ExceptionReset(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            }
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_16, __pyx_t_17, __pyx_t_18);
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_14; __pyx_filename = __pyx_t_23;
            goto __pyx_L43_except_error;
          }
          __pyx_L53:;
        }
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L42_exception_handled;
      }
      goto __pyx_L43_except_error;

      /* "cytimes/pddatetime.py":921
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L43_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      goto __pyx_L1_error;
      __pyx_L42_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_L46_try_end:;
    }

    /* "cytimes/pddatetime.py":920
 *                 self._raise_error(err)
 *         # Days before 28
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L6;
  }

  /* "cytimes/pddatetime.py":931
 *                 self._raise_error(err)
 *         # Days before 31
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day < 31);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":932
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_13, &__pyx_t_12, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":935
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_5 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 935, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 935, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":936
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 936, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 936, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_startingMonth, __pyx_t_5) < 0) __PYX_ERR(0, 936, __pyx_L58_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN, __pyx_tuple__14, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 936, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 936, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":939
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 939, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 939, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 939, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 939, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_4 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_3 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_2};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 939, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = __Pyx_PyInt_SubtractObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 939, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":938
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 */
        __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_4, __pyx_n_u_D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 938, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 938, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":932
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L63_try_end;
      __pyx_L58_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":941
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month
 */
      __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_14) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 941, __pyx_L60_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_err = __pyx_t_1;
        /*try:*/ {

          /* "cytimes/pddatetime.py":942
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Last day of the month
 *         else:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 942, __pyx_L69_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 942, __pyx_L69_error)
        }

        /* "cytimes/pddatetime.py":941
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L70;
          }
          __pyx_L69_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_17, &__pyx_t_16);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __pyx_t_14 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_24 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_17, __pyx_t_16);
            }
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ErrRestore(__pyx_t_21, __pyx_t_20, __pyx_t_19);
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_24;
            goto __pyx_L60_except_error;
          }
          __pyx_L70:;
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L59_exception_handled;
      }
      goto __pyx_L60_except_error;

      /* "cytimes/pddatetime.py":932
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L60_except_error:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L59_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      __pyx_L63_try_end:;
    }

    /* "cytimes/pddatetime.py":931
 *                 self._raise_error(err)
 *         # Days before 31
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L6;
  }

  /* "cytimes/pddatetime.py":945
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
  /*else*/ {
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      /*try:*/ {

        /* "cytimes/pddatetime.py":948
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                     + typeref.OFST_MONTHEND(0)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_4 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 948, __pyx_L75_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 948, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":949
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 949, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 949, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_startingMonth, __pyx_t_4) < 0) __PYX_ERR(0, 949, __pyx_L75_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN, __pyx_tuple__14, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 949, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 949, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":950
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_5 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 950, __pyx_L75_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 950, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":945
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      goto __pyx_L80_try_end;
      __pyx_L75_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":952
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_4, &__pyx_t_2) < 0) __PYX_ERR(0, 952, __pyx_L77_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v_err = __pyx_t_4;
        /*try:*/ {

          /* "cytimes/pddatetime.py":953
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 953, __pyx_L86_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 953, __pyx_L86_error)
        }

        /* "cytimes/pddatetime.py":952
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L87;
          }
          __pyx_L86_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __pyx_t_7 = __pyx_lineno; __pyx_t_14 = __pyx_clineno; __pyx_t_25 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_XGIVEREF(__pyx_t_21);
              __Pyx_ExceptionReset(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            }
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_16, __pyx_t_17, __pyx_t_18);
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_14; __pyx_filename = __pyx_t_25;
            goto __pyx_L77_except_error;
          }
          __pyx_L87:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L76_exception_handled;
      }
      goto __pyx_L77_except_error;

      /* "cytimes/pddatetime.py":945
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L77_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      goto __pyx_L1_error;
      __pyx_L76_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_L80_try_end:;
    }
  }
  __pyx_L6:;

  /* "cytimes/pddatetime.py":955
 *                 self._raise_error(err)
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 955, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 955, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":887
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_43to_curr_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_42to_curr_quarter, "Go to specific 'month (of the quarter [1..3])'\n        and 'day' of the current quarter `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_43to_curr_quarter = {"to_curr_quarter", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_43to_curr_quarter, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_42to_curr_quarter};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_43to_curr_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_month;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_curr_quarter (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_month,&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 887, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 887, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_curr_quarter") < 0)) __PYX_ERR(0, 887, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_month = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_month == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 888, __pyx_L3_error)
    } else {
      __pyx_v_month = ((int)-1);
    }
    if (values[1]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 888, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_curr_quarter", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 887, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_42to_curr_quarter(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_month, __pyx_v_day);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_42to_curr_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_month, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_quarter __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_curr_quarter", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.month = __pyx_v_month;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_curr_quarter(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":957
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])' and
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_45to_prev_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_quarter *__pyx_optional_args) {
  int __pyx_v_month = ((int)-1);
  int __pyx_v_day = ((int)-1);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_prev_quarter", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_month = __pyx_optional_args->month;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_day = __pyx_optional_args->day;
      }
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_prev_quarter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 957, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_45to_prev_quarter)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 957, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 957, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 2+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 957, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 957, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":961
 *         """Go to specific 'month (of the quarter [1..3])' and
 *         'day' of the previous quarter `<'pddt'>`."""
 *         return self.to_quarter(-1, month, day)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_8.__pyx_n = 3;
  __pyx_t_8.offset = -1;
  __pyx_t_8.month = __pyx_v_month;
  __pyx_t_8.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_quarter(__pyx_v_self, 0, &__pyx_t_8)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":957
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])' and
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_45to_prev_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_44to_prev_quarter, "Go to specific 'month (of the quarter [1..3])' and\n        'day' of the previous quarter `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_45to_prev_quarter = {"to_prev_quarter", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_45to_prev_quarter, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_44to_prev_quarter};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_45to_prev_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_month;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_prev_quarter (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_month,&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 957, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 957, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_prev_quarter") < 0)) __PYX_ERR(0, 957, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_month = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_month == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 958, __pyx_L3_error)
    } else {
      __pyx_v_month = ((int)-1);
    }
    if (values[1]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 958, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_prev_quarter", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 957, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_44to_prev_quarter(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_month, __pyx_v_day);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_44to_prev_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_month, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_quarter __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_prev_quarter", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.month = __pyx_v_month;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_prev_quarter(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":963
 *         return self.to_quarter(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])' and
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_47to_next_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_next_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_quarter *__pyx_optional_args) {
  int __pyx_v_month = ((int)-1);
  int __pyx_v_day = ((int)-1);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_next_quarter", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_month = __pyx_optional_args->month;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_day = __pyx_optional_args->day;
      }
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_next_quarter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 963, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_47to_next_quarter)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 963, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 963, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 2+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 963, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 963, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":967
 *         """Go to specific 'month (of the quarter [1..3])' and
 *         'day' of the next quarter `<'pddt'>`."""
 *         return self.to_quarter(1, month, day)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_8.__pyx_n = 3;
  __pyx_t_8.offset = 1;
  __pyx_t_8.month = __pyx_v_month;
  __pyx_t_8.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_quarter(__pyx_v_self, 0, &__pyx_t_8)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":963
 *         return self.to_quarter(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])' and
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_47to_next_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_46to_next_quarter, "Go to specific 'month (of the quarter [1..3])' and\n        'day' of the next quarter `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_47to_next_quarter = {"to_next_quarter", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_47to_next_quarter, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_46to_next_quarter};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_47to_next_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_month;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_next_quarter (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_month,&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 963, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 963, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_next_quarter") < 0)) __PYX_ERR(0, 963, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_month = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_month == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 964, __pyx_L3_error)
    } else {
      __pyx_v_month = ((int)-1);
    }
    if (values[1]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 964, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_next_quarter", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 963, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_46to_next_quarter(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_month, __pyx_v_day);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_46to_next_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_month, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_quarter __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_next_quarter", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.month = __pyx_v_month;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_next_quarter(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":969
 *         return self.to_quarter(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_49to_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter *__pyx_optional_args) {
  int __pyx_v_offset = ((int)0);
  int __pyx_v_month = ((int)-1);
  int __pyx_v_day = ((int)-1);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_t_9;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_quarter __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_t_14;
  char const *__pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month __pyx_t_22;
  long __pyx_t_23;
  char const *__pyx_t_24;
  char const *__pyx_t_25;
  char const *__pyx_t_26;
  char const *__pyx_t_27;
  char const *__pyx_t_28;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_quarter", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_offset = __pyx_optional_args->offset;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_month = __pyx_optional_args->month;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_day = __pyx_optional_args->day;
        }
      }
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_quarter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 969, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_49to_quarter)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 969, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 969, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 969, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_6 = __pyx_t_1; __pyx_t_7 = NULL;
        __pyx_t_8 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_6))) {
          __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
          if (likely(__pyx_t_7)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
            __Pyx_INCREF(__pyx_t_7);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_6, function);
            __pyx_t_8 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_7, __pyx_t_3, __pyx_t_4, __pyx_t_5};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 3+__pyx_t_8);
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 969, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 969, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":979
 *         'day' of the current quarter (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self.to_curr_quarter(month, day)  # exit
 *         # Invalid 'month' value
 */
  __pyx_t_9 = (__pyx_v_offset == 0);
  if (__pyx_t_9) {

    /* "cytimes/pddatetime.py":980
 *         # No 'offset' adjustment
 *         if offset == 0:
 *             return self.to_curr_quarter(month, day)  # exit             # <<<<<<<<<<<<<<
 *         # Invalid 'month' value
 *         if month < 1:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_10.__pyx_n = 2;
    __pyx_t_10.month = __pyx_v_month;
    __pyx_t_10.day = __pyx_v_day;
    __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_curr_quarter(__pyx_v_self, 0, &__pyx_t_10)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 980, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":979
 *         'day' of the current quarter (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self.to_curr_quarter(month, day)  # exit
 *         # Invalid 'month' value
 */
  }

  /* "cytimes/pddatetime.py":982
 *             return self.to_curr_quarter(month, day)  # exit
 *         # Invalid 'month' value
 *         if month < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)
 */
  __pyx_t_9 = (__pyx_v_month < 1);
  if (__pyx_t_9) {

    /* "cytimes/pddatetime.py":983
 *         # Invalid 'month' value
 *         if month < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)
 *             except Exception as err:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      /*try:*/ {

        /* "cytimes/pddatetime.py":984
 *         if month < 1:
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)             # <<<<<<<<<<<<<<
 *             except Exception as err:
 *                 self._raise_error(err)
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 984, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PyInt_From_long((__pyx_v_offset * 3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 984, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_months, __pyx_t_2) < 0) __PYX_ERR(0, 984, __pyx_L5_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 984, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 984, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":983
 *         # Invalid 'month' value
 *         if month < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)
 *             except Exception as err:
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      goto __pyx_L10_try_end;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":985
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 */
      __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_8) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 985, __pyx_L7_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_v_err = __pyx_t_2;
        /*try:*/ {

          /* "cytimes/pddatetime.py":986
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 *         month = month % 3 or 3
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 986, __pyx_L16_error)
          __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 986, __pyx_L16_error)
        }

        /* "cytimes/pddatetime.py":985
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L17;
          }
          __pyx_L16_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __pyx_t_8 = __pyx_lineno; __pyx_t_14 = __pyx_clineno; __pyx_t_15 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_XGIVEREF(__pyx_t_21);
              __Pyx_ExceptionReset(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            }
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_16, __pyx_t_17, __pyx_t_18);
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_14; __pyx_filename = __pyx_t_15;
            goto __pyx_L7_except_error;
          }
          __pyx_L17:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L6_exception_handled;
      }
      goto __pyx_L7_except_error;

      /* "cytimes/pddatetime.py":983
 *         # Invalid 'month' value
 *         if month < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)
 *             except Exception as err:
 */
      __pyx_L7_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      goto __pyx_L1_error;
      __pyx_L6_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_L10_try_end:;
    }

    /* "cytimes/pddatetime.py":987
 *             except Exception as err:
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit             # <<<<<<<<<<<<<<
 *         month = month % 3 or 3
 *         # Invalid 'day' value
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 987, __pyx_L1_error) }
    __pyx_t_6 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_22.__pyx_n = 1;
    __pyx_t_22.day = __pyx_v_day;
    __pyx_t_2 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_6)->__pyx_vtab)->to_curr_month(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_6), 0, &__pyx_t_22)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":982
 *             return self.to_curr_quarter(month, day)  # exit
 *         # Invalid 'month' value
 *         if month < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset * 3)
 */
  }

  /* "cytimes/pddatetime.py":988
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False).to_curr_month(day)  # exit
 *         month = month % 3 or 3             # <<<<<<<<<<<<<<
 *         # Invalid 'day' value
 *         if day < 1:
 */
  __pyx_t_23 = __Pyx_mod_long(__pyx_v_month, 3);
  if (!__pyx_t_23) {
  } else {
    __pyx_t_14 = __pyx_t_23;
    goto __pyx_L22_bool_binop_done;
  }
  __pyx_t_14 = 3;
  __pyx_L22_bool_binop_done:;
  __pyx_v_month = __pyx_t_14;

  /* "cytimes/pddatetime.py":990
 *         month = month % 3 or 3
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_9 = (__pyx_v_day < 1);
  if (__pyx_t_9) {

    /* "cytimes/pddatetime.py":991
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_13, &__pyx_t_12, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":994
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_6 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_1 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_6))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
          if (likely(__pyx_t_1)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_6, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 994, __pyx_L25_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __pyx_t_6 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 994, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":995
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 995, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyInt_From_long((((__pyx_v_offset * 3) + __pyx_v_month) - 3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 995, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_months, __pyx_t_1) < 0) __PYX_ERR(0, 995, __pyx_L25_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 995, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Add(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 995, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_v_dt = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":998
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values)             # <<<<<<<<<<<<<<
 *                     - dt.dt.day.values,
 *                     "D",
 */
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 998, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 998, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 998, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 998, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_day); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 998, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 998, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_5 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_4 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_t_1, __pyx_t_6};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 998, __pyx_L25_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }

        /* "cytimes/pddatetime.py":999
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values)
 *                     - dt.dt.day.values,             # <<<<<<<<<<<<<<
 *                     "D",
 *                 )
 */
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 999, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_day); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 999, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 999, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_Subtract(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 999, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":997
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, self._dt.dt.day.values)
 *                     - dt.dt.day.values,
 */
        __pyx_t_5 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_6, __pyx_n_u_D); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 997, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 997, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_6);
        __pyx_t_6 = 0;

        /* "cytimes/pddatetime.py":991
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L30_try_end;
      __pyx_L25_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":1002
 *                     "D",
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month
 */
      __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_14) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_2) < 0) __PYX_ERR(0, 1002, __pyx_L27_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_v_err = __pyx_t_5;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1003
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # First day of the month
 *         elif day == 1:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1003, __pyx_L36_error)
          __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1003, __pyx_L36_error)
        }

        /* "cytimes/pddatetime.py":1002
 *                     "D",
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L37;
          }
          __pyx_L36_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_17, &__pyx_t_16);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __pyx_t_14 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_24 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_17, __pyx_t_16);
            }
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ErrRestore(__pyx_t_21, __pyx_t_20, __pyx_t_19);
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_8; __pyx_filename = __pyx_t_24;
            goto __pyx_L27_except_error;
          }
          __pyx_L37:;
        }
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L26_exception_handled;
      }
      goto __pyx_L27_except_error;

      /* "cytimes/pddatetime.py":991
 *         # Invalid 'day' value
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L27_except_error:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L26_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      __pyx_L30_try_end:;
    }

    /* "cytimes/pddatetime.py":990
 *         month = month % 3 or 3
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L24;
  }

  /* "cytimes/pddatetime.py":1005
 *                 self._raise_error(err)
 *         # First day of the month
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_9 = (__pyx_v_day == 1);
  if (__pyx_t_9) {

    /* "cytimes/pddatetime.py":1006
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1009
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_5 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_6 = NULL;
        __pyx_t_8 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_8 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1009, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        __pyx_t_5 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1009, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":1010
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3)
 *                 )
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1010, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1010, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_startingMonth, __pyx_t_6) < 0) __PYX_ERR(0, 1010, __pyx_L42_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN, __pyx_tuple__14, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1010, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Subtract(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1010, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cytimes/pddatetime.py":1011
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1011, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyInt_From_long((__pyx_v_offset * 3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1011, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_months, __pyx_t_5) < 0) __PYX_ERR(0, 1011, __pyx_L42_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1011, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_Add(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1011, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_dt = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "cytimes/pddatetime.py":1006
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      goto __pyx_L47_try_end;
      __pyx_L42_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":1013
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28
 */
      __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_8) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_2) < 0) __PYX_ERR(0, 1013, __pyx_L44_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_v_err = __pyx_t_5;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1014
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 28
 *         elif day < 29:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1014, __pyx_L53_error)
          __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1014, __pyx_L53_error)
        }

        /* "cytimes/pddatetime.py":1013
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L54;
          }
          __pyx_L53_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __pyx_t_8 = __pyx_lineno; __pyx_t_14 = __pyx_clineno; __pyx_t_25 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_XGIVEREF(__pyx_t_21);
              __Pyx_ExceptionReset(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            }
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_16, __pyx_t_17, __pyx_t_18);
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_14; __pyx_filename = __pyx_t_25;
            goto __pyx_L44_except_error;
          }
          __pyx_L54:;
        }
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L43_exception_handled;
      }
      goto __pyx_L44_except_error;

      /* "cytimes/pddatetime.py":1006
 *         # First day of the month
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L44_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      goto __pyx_L1_error;
      __pyx_L43_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_L47_try_end:;
    }

    /* "cytimes/pddatetime.py":1005
 *                 self._raise_error(err)
 *         # First day of the month
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L24;
  }

  /* "cytimes/pddatetime.py":1016
 *                 self._raise_error(err)
 *         # Days before 28
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_9 = (__pyx_v_day < 29);
  if (__pyx_t_9) {

    /* "cytimes/pddatetime.py":1017
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_13, &__pyx_t_12, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1020
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3, days=day - 1)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_5 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_6 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1020, __pyx_L59_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        __pyx_t_5 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1020, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":1021
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3, days=day - 1)
 *                 )
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1021, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_month); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1021, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_startingMonth, __pyx_t_6) < 0) __PYX_ERR(0, 1021, __pyx_L59_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_QUARTERBEGIN, __pyx_tuple__14, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1021, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Subtract(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1021, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cytimes/pddatetime.py":1022
 *                     + typeref.OFST_QUARTEREND(0)
 *                     - typeref.OFST_QUARTERBEGIN(1, startingMonth=month)
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3, days=day - 1)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1022, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyInt_From_long((__pyx_v_offset * 3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1022, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_months, __pyx_t_5) < 0) __PYX_ERR(0, 1022, __pyx_L59_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyInt_From_long((__pyx_v_day - 1)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1022, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_days, __pyx_t_5) < 0) __PYX_ERR(0, 1022, __pyx_L59_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1022, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_Add(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1022, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_dt = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "cytimes/pddatetime.py":1017
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L64_try_end;
      __pyx_L59_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":1024
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3, days=day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31
 */
      __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_14) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_2) < 0) __PYX_ERR(0, 1024, __pyx_L61_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_v_err = __pyx_t_5;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1025
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 31
 *         elif day < 31:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1025, __pyx_L70_error)
          __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1025, __pyx_L70_error)
        }

        /* "cytimes/pddatetime.py":1024
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3, days=day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L71;
          }
          __pyx_L70_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_17, &__pyx_t_16);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __pyx_t_14 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_26 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_17, __pyx_t_16);
            }
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ErrRestore(__pyx_t_21, __pyx_t_20, __pyx_t_19);
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_8; __pyx_filename = __pyx_t_26;
            goto __pyx_L61_except_error;
          }
          __pyx_L71:;
        }
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L60_exception_handled;
      }
      goto __pyx_L61_except_error;

      /* "cytimes/pddatetime.py":1017
 *         # Days before 28
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L61_except_error:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L60_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      __pyx_L64_try_end:;
    }

    /* "cytimes/pddatetime.py":1016
 *                 self._raise_error(err)
 *         # Days before 28
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L24;
  }

  /* "cytimes/pddatetime.py":1027
 *                 self._raise_error(err)
 *         # Days before 31
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_9 = (__pyx_v_day < 31);
  if (__pyx_t_9) {

    /* "cytimes/pddatetime.py":1028
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1031
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_5 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_6 = NULL;
        __pyx_t_8 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_8 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1031, __pyx_L76_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        __pyx_t_5 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1031, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":1032
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1032, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyInt_From_long((((__pyx_v_offset * 3) + __pyx_v_month) - 3)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1032, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_months, __pyx_t_6) < 0) __PYX_ERR(0, 1032, __pyx_L76_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1032, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Add(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1032, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_dt = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":1035
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - dt.dt.day.values, "D"             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1035, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1035, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1035, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1035, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_1 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_4 = NULL;
        __pyx_t_8 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_8 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_t_6, __pyx_t_5};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_8, 2+__pyx_t_8);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1035, __pyx_L76_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1035, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_day); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1035, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1035, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1035, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":1034
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - dt.dt.day.values, "D"
 *                 )
 */
        __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_5, __pyx_n_u_D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1034, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1034, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_5);
        __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1028
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      goto __pyx_L81_try_end;
      __pyx_L76_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":1037
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - dt.dt.day.values, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month
 */
      __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_8) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 1037, __pyx_L78_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_err = __pyx_t_1;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1038
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Last day of the month
 *         else:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1038, __pyx_L87_error)
          __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1038, __pyx_L87_error)
        }

        /* "cytimes/pddatetime.py":1037
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - dt.dt.day.values, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L88;
          }
          __pyx_L87_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __pyx_t_8 = __pyx_lineno; __pyx_t_14 = __pyx_clineno; __pyx_t_27 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_XGIVEREF(__pyx_t_21);
              __Pyx_ExceptionReset(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            }
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_16, __pyx_t_17, __pyx_t_18);
            __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0;
            __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_14; __pyx_filename = __pyx_t_27;
            goto __pyx_L78_except_error;
          }
          __pyx_L88:;
        }
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L77_exception_handled;
      }
      goto __pyx_L78_except_error;

      /* "cytimes/pddatetime.py":1028
 *         # Days before 31
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L78_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      goto __pyx_L1_error;
      __pyx_L77_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_L81_try_end:;
    }

    /* "cytimes/pddatetime.py":1027
 *                 self._raise_error(err)
 *         # Days before 31
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L24;
  }

  /* "cytimes/pddatetime.py":1041
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
  /*else*/ {
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_13, &__pyx_t_12, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1044
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)
 *                     + typeref.OFST_MONTHEND(0)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_QUARTEREND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_QUARTEREND; __pyx_t_5 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1044, __pyx_L93_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1044, __pyx_L93_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":1045
 *                     self._dt
 *                     + typeref.OFST_QUARTEREND(0)
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 */
        __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1045, __pyx_L93_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = __Pyx_PyInt_From_long((((__pyx_v_offset * 3) + __pyx_v_month) - 3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1045, __pyx_L93_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_months, __pyx_t_5) < 0) __PYX_ERR(0, 1045, __pyx_L93_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1045, __pyx_L93_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1045, __pyx_L93_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1046
 *                     + typeref.OFST_QUARTEREND(0)
 *                     + typeref.OFST_DATEOFFSET(months=offset * 3 + month - 3)
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_6 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_int_0};
          __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1046, __pyx_L93_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1046, __pyx_L93_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":1041
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L98_try_end;
      __pyx_L93_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":1048
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
      __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_14) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_5, &__pyx_t_2) < 0) __PYX_ERR(0, 1048, __pyx_L95_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_v_err = __pyx_t_5;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1049
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1049, __pyx_L104_error)
          __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1049, __pyx_L104_error)
        }

        /* "cytimes/pddatetime.py":1048
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L105;
          }
          __pyx_L104_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_17, &__pyx_t_16);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __pyx_t_14 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_28 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_17, __pyx_t_16);
            }
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ErrRestore(__pyx_t_21, __pyx_t_20, __pyx_t_19);
            __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0;
            __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_8; __pyx_filename = __pyx_t_28;
            goto __pyx_L95_except_error;
          }
          __pyx_L105:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L94_exception_handled;
      }
      goto __pyx_L95_except_error;

      /* "cytimes/pddatetime.py":1041
 *         # Last day of the month
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L95_except_error:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L94_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_12, __pyx_t_11);
      __pyx_L98_try_end:;
    }
  }
  __pyx_L24:;

  /* "cytimes/pddatetime.py":1051
 *                 self._raise_error(err)
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 * 
 *     # Month -----------------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1051, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":969
 *         return self.to_quarter(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_49to_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_48to_quarter, "Go to specific 'month (of the quarter [1..3])' and\n        'day' of the current quarter (+/-) 'offset' `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_49to_quarter = {"to_quarter", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_49to_quarter, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_48to_quarter};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_49to_quarter(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_offset;
  int __pyx_v_month;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_quarter (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,&__pyx_n_s_month,&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_offset);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 969, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 969, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 969, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_quarter") < 0)) __PYX_ERR(0, 969, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_offset = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_offset == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 972, __pyx_L3_error)
    } else {
      __pyx_v_offset = ((int)0);
    }
    if (values[1]) {
      __pyx_v_month = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_month == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 973, __pyx_L3_error)
    } else {
      __pyx_v_month = ((int)-1);
    }
    if (values[2]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 974, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_quarter", 0, 0, 3, __pyx_nargs); __PYX_ERR(0, 969, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_48to_quarter(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_offset, __pyx_v_month, __pyx_v_day);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_48to_quarter(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, int __pyx_v_month, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_quarter", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 3;
  __pyx_t_2.offset = __pyx_v_offset;
  __pyx_t_2.month = __pyx_v_month;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_quarter(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_quarter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1054
 * 
 *     # Month -----------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def days_in_month(self) -> Series[int]:
 *         """Get the maximum number of days in the month `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_13days_in_month_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_13days_in_month_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_13days_in_month___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_13days_in_month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":1057
 *     def days_in_month(self) -> Series[int]:
 *         """Get the maximum number of days in the month `<'Series[int]'>`."""
 *         return self._dt.dt.days_in_month             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1054
 * 
 *     # Month -----------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def days_in_month(self) -> Series[int]:
 *         """Get the maximum number of days in the month `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.days_in_month.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1059
 *         return self._dt.dt.days_in_month
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_bf_month(self) -> Series[int]:
 *         """Get the number of days between the 1st day of
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_13days_bf_month_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_13days_bf_month_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_13days_bf_month___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_13days_bf_month___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":1063
 *         """Get the number of days between the 1st day of
 *         the year and the 1st day of the month `<'Series[int]'>`."""
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             self._dt.dt.day_of_year.values - self._dt.dt.day.values
 *         )
 */
  __Pyx_XDECREF(__pyx_r);

  /* "cytimes/pddatetime.py":1064
 *         the year and the 1st day of the month `<'Series[int]'>`."""
 *         return self._arr_to_series(
 *             self._dt.dt.day_of_year.values - self._dt.dt.day.values             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_day_of_year); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_day); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_values); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":1063
 *         """Get the number of days between the 1st day of
 *         the year and the 1st day of the month `<'Series[int]'>`."""
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             self._dt.dt.day_of_year.values - self._dt.dt.day.values
 *         )
 */
  __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1059
 *         return self._dt.dt.days_in_month
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def days_bf_month(self) -> Series[int]:
 *         """Get the number of days between the 1st day of
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.days_bf_month.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1067
 *         )
 * 
 *     def is_month(self, month: int | str) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'month' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_51is_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_50is_month, "Whether the dates are in the given 'month' `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_51is_month = {"is_month", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_51is_month, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_50is_month};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_51is_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_month = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_month (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_month,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1067, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "is_month") < 0)) __PYX_ERR(0, 1067, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_month = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_month", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1067, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_50is_month(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_month);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_50is_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_month", 1);

  /* "cytimes/pddatetime.py":1069
 *     def is_month(self, month: int | str) -> Series[bool]:
 *         """Whether the dates are in the given 'month' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))             # <<<<<<<<<<<<<<
 * 
 *     def is_month_1st(self) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_month(__pyx_v_self, __pyx_v_month); if (unlikely(__pyx_t_3 == ((int)-2))) __PYX_ERR(0, 1069, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1067
 *         )
 * 
 *     def is_month(self, month: int | str) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'month' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1071
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))
 * 
 *     def is_month_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_start
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_53is_month_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_52is_month_1st, "Whether the dates are the 1st day of the month `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_53is_month_1st = {"is_month_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_53is_month_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_52is_month_1st};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_53is_month_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_month_1st (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_month_1st", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_month_1st", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_52is_month_1st(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_52is_month_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_month_1st", 1);

  /* "cytimes/pddatetime.py":1073
 *     def is_month_1st(self) -> Series[bool]:
 *         """Whether the dates are the 1st day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_start             # <<<<<<<<<<<<<<
 * 
 *     def is_month_lst(self) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_month_start); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1071
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))
 * 
 *     def is_month_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_start
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_month_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1075
 *         return self._dt.dt.is_month_start
 * 
 *     def is_month_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_end
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_55is_month_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_54is_month_lst, "Whether the dates are the last day of the month `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_55is_month_lst = {"is_month_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_55is_month_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_54is_month_lst};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_55is_month_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_month_lst (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_month_lst", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_month_lst", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_54is_month_lst(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_54is_month_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_month_lst", 1);

  /* "cytimes/pddatetime.py":1077
 *     def is_month_lst(self) -> Series[bool]:
 *         """Whether the dates are the last day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_end             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_month_end); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1075
 *         return self._dt.dt.is_month_start
 * 
 *     def is_month_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_end
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_month_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1079
 *         return self._dt.dt.is_month_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month_1st(self) -> pddt:
 *         """Go to the 1st day of the month `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_57to_month_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_month_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_month_1st", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_month_1st); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1079, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_57to_month_1st)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1079, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1079, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1082
 *     def to_month_1st(self) -> pddt:
 *         """Go to the 1st day of the month `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1084
 *         try:
 *             dt: Series = (
 *                 self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)             # <<<<<<<<<<<<<<
 *             )
 *         except Exception as err:
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
      __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_3 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1084, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN);
      __pyx_t_3 = __pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN; __pyx_t_4 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_1};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __pyx_t_3 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1084, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_dt = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "cytimes/pddatetime.py":1082
 *     def to_month_1st(self) -> pddt:
 *         """Go to the 1st day of the month `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1086
 *                 self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 1086, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_v_err = __pyx_t_1;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1087
 *             )
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1087, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1087, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1086
 *                 self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1082
 *     def to_month_1st(self) -> pddt:
 *         """Go to the 1st day of the month `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = (
 *                 self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1088
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1088, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1079
 *         return self._dt.dt.is_month_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month_1st(self) -> pddt:
 *         """Go to the 1st day of the month `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_57to_month_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_56to_month_1st, "Go to the 1st day of the month `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_57to_month_1st = {"to_month_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_57to_month_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_56to_month_1st};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_57to_month_1st(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_month_1st (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_month_1st", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_month_1st", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_56to_month_1st(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_56to_month_1st(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_month_1st", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_month_1st(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month_1st", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1090
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month_lst(self) -> pddt:
 *         """Go to the last day of the month `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_59to_month_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_month_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_month_lst", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_month_lst); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1090, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_59to_month_lst)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1090, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1090, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1093
 *     def to_month_lst(self) -> pddt:
 *         """Go to the last day of the month `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_MONTHEND(0)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1094
 *         """Go to the last day of the month `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
      __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_3 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1094, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1094, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_dt = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1093
 *     def to_month_lst(self) -> pddt:
 *         """Go to the last day of the month `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_MONTHEND(0)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1095
 *         try:
 *             dt: Series = self._dt + typeref.OFST_MONTHEND(0)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_3) < 0) __PYX_ERR(0, 1095, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_v_err = __pyx_t_1;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1096
 *             dt: Series = self._dt + typeref.OFST_MONTHEND(0)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1096, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1096, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1095
 *         try:
 *             dt: Series = self._dt + typeref.OFST_MONTHEND(0)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1093
 *     def to_month_lst(self) -> pddt:
 *         """Go to the last day of the month `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_MONTHEND(0)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1097
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1097, __pyx_L1_error) }
  __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1090
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month_lst(self) -> pddt:
 *         """Go to the last day of the month `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_59to_month_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_58to_month_lst, "Go to the last day of the month `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_59to_month_lst = {"to_month_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_59to_month_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_58to_month_lst};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_59to_month_lst(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_month_lst (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_month_lst", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_month_lst", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_58to_month_lst(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_58to_month_lst(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_month_lst", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_month_lst(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month_lst", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1099
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the current month `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_61to_curr_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month *__pyx_optional_args) {
  int __pyx_v_day = ((int)-1);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  char const *__pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  char const *__pyx_t_19;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_curr_month", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_day = __pyx_optional_args->day;
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_curr_month); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1099, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_61to_curr_month)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1099, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1099, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1099, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1103
 *         """Go to specific 'day' of the current month `<'pddt'>`."""
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Frist day of the month
 */
  __pyx_t_7 = (__pyx_v_day < 1);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":1104
 *         # Invalid 'day' value
 *         if day < 1:
 *             return self._new(self._dt, None, None, True)  # exit             # <<<<<<<<<<<<<<
 *         # Frist day of the month
 *         if day == 1:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_1 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_1, Py_None, Py_None, Py_True)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1104, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1103
 *         """Go to specific 'day' of the current month `<'pddt'>`."""
 *         # Invalid 'day' value
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Frist day of the month
 */
  }

  /* "cytimes/pddatetime.py":1106
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Frist day of the month
 *         if day == 1:             # <<<<<<<<<<<<<<
 *             return self.to_month_1st()  # exit
 *         # Days before 28
 */
  __pyx_t_7 = (__pyx_v_day == 1);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":1107
 *         # Frist day of the month
 *         if day == 1:
 *             return self.to_month_1st()  # exit             # <<<<<<<<<<<<<<
 *         # Days before 28
 *         if day < 29:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_2 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_month_1st(__pyx_v_self, 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1107, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1106
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Frist day of the month
 *         if day == 1:             # <<<<<<<<<<<<<<
 *             return self.to_month_1st()  # exit
 *         # Days before 28
 */
  }

  /* "cytimes/pddatetime.py":1109
 *             return self.to_month_1st()  # exit
 *         # Days before 28
 *         if day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_7 = (__pyx_v_day < 29);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":1110
 *         # Days before 28
 *         if day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1113
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_MONTHBEGIN(1)
 *                     + typeref.OFST_DAY(day - 1)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_4 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_0};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1113, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1113, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":1114
 *                     self._dt
 *                     + typeref.OFST_MONTHEND(0)
 *                     - typeref.OFST_MONTHBEGIN(1)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN);
        __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN; __pyx_t_3 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_1};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1114, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1114, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cytimes/pddatetime.py":1115
 *                     + typeref.OFST_MONTHEND(0)
 *                     - typeref.OFST_MONTHBEGIN(1)
 *                     + typeref.OFST_DAY(day - 1)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_1 = __Pyx_PyInt_From_long((__pyx_v_day - 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1115, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_DAY);
        __pyx_t_3 = __pyx_v_7cytimes_7typeref_OFST_DAY; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_1};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1115, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_t_3 = PyNumber_Add(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1115, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_3;
        __pyx_t_3 = 0;

        /* "cytimes/pddatetime.py":1110
 *         # Days before 28
 *         if day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L11_try_end;
      __pyx_L6_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":1117
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False)  # exit
 */
      __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_6) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_4) < 0) __PYX_ERR(0, 1117, __pyx_L8_except_error)
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_v_err = __pyx_t_2;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1118
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *             return self._new(dt, None, None, False)  # exit
 *         # Days before 31
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1118, __pyx_L17_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 1118, __pyx_L17_error)
        }

        /* "cytimes/pddatetime.py":1117
 *                     + typeref.OFST_DAY(day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False)  # exit
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L18;
          }
          __pyx_L17_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_13);
            __Pyx_XGOTREF(__pyx_t_14);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __pyx_t_6 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18);
            }
            __Pyx_XGIVEREF(__pyx_t_13);
            __Pyx_XGIVEREF(__pyx_t_14);
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15);
            __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
            __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_12;
            goto __pyx_L8_except_error;
          }
          __pyx_L18:;
        }
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        goto __pyx_L7_exception_handled;
      }
      goto __pyx_L8_except_error;

      /* "cytimes/pddatetime.py":1110
 *         # Days before 28
 *         if day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L8_except_error:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L7_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      __pyx_L11_try_end:;
    }

    /* "cytimes/pddatetime.py":1119
 *             except Exception as err:
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 *         # Days before 31
 *         if day < 31:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1119, __pyx_L1_error) }
    __pyx_t_4 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_4);
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1109
 *             return self.to_month_1st()  # exit
 *         # Days before 28
 *         if day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  }

  /* "cytimes/pddatetime.py":1121
 *             return self._new(dt, None, None, False)  # exit
 *         # Days before 31
 *         if day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_7 = (__pyx_v_day < 31);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":1122
 *         # Days before 31
 *         if day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_9, &__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_8);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1124
 *             try:
 *                 dt: Series = (
 *                     self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_3 = NULL;
        __pyx_t_11 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_11 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_0};
          __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1124, __pyx_L24_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1124, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN);
        __pyx_t_3 = __pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN; __pyx_t_1 = NULL;
        __pyx_t_11 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_1)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_11 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_int_1};
          __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1124, __pyx_L24_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_t_3 = PyNumber_Subtract(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1124, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_dt = __pyx_t_3;
        __pyx_t_3 = 0;

        /* "cytimes/pddatetime.py":1127
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(self._dt.dt.days_in_month.values, day) - 1, "D"             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1127, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1127, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1127, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1127, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_1 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_5 = NULL;
        __pyx_t_11 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_11 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_2};
          __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_11, 2+__pyx_t_11);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1127, __pyx_L24_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = __Pyx_PyInt_SubtractObjC(__pyx_t_3, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1127, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

        /* "cytimes/pddatetime.py":1126
 *                     self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(self._dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 */
        __pyx_t_3 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_1, __pyx_n_u_D); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1126, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1126, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":1122
 *         # Days before 31
 *         if day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 */
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L29_try_end;
      __pyx_L24_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":1129
 *                     FN_NP_MIN(self._dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False)  # exit
 */
      __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_11) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 1129, __pyx_L26_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_3);
        __pyx_v_err = __pyx_t_3;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1130
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *             return self._new(dt, None, None, False)  # exit
 *         # Last day of the month
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1130, __pyx_L35_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 1130, __pyx_L35_error)
        }

        /* "cytimes/pddatetime.py":1129
 *                     FN_NP_MIN(self._dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False)  # exit
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L36;
          }
          __pyx_L35_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_t_14 = 0; __pyx_t_13 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_14, &__pyx_t_13);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_17, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_17, &__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_14);
            __Pyx_XGOTREF(__pyx_t_13);
            __pyx_t_11 = __pyx_lineno; __pyx_t_6 = __pyx_clineno; __pyx_t_19 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_XGIVEREF(__pyx_t_14);
              __Pyx_XGIVEREF(__pyx_t_13);
              __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_14, __pyx_t_13);
            }
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_ErrRestore(__pyx_t_18, __pyx_t_17, __pyx_t_16);
            __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_t_14 = 0; __pyx_t_13 = 0;
            __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_6; __pyx_filename = __pyx_t_19;
            goto __pyx_L26_except_error;
          }
          __pyx_L36:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L25_exception_handled;
      }
      goto __pyx_L26_except_error;

      /* "cytimes/pddatetime.py":1122
 *         # Days before 31
 *         if day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt + typeref.OFST_MONTHEND(0) - typeref.OFST_MONTHBEGIN(1)
 */
      __pyx_L26_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_8);
      goto __pyx_L1_error;
      __pyx_L25_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_8);
      __pyx_L29_try_end:;
    }

    /* "cytimes/pddatetime.py":1131
 *             except Exception as err:
 *                 self._raise_error(err)
 *             return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 *         # Last day of the month
 *         return self.to_month_lst()  # exit
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1131, __pyx_L1_error) }
    __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1121
 *             return self._new(dt, None, None, False)  # exit
 *         # Days before 31
 *         if day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  }

  /* "cytimes/pddatetime.py":1133
 *             return self._new(dt, None, None, False)  # exit
 *         # Last day of the month
 *         return self.to_month_lst()  # exit             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_month_lst(__pyx_v_self, 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1099
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the current month `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_61to_curr_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_60to_curr_month, "Go to specific 'day' of the current month `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_61to_curr_month = {"to_curr_month", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_61to_curr_month, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_60to_curr_month};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_61to_curr_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_curr_month (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1099, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_curr_month") < 0)) __PYX_ERR(0, 1099, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1100, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_curr_month", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 1099, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_60to_curr_month(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_day);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_60to_curr_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_curr_month", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_curr_month(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1135
 *         return self.to_month_lst()  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the previous month `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_63to_prev_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_month *__pyx_optional_args) {
  int __pyx_v_day = ((int)-1);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_prev_month", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_day = __pyx_optional_args->day;
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_prev_month); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1135, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_63to_prev_month)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1135, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1135, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1135, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1138
 *     def to_prev_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the previous month `<'pddt'>`."""
 *         return self.to_month(-1, day)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_7.__pyx_n = 2;
  __pyx_t_7.offset = -1;
  __pyx_t_7.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_month(__pyx_v_self, 0, &__pyx_t_7)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1135
 *         return self.to_month_lst()  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the previous month `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_63to_prev_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_62to_prev_month, "Go to specific 'day' of the previous month `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_63to_prev_month = {"to_prev_month", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_63to_prev_month, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_62to_prev_month};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_63to_prev_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_prev_month (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1135, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_prev_month") < 0)) __PYX_ERR(0, 1135, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1136, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_prev_month", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 1135, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_62to_prev_month(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_day);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_62to_prev_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_month __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_prev_month", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_prev_month(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1140
 *         return self.to_month(-1, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the next month `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_65to_next_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_next_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_month *__pyx_optional_args) {
  int __pyx_v_day = ((int)-1);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_next_month", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_day = __pyx_optional_args->day;
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_next_month); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1140, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_65to_next_month)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1140, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1140, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1140, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1143
 *     def to_next_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the next month `<'pddt'>`."""
 *         return self.to_month(1, day)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_7.__pyx_n = 2;
  __pyx_t_7.offset = 1;
  __pyx_t_7.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_month(__pyx_v_self, 0, &__pyx_t_7)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1140
 *         return self.to_month(-1, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the next month `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_65to_next_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_64to_next_month, "Go to specific 'day' of the next month `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_65to_next_month = {"to_next_month", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_65to_next_month, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_64to_next_month};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_65to_next_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_next_month (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1140, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_next_month") < 0)) __PYX_ERR(0, 1140, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1141, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_next_month", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 1140, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_64to_next_month(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_day);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_64to_next_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_month __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_next_month", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_next_month(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1145
 *         return self.to_month(1, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month(self, offset: cython.int = 0, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the current month (+/-) 'offset' `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_67to_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month *__pyx_optional_args) {
  int __pyx_v_offset = ((int)0);
  int __pyx_v_day = ((int)-1);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  char const *__pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  char const *__pyx_t_21;
  char const *__pyx_t_22;
  char const *__pyx_t_23;
  char const *__pyx_t_24;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_month", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_offset = __pyx_optional_args->offset;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_day = __pyx_optional_args->day;
      }
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_month); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_67to_month)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1145, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1145, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 2+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1145, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1145, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1149
 *         """Go to specific 'day' of the current month (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self.to_curr_month(day)  # exit
 *         # Invalid 'day' value (+/-) 'offset'
 */
  __pyx_t_8 = (__pyx_v_offset == 0);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":1150
 *         # No 'offset' adjustment
 *         if offset == 0:
 *             return self.to_curr_month(day)  # exit             # <<<<<<<<<<<<<<
 *         # Invalid 'day' value (+/-) 'offset'
 *         if day < 1:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_9.__pyx_n = 1;
    __pyx_t_9.day = __pyx_v_day;
    __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_curr_month(__pyx_v_self, 0, &__pyx_t_9)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1149
 *         """Go to specific 'day' of the current month (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self.to_curr_month(day)  # exit
 *         # Invalid 'day' value (+/-) 'offset'
 */
  }

  /* "cytimes/pddatetime.py":1152
 *             return self.to_curr_month(day)  # exit
 *         # Invalid 'day' value (+/-) 'offset'
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)
 */
  __pyx_t_8 = (__pyx_v_day < 1);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":1153
 *         # Invalid 'day' value (+/-) 'offset'
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)
 *             except Exception as err:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1154
 *         if day < 1:
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)             # <<<<<<<<<<<<<<
 *             except Exception as err:
 *                 self._raise_error(err)
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1154, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1154, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_months, __pyx_t_2) < 0) __PYX_ERR(0, 1154, __pyx_L5_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1154, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1154, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":1153
 *         # Invalid 'day' value (+/-) 'offset'
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)
 *             except Exception as err:
 */
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L10_try_end;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":1155
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month (+/-) 'offset'
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_5) < 0) __PYX_ERR(0, 1155, __pyx_L7_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_v_err = __pyx_t_2;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1156
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # First day of the month (+/-) 'offset'
 *         elif day == 1:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1156, __pyx_L16_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 1156, __pyx_L16_error)
        }

        /* "cytimes/pddatetime.py":1155
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # First day of the month (+/-) 'offset'
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L17;
          }
          __pyx_L16_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __pyx_t_7 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
            }
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17);
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14;
            goto __pyx_L7_except_error;
          }
          __pyx_L17:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        goto __pyx_L6_exception_handled;
      }
      goto __pyx_L7_except_error;

      /* "cytimes/pddatetime.py":1153
 *         # Invalid 'day' value (+/-) 'offset'
 *         if day < 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)
 *             except Exception as err:
 */
      __pyx_L7_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L6_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_L10_try_end:;
    }

    /* "cytimes/pddatetime.py":1152
 *             return self.to_curr_month(day)  # exit
 *         # Invalid 'day' value (+/-) 'offset'
 *         if day < 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DATEOFFSET(months=offset)
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":1158
 *                 self._raise_error(err)
 *         # First day of the month (+/-) 'offset'
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day == 1);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":1159
 *         # First day of the month (+/-) 'offset'
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_11, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1162
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_MONTHBEGIN(1)
 *                     + typeref.OFST_DATEOFFSET(months=offset)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_1 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_1)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_int_0};
          __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1162, __pyx_L22_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1162, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1163
 *                     self._dt
 *                     + typeref.OFST_MONTHEND(0)
 *                     - typeref.OFST_MONTHBEGIN(1)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(months=offset)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN; __pyx_t_4 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_1};
          __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1163, __pyx_L22_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1163, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1164
 *                     + typeref.OFST_MONTHEND(0)
 *                     - typeref.OFST_MONTHBEGIN(1)
 *                     + typeref.OFST_DATEOFFSET(months=offset)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1164, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1164, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_months, __pyx_t_2) < 0) __PYX_ERR(0, 1164, __pyx_L22_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1164, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1164, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_5;
        __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1159
 *         # First day of the month (+/-) 'offset'
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L27_try_end;
      __pyx_L22_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":1166
 *                     + typeref.OFST_DATEOFFSET(months=offset)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28 (+/-) 'offset'
 */
      __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_13) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 1166, __pyx_L24_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_v_err = __pyx_t_2;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1167
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 28 (+/-) 'offset'
 *         elif day < 29:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1167, __pyx_L33_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 1167, __pyx_L33_error)
        }

        /* "cytimes/pddatetime.py":1166
 *                     + typeref.OFST_DATEOFFSET(months=offset)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 28 (+/-) 'offset'
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L34;
          }
          __pyx_L33_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_16, &__pyx_t_15);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __pyx_t_13 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_21 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_16, __pyx_t_15);
            }
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_20, __pyx_t_19, __pyx_t_18);
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_21;
            goto __pyx_L24_except_error;
          }
          __pyx_L34:;
        }
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L23_exception_handled;
      }
      goto __pyx_L24_except_error;

      /* "cytimes/pddatetime.py":1159
 *         # First day of the month (+/-) 'offset'
 *         elif day == 1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L24_except_error:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L23_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      __pyx_L27_try_end:;
    }

    /* "cytimes/pddatetime.py":1158
 *                 self._raise_error(err)
 *         # First day of the month (+/-) 'offset'
 *         elif day == 1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":1169
 *                 self._raise_error(err)
 *         # Days before 28 (+/-) 'offset'
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day < 29);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":1170
 *         # Days before 28 (+/-) 'offset'
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1173
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_MONTHBEGIN(1)
 *                     + typeref.OFST_DATEOFFSET(months=offset, days=day - 1)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_5 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_int_0};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1173, __pyx_L39_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1173, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":1174
 *                     self._dt
 *                     + typeref.OFST_MONTHEND(0)
 *                     - typeref.OFST_MONTHBEGIN(1)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(months=offset, days=day - 1)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN);
        __pyx_t_5 = __pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN; __pyx_t_4 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_1};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1174, __pyx_L39_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        __pyx_t_5 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1174, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":1175
 *                     + typeref.OFST_MONTHEND(0)
 *                     - typeref.OFST_MONTHBEGIN(1)
 *                     + typeref.OFST_DATEOFFSET(months=offset, days=day - 1)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1175, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1175, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_months, __pyx_t_2) < 0) __PYX_ERR(0, 1175, __pyx_L39_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyInt_From_long((__pyx_v_day - 1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1175, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_days, __pyx_t_2) < 0) __PYX_ERR(0, 1175, __pyx_L39_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1175, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Add(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1175, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":1170
 *         # Days before 28 (+/-) 'offset'
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L44_try_end;
      __pyx_L39_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":1177
 *                     + typeref.OFST_DATEOFFSET(months=offset, days=day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31 (+/-) 'offset'
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_5) < 0) __PYX_ERR(0, 1177, __pyx_L41_except_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_v_err = __pyx_t_2;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1178
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Days before 31 (+/-) 'offset'
 *         elif day < 31:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1178, __pyx_L50_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 1178, __pyx_L50_error)
        }

        /* "cytimes/pddatetime.py":1177
 *                     + typeref.OFST_DATEOFFSET(months=offset, days=day - 1)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Days before 31 (+/-) 'offset'
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L51;
          }
          __pyx_L50_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __pyx_t_7 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_22 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
            }
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17);
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_22;
            goto __pyx_L41_except_error;
          }
          __pyx_L51:;
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        goto __pyx_L40_exception_handled;
      }
      goto __pyx_L41_except_error;

      /* "cytimes/pddatetime.py":1170
 *         # Days before 28 (+/-) 'offset'
 *         elif day < 29:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L41_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L40_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_L44_try_end:;
    }

    /* "cytimes/pddatetime.py":1169
 *                 self._raise_error(err)
 *         # Days before 28 (+/-) 'offset'
 *         elif day < 29:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":1180
 *                 self._raise_error(err)
 *         # Days before 31 (+/-) 'offset'
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
  __pyx_t_8 = (__pyx_v_day < 31);
  if (__pyx_t_8) {

    /* "cytimes/pddatetime.py":1181
 *         # Days before 31 (+/-) 'offset'
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_11, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1184
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                     - typeref.OFST_MONTHBEGIN(1)
 *                     + typeref.OFST_DATEOFFSET(months=offset)
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_1 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_1)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_int_0};
          __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1184, __pyx_L56_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1184, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1185
 *                     self._dt
 *                     + typeref.OFST_MONTHEND(0)
 *                     - typeref.OFST_MONTHBEGIN(1)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_DATEOFFSET(months=offset)
 *                 )
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN);
        __pyx_t_1 = __pyx_v_7cytimes_7typeref_OFST_MONTHBEGIN; __pyx_t_4 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_1, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_1};
          __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1185, __pyx_L56_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1185, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1186
 *                     + typeref.OFST_MONTHEND(0)
 *                     - typeref.OFST_MONTHBEGIN(1)
 *                     + typeref.OFST_DATEOFFSET(months=offset)             # <<<<<<<<<<<<<<
 *                 )
 *                 dt += self._arr_to_tdindex(
 */
        __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1186, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1186, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_months, __pyx_t_2) < 0) __PYX_ERR(0, 1186, __pyx_L56_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1186, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1186, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_dt = __pyx_t_5;
        __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1189
 *                 )
 *                 dt += self._arr_to_tdindex(
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1189, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_days_in_month); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1189, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1189, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_day); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1189, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
        __pyx_t_4 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_3 = NULL;
        __pyx_t_13 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_13 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_2, __pyx_t_1};
          __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_13, 2+__pyx_t_13);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1189, __pyx_L56_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = __Pyx_PyInt_SubtractObjC(__pyx_t_5, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1189, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1188
 *                     + typeref.OFST_DATEOFFSET(months=offset)
 *                 )
 *                 dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 */
        __pyx_t_5 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_4, __pyx_n_u_D); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1188, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1188, __pyx_L56_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":1181
 *         # Days before 31 (+/-) 'offset'
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L61_try_end;
      __pyx_L56_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":1191
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month (+/-) 'offset'
 */
      __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_13) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(0, 1191, __pyx_L58_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_v_err = __pyx_t_5;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1192
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Last day of the month (+/-) 'offset'
 *         else:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1192, __pyx_L67_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 1192, __pyx_L67_error)
        }

        /* "cytimes/pddatetime.py":1191
 *                     FN_NP_MIN(dt.dt.days_in_month.values, day) - 1, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Last day of the month (+/-) 'offset'
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L68;
          }
          __pyx_L67_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_16, &__pyx_t_15);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __pyx_t_13 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_23 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_16, __pyx_t_15);
            }
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ErrRestore(__pyx_t_20, __pyx_t_19, __pyx_t_18);
            __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0;
            __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_23;
            goto __pyx_L58_except_error;
          }
          __pyx_L68:;
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L57_exception_handled;
      }
      goto __pyx_L58_except_error;

      /* "cytimes/pddatetime.py":1181
 *         # Days before 31 (+/-) 'offset'
 *         elif day < 31:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L58_except_error:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L57_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_11, __pyx_t_10);
      __pyx_L61_try_end:;
    }

    /* "cytimes/pddatetime.py":1180
 *                 self._raise_error(err)
 *         # Days before 31 (+/-) 'offset'
 *         elif day < 31:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = (
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":1195
 *         # Last day of the month (+/-) 'offset'
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
  /*else*/ {
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1198
 *                 dt: Series = (
 *                     self._dt
 *                     + typeref.OFST_DATEOFFSET(months=offset)             # <<<<<<<<<<<<<<
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 */
        __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1198, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1198, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_months, __pyx_t_5) < 0) __PYX_ERR(0, 1198, __pyx_L73_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1198, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1198, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":1199
 *                     self._dt
 *                     + typeref.OFST_DATEOFFSET(months=offset)
 *                     + typeref.OFST_MONTHEND(0)             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MONTHEND);
        __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_MONTHEND; __pyx_t_2 = NULL;
        __pyx_t_7 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_2)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_2);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_7 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_int_0};
          __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1199, __pyx_L73_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1199, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_dt = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":1195
 *         # Last day of the month (+/-) 'offset'
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L78_try_end;
      __pyx_L73_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cytimes/pddatetime.py":1201
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(0, 1201, __pyx_L75_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_v_err = __pyx_t_5;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1202
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1202, __pyx_L84_error)
          __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 1202, __pyx_L84_error)
        }

        /* "cytimes/pddatetime.py":1201
 *                     + typeref.OFST_MONTHEND(0)
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L85;
          }
          __pyx_L84_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __pyx_t_7 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_24 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
            }
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17);
            __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
            __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_24;
            goto __pyx_L75_except_error;
          }
          __pyx_L85:;
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L74_exception_handled;
      }
      goto __pyx_L75_except_error;

      /* "cytimes/pddatetime.py":1195
 *         # Last day of the month (+/-) 'offset'
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = (
 *                     self._dt
 */
      __pyx_L75_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L74_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_L78_try_end:;
    }
  }
  __pyx_L4:;

  /* "cytimes/pddatetime.py":1204
 *                 self._raise_error(err)
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 * 
 *     # Weekday ---------------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1204, __pyx_L1_error) }
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1145
 *         return self.to_month(1, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month(self, offset: cython.int = 0, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the current month (+/-) 'offset' `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_67to_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_66to_month, "Go to specific 'day' of the current month (+/-) 'offset' `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_67to_month = {"to_month", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_67to_month, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_66to_month};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_67to_month(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_offset;
  int __pyx_v_day;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_month (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_offset);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1145, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1145, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_month") < 0)) __PYX_ERR(0, 1145, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_offset = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_offset == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1146, __pyx_L3_error)
    } else {
      __pyx_v_offset = ((int)0);
    }
    if (values[1]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1146, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_month", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 1145, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_66to_month(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_offset, __pyx_v_day);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_66to_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, int __pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_month", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.offset = __pyx_v_offset;
  __pyx_t_2.day = __pyx_v_day;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_month(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1207
 * 
 *     # Weekday ---------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def weekday(self) -> Series[int]:
 *         """The weekday of the dates `<'Series[int]'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7weekday_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7weekday_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_7weekday___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7weekday___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":1211
 *         """The weekday of the dates `<'Series[int]'>`.
 *         Values: 0=Monday...6=Sunday."""
 *         return self._dt.dt.weekday             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_weekday); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1207
 * 
 *     # Weekday ---------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def weekday(self) -> Series[int]:
 *         """The weekday of the dates `<'Series[int]'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.weekday.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1213
 *         return self._dt.dt.weekday
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def isoweekday(self) -> Series[int]:
 *         """The ISO weekday of the dates `<'Series[int]'>`.
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_10isoweekday_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_10isoweekday_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_10isoweekday___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_10isoweekday___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":1217
 *         """The ISO weekday of the dates `<'Series[int]'>`.
 *         Values: 1=Monday...7=Sunday."""
 *         return self._arr_to_series(self._dt.dt.weekday.values + 1)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_weekday); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1213
 *         return self._dt.dt.weekday
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def isoweekday(self) -> Series[int]:
 *         """The ISO weekday of the dates `<'Series[int]'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.isoweekday.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1219
 *         return self._arr_to_series(self._dt.dt.weekday.values + 1)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def isoweek(self) -> Series[int]:
 *         """The ISO calendar week number of the dates `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7isoweek_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7isoweek_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_7isoweek___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7isoweek___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":1222
 *     def isoweek(self) -> Series[int]:
 *         """The ISO calendar week number of the dates `<'Series[int]'>`."""
 *         return self._dt.dt.isocalendar()["week"]             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_isocalendar); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_u_week); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1219
 *         return self._arr_to_series(self._dt.dt.weekday.values + 1)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def isoweek(self) -> Series[int]:
 *         """The ISO calendar week number of the dates `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.isoweek.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1224
 *         return self._dt.dt.isocalendar()["week"]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def isoyear(self) -> Series[int]:
 *         """The ISO calendar year of the dates `<'Series[int]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7isoyear_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7isoyear_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_7isoyear___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_7isoyear___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":1227
 *     def isoyear(self) -> Series[int]:
 *         """The ISO calendar year of the dates `<'Series[int]'>`."""
 *         return self._dt.dt.isocalendar()["year"]             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_isocalendar); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_u_year); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1224
 *         return self._dt.dt.isocalendar()["week"]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def isoyear(self) -> Series[int]:
 *         """The ISO calendar year of the dates `<'Series[int]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.isoyear.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1229
 *         return self._dt.dt.isocalendar()["year"]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def isocalendar(self) -> DataFrame[int]:
 *         """The ISO calendar year, week, and weekday of the dates `<DataFrame[int]>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_11isocalendar_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_11isocalendar_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_11isocalendar___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_11isocalendar___get__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":1232
 *     def isocalendar(self) -> DataFrame[int]:
 *         """The ISO calendar year, week, and weekday of the dates `<DataFrame[int]>`."""
 *         return self._dt.dt.isocalendar()             # <<<<<<<<<<<<<<
 * 
 *     def is_weekday(self, weekday: int | str) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_isocalendar); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1232, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1229
 *         return self._dt.dt.isocalendar()["year"]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def isocalendar(self) -> DataFrame[int]:
 *         """The ISO calendar year, week, and weekday of the dates `<DataFrame[int]>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.isocalendar.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1234
 *         return self._dt.dt.isocalendar()
 * 
 *     def is_weekday(self, weekday: int | str) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'weekday' `<'Series[bool]'>`."""
 *         return self._arr_to_series(
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_69is_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_68is_weekday, "Whether the dates are in the given 'weekday' `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_69is_weekday = {"is_weekday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_69is_weekday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_68is_weekday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_69is_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_weekday = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_weekday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_weekday,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_weekday)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1234, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "is_weekday") < 0)) __PYX_ERR(0, 1234, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_weekday = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_weekday", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1234, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_68is_weekday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_weekday);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_68is_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_weekday", 1);

  /* "cytimes/pddatetime.py":1236
 *     def is_weekday(self, weekday: int | str) -> Series[bool]:
 *         """Whether the dates are in the given 'weekday' `<'Series[bool]'>`."""
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             self._dt.dt.weekday.values == self._parse_weekday(weekday)
 *         )
 */
  __Pyx_XDECREF(__pyx_r);

  /* "cytimes/pddatetime.py":1237
 *         """Whether the dates are in the given 'weekday' `<'Series[bool]'>`."""
 *         return self._arr_to_series(
 *             self._dt.dt.weekday.values == self._parse_weekday(weekday)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_weekday); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_weekday(__pyx_v_self, __pyx_v_weekday); if (unlikely(__pyx_t_3 == ((int)-2))) __PYX_ERR(0, 1237, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1237, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":1236
 *     def is_weekday(self, weekday: int | str) -> Series[bool]:
 *         """Whether the dates are in the given 'weekday' `<'Series[bool]'>`."""
 *         return self._arr_to_series(             # <<<<<<<<<<<<<<
 *             self._dt.dt.weekday.values == self._parse_weekday(weekday)
 *         )
 */
  __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1234
 *         return self._dt.dt.isocalendar()
 * 
 *     def is_weekday(self, weekday: int | str) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'weekday' `<'Series[bool]'>`."""
 *         return self._arr_to_series(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1240
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_monday(self) -> pddt:
 *         """Go to Monday of the current week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_71to_monday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_monday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_monday", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_monday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1240, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_71to_monday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1240, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1240, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1243
 *     def to_monday(self) -> pddt:
 *         """Go to Monday of the current week `<'pddt'>`."""
 *         return self._c_to_curr_weekday(0)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(__pyx_v_self, 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1240
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_monday(self) -> pddt:
 *         """Go to Monday of the current week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_monday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_71to_monday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_70to_monday, "Go to Monday of the current week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_71to_monday = {"to_monday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_71to_monday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_70to_monday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_71to_monday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_monday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_monday", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_monday", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_70to_monday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_70to_monday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_monday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_monday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_monday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1245
 *         return self._c_to_curr_weekday(0)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_tuesday(self) -> pddt:
 *         """Go to Tuesday of the current week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_73to_tuesday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_tuesday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_tuesday", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_tuesday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1245, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_73to_tuesday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1245, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1245, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1248
 *     def to_tuesday(self) -> pddt:
 *         """Go to Tuesday of the current week `<'pddt'>`."""
 *         return self._c_to_curr_weekday(1)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1245
 *         return self._c_to_curr_weekday(0)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_tuesday(self) -> pddt:
 *         """Go to Tuesday of the current week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_tuesday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_73to_tuesday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_72to_tuesday, "Go to Tuesday of the current week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_73to_tuesday = {"to_tuesday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_73to_tuesday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_72to_tuesday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_73to_tuesday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_tuesday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_tuesday", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_tuesday", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_72to_tuesday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_72to_tuesday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_tuesday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_tuesday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_tuesday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1250
 *         return self._c_to_curr_weekday(1)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_wednesday(self) -> pddt:
 *         """Go to Wednesday of the current week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_75to_wednesday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_wednesday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_wednesday", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_wednesday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_75to_wednesday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1250, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1250, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1253
 *     def to_wednesday(self) -> pddt:
 *         """Go to Wednesday of the current week `<'pddt'>`."""
 *         return self._c_to_curr_weekday(2)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(__pyx_v_self, 2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1250
 *         return self._c_to_curr_weekday(1)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_wednesday(self) -> pddt:
 *         """Go to Wednesday of the current week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_wednesday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_75to_wednesday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_74to_wednesday, "Go to Wednesday of the current week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_75to_wednesday = {"to_wednesday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_75to_wednesday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_74to_wednesday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_75to_wednesday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_wednesday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_wednesday", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_wednesday", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_74to_wednesday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_74to_wednesday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_wednesday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_wednesday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_wednesday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1255
 *         return self._c_to_curr_weekday(2)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_thursday(self) -> pddt:
 *         """Go to Thursday of the current week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_77to_thursday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_thursday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_thursday", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_thursday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1255, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_77to_thursday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1255, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1255, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1258
 *     def to_thursday(self) -> pddt:
 *         """Go to Thursday of the current week `<'pddt'>`."""
 *         return self._c_to_curr_weekday(3)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(__pyx_v_self, 3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1255
 *         return self._c_to_curr_weekday(2)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_thursday(self) -> pddt:
 *         """Go to Thursday of the current week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_thursday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_77to_thursday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_76to_thursday, "Go to Thursday of the current week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_77to_thursday = {"to_thursday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_77to_thursday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_76to_thursday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_77to_thursday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_thursday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_thursday", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_thursday", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_76to_thursday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_76to_thursday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_thursday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_thursday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_thursday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1260
 *         return self._c_to_curr_weekday(3)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_friday(self) -> pddt:
 *         """Go to Friday of the current week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_79to_friday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_friday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_friday", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_friday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1260, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_79to_friday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1260, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1260, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1263
 *     def to_friday(self) -> pddt:
 *         """Go to Friday of the current week `<'pddt'>`."""
 *         return self._c_to_curr_weekday(4)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(__pyx_v_self, 4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1260
 *         return self._c_to_curr_weekday(3)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_friday(self) -> pddt:
 *         """Go to Friday of the current week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_friday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_79to_friday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_78to_friday, "Go to Friday of the current week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_79to_friday = {"to_friday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_79to_friday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_78to_friday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_79to_friday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_friday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_friday", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_friday", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_78to_friday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_78to_friday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_friday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_friday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_friday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1265
 *         return self._c_to_curr_weekday(4)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_saturday(self) -> pddt:
 *         """Go to Saturday of the current week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_81to_saturday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_saturday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_saturday", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_saturday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1265, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_81to_saturday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1265, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1265, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1268
 *     def to_saturday(self) -> pddt:
 *         """Go to Saturday of the current week `<'pddt'>`."""
 *         return self._c_to_curr_weekday(5)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(__pyx_v_self, 5)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1265
 *         return self._c_to_curr_weekday(4)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_saturday(self) -> pddt:
 *         """Go to Saturday of the current week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_saturday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_81to_saturday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_80to_saturday, "Go to Saturday of the current week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_81to_saturday = {"to_saturday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_81to_saturday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_80to_saturday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_81to_saturday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_saturday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_saturday", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_saturday", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_80to_saturday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_80to_saturday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_saturday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_saturday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_saturday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1270
 *         return self._c_to_curr_weekday(5)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_sunday(self) -> pddt:
 *         """Go to Sunday of the current week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_83to_sunday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_sunday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_sunday", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_sunday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1270, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_83to_sunday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1270, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1270, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1273
 *     def to_sunday(self) -> pddt:
 *         """Go to Sunday of the current week `<'pddt'>`."""
 *         return self._c_to_curr_weekday(6)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(__pyx_v_self, 6)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1270
 *         return self._c_to_curr_weekday(5)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_sunday(self) -> pddt:
 *         """Go to Sunday of the current week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_sunday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_83to_sunday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_82to_sunday, "Go to Sunday of the current week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_83to_sunday = {"to_sunday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_83to_sunday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_82to_sunday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_83to_sunday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_sunday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_sunday", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_sunday", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_82to_sunday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_82to_sunday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_sunday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_sunday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_sunday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1275
 *         return self._c_to_curr_weekday(6)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_85to_curr_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_weekday *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":1276
 * 
 *     @cython.ccall
 *     def to_curr_weekday(self, weekday: int | str | None = None) -> pddt:             # <<<<<<<<<<<<<<
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 *         # Invalid 'weekday' value
 */
  PyObject *__pyx_v_weekday = ((PyObject *)Py_None);
  int __pyx_v_wkd;
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_curr_weekday", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_weekday = __pyx_optional_args->weekday;
    }
  }

  /* "cytimes/pddatetime.py":1275
 *         return self._c_to_curr_weekday(6)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_curr_weekday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1275, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_85to_curr_weekday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_weekday};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1275, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1275, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1279
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 *         # Invalid 'weekday' value
 *         wkd: cython.int = self._parse_weekday(weekday)             # <<<<<<<<<<<<<<
 *         if wkd == -1:
 *             return self._new(self._dt, None, None, True)  # exit
 */
  __pyx_t_5 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_weekday(__pyx_v_self, __pyx_v_weekday); if (unlikely(__pyx_t_5 == ((int)-2))) __PYX_ERR(0, 1279, __pyx_L1_error)
  __pyx_v_wkd = __pyx_t_5;

  /* "cytimes/pddatetime.py":1280
 *         # Invalid 'weekday' value
 *         wkd: cython.int = self._parse_weekday(weekday)
 *         if wkd == -1:             # <<<<<<<<<<<<<<
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to specific 'weekday'
 */
  __pyx_t_6 = (__pyx_v_wkd == -1L);
  if (__pyx_t_6) {

    /* "cytimes/pddatetime.py":1281
 *         wkd: cython.int = self._parse_weekday(weekday)
 *         if wkd == -1:
 *             return self._new(self._dt, None, None, True)  # exit             # <<<<<<<<<<<<<<
 *         # Go to specific 'weekday'
 *         try:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_1 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_1, Py_None, Py_None, Py_True)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1280
 *         # Invalid 'weekday' value
 *         wkd: cython.int = self._parse_weekday(weekday)
 *         if wkd == -1:             # <<<<<<<<<<<<<<
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to specific 'weekday'
 */
  }

  /* "cytimes/pddatetime.py":1283
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to specific 'weekday'
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt - self._arr_to_tdindex(
 *                 self._dt.dt.weekday.values - wkd, "D"
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1285
 *         try:
 *             dt: Series = self._dt - self._arr_to_tdindex(
 *                 self._dt.dt.weekday.values - wkd, "D"             # <<<<<<<<<<<<<<
 *             )
 *         except Exception as err:
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1285, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_weekday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1285, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1285, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_wkd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1285, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1285, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1284
 *         # Go to specific 'weekday'
 *         try:
 *             dt: Series = self._dt - self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                 self._dt.dt.weekday.values - wkd, "D"
 *             )
 */
      __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_3, __pyx_n_u_D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1284, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyNumber_Subtract(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1284, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_dt = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "cytimes/pddatetime.py":1283
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to specific 'weekday'
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt - self._arr_to_tdindex(
 *                 self._dt.dt.weekday.values - wkd, "D"
 */
    }
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1287
 *                 self._dt.dt.weekday.values - wkd, "D"
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)  # exit
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 1287, __pyx_L6_except_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_v_err = __pyx_t_1;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1288
 *             )
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)  # exit
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1288, __pyx_L15_error)
        __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1288, __pyx_L15_error)
      }

      /* "cytimes/pddatetime.py":1287
 *                 self._dt.dt.weekday.values - wkd, "D"
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)  # exit
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L16;
        }
        __pyx_L15_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L6_except_error;
        }
        __pyx_L16:;
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;

    /* "cytimes/pddatetime.py":1283
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to specific 'weekday'
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt - self._arr_to_tdindex(
 *                 self._dt.dt.weekday.values - wkd, "D"
 */
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    goto __pyx_L1_error;
    __pyx_L5_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    __pyx_L9_try_end:;
  }

  /* "cytimes/pddatetime.py":1289
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1289, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1275
 *         return self._c_to_curr_weekday(6)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_85to_curr_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_84to_curr_weekday, "Go to specific 'weekday' of the current week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_85to_curr_weekday = {"to_curr_weekday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_85to_curr_weekday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_84to_curr_weekday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_85to_curr_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_weekday = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_curr_weekday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_weekday,0};

    /* "cytimes/pddatetime.py":1276
 * 
 *     @cython.ccall
 *     def to_curr_weekday(self, weekday: int | str | None = None) -> pddt:             # <<<<<<<<<<<<<<
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 *         # Invalid 'weekday' value
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_weekday);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1275, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_curr_weekday") < 0)) __PYX_ERR(0, 1275, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_weekday = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_curr_weekday", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 1275, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_84to_curr_weekday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_weekday);

  /* "cytimes/pddatetime.py":1275
 *         return self._c_to_curr_weekday(6)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_84to_curr_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_weekday __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_curr_weekday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.weekday = __pyx_v_weekday;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_curr_weekday(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_curr_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1291
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_87to_prev_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_weekday *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":1292
 * 
 *     @cython.ccall
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:             # <<<<<<<<<<<<<<
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 *         return self.to_weekday(-1, weekday)
 */
  PyObject *__pyx_v_weekday = ((PyObject *)Py_None);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_prev_weekday", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_weekday = __pyx_optional_args->weekday;
    }
  }

  /* "cytimes/pddatetime.py":1291
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_prev_weekday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1291, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_87to_prev_weekday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_weekday};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1291, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1291, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1294
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 *         return self.to_weekday(-1, weekday)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_6.__pyx_n = 2;
  __pyx_t_6.offset = -1;
  __pyx_t_6.weekday = __pyx_v_weekday;
  __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_weekday(__pyx_v_self, 0, &__pyx_t_6)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1291
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_87to_prev_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_86to_prev_weekday, "Go to specific 'weekday' of the previous week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_87to_prev_weekday = {"to_prev_weekday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_87to_prev_weekday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_86to_prev_weekday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_87to_prev_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_weekday = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_prev_weekday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_weekday,0};

    /* "cytimes/pddatetime.py":1292
 * 
 *     @cython.ccall
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:             # <<<<<<<<<<<<<<
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 *         return self.to_weekday(-1, weekday)
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_weekday);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1291, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_prev_weekday") < 0)) __PYX_ERR(0, 1291, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_weekday = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_prev_weekday", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 1291, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_86to_prev_weekday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_weekday);

  /* "cytimes/pddatetime.py":1291
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_86to_prev_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_weekday __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_prev_weekday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.weekday = __pyx_v_weekday;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_prev_weekday(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_prev_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1296
 *         return self.to_weekday(-1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_89to_next_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_next_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_weekday *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":1297
 * 
 *     @cython.ccall
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:             # <<<<<<<<<<<<<<
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 *         return self.to_weekday(1, weekday)
 */
  PyObject *__pyx_v_weekday = ((PyObject *)Py_None);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_next_weekday", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_weekday = __pyx_optional_args->weekday;
    }
  }

  /* "cytimes/pddatetime.py":1296
 *         return self.to_weekday(-1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_next_weekday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1296, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_89to_next_weekday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_weekday};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1296, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1296, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1299
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 *         return self.to_weekday(1, weekday)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_6.__pyx_n = 2;
  __pyx_t_6.offset = 1;
  __pyx_t_6.weekday = __pyx_v_weekday;
  __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_weekday(__pyx_v_self, 0, &__pyx_t_6)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1296
 *         return self.to_weekday(-1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_89to_next_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_88to_next_weekday, "Go to specific 'weekday' of the next week `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_89to_next_weekday = {"to_next_weekday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_89to_next_weekday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_88to_next_weekday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_89to_next_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_weekday = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_next_weekday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_weekday,0};

    /* "cytimes/pddatetime.py":1297
 * 
 *     @cython.ccall
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:             # <<<<<<<<<<<<<<
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 *         return self.to_weekday(1, weekday)
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_weekday);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1296, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_next_weekday") < 0)) __PYX_ERR(0, 1296, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_weekday = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_next_weekday", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 1296, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_88to_next_weekday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_weekday);

  /* "cytimes/pddatetime.py":1296
 *         return self.to_weekday(-1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_88to_next_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_weekday __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_next_weekday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.weekday = __pyx_v_weekday;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_next_weekday(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_next_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1301
 *         return self.to_weekday(1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_weekday(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_91to_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday *__pyx_optional_args) {
  int __pyx_v_offset = ((int)0);

  /* "cytimes/pddatetime.py":1305
 *         self,
 *         offset: cython.int = 0,
 *         weekday: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *     ) -> pddt:
 *         """Go to specific 'weekday' of the current
 */
  PyObject *__pyx_v_weekday = ((PyObject *)Py_None);
  int __pyx_v_wkd;
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_weekday __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  char const *__pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  char const *__pyx_t_20;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_weekday", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_offset = __pyx_optional_args->offset;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_weekday = __pyx_optional_args->weekday;
      }
    }
  }

  /* "cytimes/pddatetime.py":1301
 *         return self.to_weekday(1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_weekday(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_weekday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1301, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_91to_weekday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1301, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_3, __pyx_v_weekday};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1301, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1301, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1310
 *         week (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self.to_curr_weekday(weekday)  # exit
 *         # Invalid 'weekday' value
 */
  __pyx_t_7 = (__pyx_v_offset == 0);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":1311
 *         # No 'offset' adjustment
 *         if offset == 0:
 *             return self.to_curr_weekday(weekday)  # exit             # <<<<<<<<<<<<<<
 *         # Invalid 'weekday' value
 *         wkd: cython.int = self._parse_weekday(weekday)
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.weekday = __pyx_v_weekday;
    __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_curr_weekday(__pyx_v_self, 0, &__pyx_t_8)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1311, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1310
 *         week (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self.to_curr_weekday(weekday)  # exit
 *         # Invalid 'weekday' value
 */
  }

  /* "cytimes/pddatetime.py":1313
 *             return self.to_curr_weekday(weekday)  # exit
 *         # Invalid 'weekday' value
 *         wkd: cython.int = self._parse_weekday(weekday)             # <<<<<<<<<<<<<<
 *         if wkd == -1:
 *             try:
 */
  __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_weekday(__pyx_v_self, __pyx_v_weekday); if (unlikely(__pyx_t_6 == ((int)-2))) __PYX_ERR(0, 1313, __pyx_L1_error)
  __pyx_v_wkd = __pyx_t_6;

  /* "cytimes/pddatetime.py":1314
 *         # Invalid 'weekday' value
 *         wkd: cython.int = self._parse_weekday(weekday)
 *         if wkd == -1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)
 */
  __pyx_t_7 = (__pyx_v_wkd == -1L);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":1315
 *         wkd: cython.int = self._parse_weekday(weekday)
 *         if wkd == -1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)
 *             except Exception as err:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1316
 *         if wkd == -1:
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)             # <<<<<<<<<<<<<<
 *             except Exception as err:
 *                 self._raise_error(err)
 */
        __pyx_t_2 = __Pyx_PyInt_From_long((__pyx_v_offset * 7)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1316, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_DAY);
        __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_DAY; __pyx_t_3 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_2};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1316, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        __pyx_t_4 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1316, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_v_dt = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":1315
 *         wkd: cython.int = self._parse_weekday(weekday)
 *         if wkd == -1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)
 *             except Exception as err:
 */
      }
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      goto __pyx_L10_try_end;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":1317
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Go to specific 'weekday' (+/-) 'offset'
 */
      __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_6) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 1317, __pyx_L7_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_err = __pyx_t_1;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1318
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Go to specific 'weekday' (+/-) 'offset'
 *         else:
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1318, __pyx_L16_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 1318, __pyx_L16_error)
        }

        /* "cytimes/pddatetime.py":1317
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Go to specific 'weekday' (+/-) 'offset'
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L17;
          }
          __pyx_L16_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_14);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __pyx_t_6 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_13 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
            }
            __Pyx_XGIVEREF(__pyx_t_14);
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16);
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_13;
            goto __pyx_L7_except_error;
          }
          __pyx_L17:;
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L6_exception_handled;
      }
      goto __pyx_L7_except_error;

      /* "cytimes/pddatetime.py":1315
 *         wkd: cython.int = self._parse_weekday(weekday)
 *         if wkd == -1:
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)
 *             except Exception as err:
 */
      __pyx_L7_except_error:;
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      goto __pyx_L1_error;
      __pyx_L6_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      __pyx_L10_try_end:;
    }

    /* "cytimes/pddatetime.py":1314
 *         # Invalid 'weekday' value
 *         wkd: cython.int = self._parse_weekday(weekday)
 *         if wkd == -1:             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt + typeref.OFST_DAY(offset * 7)
 */
    goto __pyx_L4;
  }

  /* "cytimes/pddatetime.py":1321
 *         # Go to specific 'weekday' (+/-) 'offset'
 *         else:
 *             offset: cython.int = offset * 7 + wkd             # <<<<<<<<<<<<<<
 *             try:
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 */
  /*else*/ {
    __pyx_v_offset = ((__pyx_v_offset * 7) + __pyx_v_wkd);

    /* "cytimes/pddatetime.py":1322
 *         else:
 *             offset: cython.int = offset * 7 + wkd
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 *                     self._dt.dt.weekday.values - offset, "D"
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_9);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1324
 *             try:
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 *                     self._dt.dt.weekday.values - offset, "D"             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1324, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_weekday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1324, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1324, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1324, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1324, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":1323
 *             offset: cython.int = offset * 7 + wkd
 *             try:
 *                 dt: Series = self._dt - self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     self._dt.dt.weekday.values - offset, "D"
 *                 )
 */
        __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_4, __pyx_n_u_D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1323, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyNumber_Subtract(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1323, __pyx_L22_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_v_dt = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "cytimes/pddatetime.py":1322
 *         else:
 *             offset: cython.int = offset * 7 + wkd
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 *                     self._dt.dt.weekday.values - offset, "D"
 */
      }
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L27_try_end;
      __pyx_L22_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cytimes/pddatetime.py":1326
 *                     self._dt.dt.weekday.values - offset, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
      __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_12) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 1326, __pyx_L24_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_err = __pyx_t_1;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1327
 *                 )
 *             except Exception as err:
 *                 self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit
 */
          if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1327, __pyx_L33_error)
          __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 1327, __pyx_L33_error)
        }

        /* "cytimes/pddatetime.py":1326
 *                     self._dt.dt.weekday.values - offset, "D"
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 self._raise_error(err)
 *         # Generate new pddt
 */
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            goto __pyx_L34;
          }
          __pyx_L33_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_t_14 = 0;
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_15, &__pyx_t_14);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_18, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_18, &__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_14);
            __pyx_t_12 = __pyx_lineno; __pyx_t_6 = __pyx_clineno; __pyx_t_20 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_16);
              __Pyx_XGIVEREF(__pyx_t_15);
              __Pyx_XGIVEREF(__pyx_t_14);
              __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_15, __pyx_t_14);
            }
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ErrRestore(__pyx_t_19, __pyx_t_18, __pyx_t_17);
            __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_t_14 = 0;
            __pyx_lineno = __pyx_t_12; __pyx_clineno = __pyx_t_6; __pyx_filename = __pyx_t_20;
            goto __pyx_L24_except_error;
          }
          __pyx_L34:;
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L23_exception_handled;
      }
      goto __pyx_L24_except_error;

      /* "cytimes/pddatetime.py":1322
 *         else:
 *             offset: cython.int = offset * 7 + wkd
 *             try:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 *                     self._dt.dt.weekday.values - offset, "D"
 */
      __pyx_L24_except_error:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_10, __pyx_t_9);
      goto __pyx_L1_error;
      __pyx_L23_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_10, __pyx_t_9);
      __pyx_L27_try_end:;
    }
  }
  __pyx_L4:;

  /* "cytimes/pddatetime.py":1329
 *                 self._raise_error(err)
 *         # Generate new pddt
 *         return self._new(dt, None, None, False)  # exit             # <<<<<<<<<<<<<<
 * 
 *     # Day -------------------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1329, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1301
 *         return self.to_weekday(1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_weekday(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_91to_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_90to_weekday, "Go to specific 'weekday' of the current\n        week (+/-) 'offset' `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_91to_weekday = {"to_weekday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_91to_weekday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_90to_weekday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_91to_weekday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_offset;
  PyObject *__pyx_v_weekday = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_weekday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,&__pyx_n_s_weekday,0};

    /* "cytimes/pddatetime.py":1305
 *         self,
 *         offset: cython.int = 0,
 *         weekday: cython.int | str | None = None,             # <<<<<<<<<<<<<<
 *     ) -> pddt:
 *         """Go to specific 'weekday' of the current
 */
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_offset);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_weekday);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1301, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_weekday") < 0)) __PYX_ERR(0, 1301, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_offset = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_offset == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1304, __pyx_L3_error)
    } else {
      __pyx_v_offset = ((int)0);
    }
    __pyx_v_weekday = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_weekday", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 1301, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_90to_weekday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_offset, __pyx_v_weekday);

  /* "cytimes/pddatetime.py":1301
 *         return self.to_weekday(1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_weekday(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_90to_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, PyObject *__pyx_v_weekday) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_weekday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.offset = __pyx_v_offset;
  __pyx_t_2.weekday = __pyx_v_weekday;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_weekday(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1332
 * 
 *     # Day -------------------------------------------------------------------------------------
 *     def is_day(self, day: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'day' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.day.values == day)
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_93is_day(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_92is_day, "Whether the dates are in the given 'day' `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_93is_day = {"is_day", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_93is_day, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_92is_day};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_93is_day(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_day = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_day (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_day,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1332, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "is_day") < 0)) __PYX_ERR(0, 1332, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_day = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_day", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1332, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_day", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_day), (&PyInt_Type), 0, "day", 1))) __PYX_ERR(0, 1332, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_92is_day(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_day);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_92is_day(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_day) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_day", 1);

  /* "cytimes/pddatetime.py":1334
 *     def is_day(self, day: int) -> Series[bool]:
 *         """Whether the dates are in the given 'day' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.day.values == day)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_day); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_v_day, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1334, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1332
 * 
 *     # Day -------------------------------------------------------------------------------------
 *     def is_day(self, day: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'day' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.day.values == day)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_day", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1336
 *         return self._arr_to_series(self._dt.dt.day.values == day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_yesterday(self) -> pddt:
 *         """Go to the previous day `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_95to_yesterday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_yesterday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_yesterday", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_yesterday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1336, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_95to_yesterday)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1336, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1336, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1339
 *     def to_yesterday(self) -> pddt:
 *         """Go to the previous day `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(-1)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1340
 *         """Go to the previous day `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(-1)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_DAY);
      __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_DAY; __pyx_t_3 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_neg_1};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1340, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1340, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_dt = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1339
 *     def to_yesterday(self) -> pddt:
 *         """Go to the previous day `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(-1)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1341
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(-1)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_yesterday", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_3) < 0) __PYX_ERR(0, 1341, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_v_err = __pyx_t_1;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1342
 *             dt: Series = self._dt + typeref.OFST_DAY(-1)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1342, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1342, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1341
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(-1)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1339
 *     def to_yesterday(self) -> pddt:
 *         """Go to the previous day `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(-1)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1343
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1343, __pyx_L1_error) }
  __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1336
 *         return self._arr_to_series(self._dt.dt.day.values == day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_yesterday(self) -> pddt:
 *         """Go to the previous day `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_yesterday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_95to_yesterday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_94to_yesterday, "Go to the previous day `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_95to_yesterday = {"to_yesterday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_95to_yesterday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_94to_yesterday};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_95to_yesterday(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_yesterday (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_yesterday", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_yesterday", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_94to_yesterday(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_94to_yesterday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_yesterday", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_yesterday(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_yesterday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1345
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_tomorrow(self) -> pddt:
 *         """Go to the next day `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_97to_tomorrow(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_tomorrow(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_tomorrow", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_tomorrow); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1345, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_97to_tomorrow)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1345, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1345, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1348
 *     def to_tomorrow(self) -> pddt:
 *         """Go to the next day `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(1)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1349
 *         """Go to the next day `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(1)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_DAY);
      __pyx_t_2 = __pyx_v_7cytimes_7typeref_OFST_DAY; __pyx_t_3 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_int_1};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1349, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __pyx_t_2 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1349, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_dt = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1348
 *     def to_tomorrow(self) -> pddt:
 *         """Go to the next day `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(1)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1350
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(1)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_tomorrow", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_3) < 0) __PYX_ERR(0, 1350, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_v_err = __pyx_t_1;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1351
 *             dt: Series = self._dt + typeref.OFST_DAY(1)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1351, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1351, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1350
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(1)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1348
 *     def to_tomorrow(self) -> pddt:
 *         """Go to the next day `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(1)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1352
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1352, __pyx_L1_error) }
  __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1345
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_tomorrow(self) -> pddt:
 *         """Go to the next day `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_tomorrow", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_97to_tomorrow(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_96to_tomorrow, "Go to the next day `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_97to_tomorrow = {"to_tomorrow", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_97to_tomorrow, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_96to_tomorrow};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_97to_tomorrow(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_tomorrow (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_tomorrow", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_tomorrow", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_96to_tomorrow(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_96to_tomorrow(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_tomorrow", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_tomorrow(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_tomorrow", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1354
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_day(self, offset: cython.int) -> pddt:
 *         """Go to the current day (+/-) 'offset' `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_99to_day(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_day(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  char const *__pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_day", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_day); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1354, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_99to_day)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1354, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
        __pyx_t_6 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
            __pyx_t_6 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1354, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1354, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1358
 *         """Go to the current day (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to the current day (+/-) 'offset'
 */
  __pyx_t_7 = (__pyx_v_offset == 0);
  if (__pyx_t_7) {

    /* "cytimes/pddatetime.py":1359
 *         # No 'offset' adjustment
 *         if offset == 0:
 *             return self._new(self._dt, None, None, True)  # exit             # <<<<<<<<<<<<<<
 *         # Go to the current day (+/-) 'offset'
 *         try:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_1 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_1, Py_None, Py_None, Py_True)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1359, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1358
 *         """Go to the current day (+/-) 'offset' `<'pddt'>`."""
 *         # No 'offset' adjustment
 *         if offset == 0:             # <<<<<<<<<<<<<<
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to the current day (+/-) 'offset'
 */
  }

  /* "cytimes/pddatetime.py":1361
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to the current day (+/-) 'offset'
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(offset)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_10);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1362
 *         # Go to the current day (+/-) 'offset'
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(offset)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1362, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_DAY);
      __pyx_t_4 = __pyx_v_7cytimes_7typeref_OFST_DAY; __pyx_t_3 = NULL;
      __pyx_t_6 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
          __pyx_t_6 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_1};
        __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1362, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
      __pyx_t_4 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1362, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_dt = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cytimes/pddatetime.py":1361
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to the current day (+/-) 'offset'
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(offset)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":1363
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(offset)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_6) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_day", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 1363, __pyx_L6_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_v_err = __pyx_t_2;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1364
 *             dt: Series = self._dt + typeref.OFST_DAY(offset)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1364, __pyx_L15_error)
        __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 1364, __pyx_L15_error)
      }

      /* "cytimes/pddatetime.py":1363
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DAY(offset)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L16;
        }
        __pyx_L15_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __pyx_t_6 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18);
          }
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_XGIVEREF(__pyx_t_15);
          __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15);
          __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
          __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_12;
          goto __pyx_L6_except_error;
        }
        __pyx_L16:;
      }
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;

    /* "cytimes/pddatetime.py":1361
 *             return self._new(self._dt, None, None, True)  # exit
 *         # Go to the current day (+/-) 'offset'
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DAY(offset)
 *         except Exception as err:
 */
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    goto __pyx_L1_error;
    __pyx_L5_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    __pyx_L9_try_end:;
  }

  /* "cytimes/pddatetime.py":1365
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     # Time ------------------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1365, __pyx_L1_error) }
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1354
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_day(self, offset: cython.int) -> pddt:
 *         """Go to the current day (+/-) 'offset' `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_day", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_99to_day(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_98to_day, "Go to the current day (+/-) 'offset' `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_99to_day = {"to_day", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_99to_day, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_98to_day};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_99to_day(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_offset;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_day (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_offset)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1354, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_day") < 0)) __PYX_ERR(0, 1354, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_offset = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_offset == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1355, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_day", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1354, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_day", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_98to_day(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_offset);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_98to_day(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_offset) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_day", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_day(__pyx_v_self, __pyx_v_offset, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_day", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1368
 * 
 *     # Time ------------------------------------------------------------------------------------
 *     def is_time_start(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the current time is the
 *         start of time (00:00:00.000000) `<'Series[bool]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_101is_time_start(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_100is_time_start, "Whether the current time is the\n        start of time (00:00:00.000000) `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_101is_time_start = {"is_time_start", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_101is_time_start, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_100is_time_start};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_101is_time_start(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_time_start (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_time_start", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_time_start", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_100is_time_start(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_100is_time_start(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_time_start", 1);

  /* "cytimes/pddatetime.py":1371
 *         """Whether the current time is the
 *         start of time (00:00:00.000000) `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_START)             # <<<<<<<<<<<<<<
 * 
 *     def is_time_end(self) -> Series[bool]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, ((PyObject *)__pyx_v_7cytimes_10cydatetime_TIME_START), Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1368
 * 
 *     # Time ------------------------------------------------------------------------------------
 *     def is_time_start(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the current time is the
 *         start of time (00:00:00.000000) `<'Series[bool]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_time_start", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1373
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_START)
 * 
 *     def is_time_end(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the current time is the
 *         end of time (23:59:59.999999) `<'Series[bool]'>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_103is_time_end(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_102is_time_end, "Whether the current time is the\n        end of time (23:59:59.999999) `<'Series[bool]'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_103is_time_end = {"is_time_end", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_103is_time_end, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_102is_time_end};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_103is_time_end(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_time_end (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("is_time_end", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_time_end", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_102is_time_end(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_102is_time_end(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_time_end", 1);

  /* "cytimes/pddatetime.py":1376
 *         """Whether the current time is the
 *         end of time (23:59:59.999999) `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_END)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, ((PyObject *)__pyx_v_7cytimes_10cydatetime_TIME_END), Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1373
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_START)
 * 
 *     def is_time_end(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the current time is the
 *         end of time (23:59:59.999999) `<'Series[bool]'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.is_time_end", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1378
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_END)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time_start(self) -> pddt:
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_105to_time_start(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_time_start(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_time_start", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_time_start); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1378, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_105to_time_start)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1378, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1378, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1381
 *     def to_time_start(self) -> pddt:
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1382
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1382, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_floor); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1382, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1382, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1381
 *     def to_time_start(self) -> pddt:
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1383
 *         try:
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time_start", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3) < 0) __PYX_ERR(0, 1383, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_v_err = __pyx_t_2;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1384
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1384, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1384, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1383
 *         try:
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1381
 *     def to_time_start(self) -> pddt:
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1385
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1385, __pyx_L1_error) }
  __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1378
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_END)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time_start(self) -> pddt:
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time_start", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_105to_time_start(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_104to_time_start, "Go to the start of time (00:00:00.000000) `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_105to_time_start = {"to_time_start", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_105to_time_start, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_104to_time_start};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_105to_time_start(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_time_start (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_time_start", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_time_start", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_104to_time_start(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_104to_time_start(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_time_start", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_time_start(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time_start", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1387
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time_end(self) -> pddt:
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_107to_time_end(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_time_end(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_time_end", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_time_end); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1387, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_107to_time_end)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1387, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1387, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1390
 *     def to_time_end(self) -> pddt:
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.ceil(
 *                 "D", "infer", "shift_forward"
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1391
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt.dt.ceil(             # <<<<<<<<<<<<<<
 *                 "D", "infer", "shift_forward"
 *             ) - typeref.OFST_MICRO(1)
 */
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1391, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ceil); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1391, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1391, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1393
 *             dt: Series = self._dt.dt.ceil(
 *                 "D", "infer", "shift_forward"
 *             ) - typeref.OFST_MICRO(1)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_OFST_MICRO);
      __pyx_t_3 = __pyx_v_7cytimes_7typeref_OFST_MICRO; __pyx_t_4 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_int_1};
        __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1393, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1393, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_dt = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "cytimes/pddatetime.py":1390
 *     def to_time_end(self) -> pddt:
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.ceil(
 *                 "D", "infer", "shift_forward"
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1394
 *                 "D", "infer", "shift_forward"
 *             ) - typeref.OFST_MICRO(1)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time_end", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 1394, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_v_err = __pyx_t_2;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1395
 *             ) - typeref.OFST_MICRO(1)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1395, __pyx_L14_error)
        __pyx_t_9 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1395, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1394
 *                 "D", "infer", "shift_forward"
 *             ) - typeref.OFST_MICRO(1)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1390
 *     def to_time_end(self) -> pddt:
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.ceil(
 *                 "D", "infer", "shift_forward"
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1396
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1396, __pyx_L1_error) }
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1387
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time_end(self) -> pddt:
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time_end", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_107to_time_end(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_106to_time_end, "Go to the end of time (23:59:59.999999) `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_107to_time_end = {"to_time_end", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_107to_time_end, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_106to_time_end};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_107to_time_end(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_time_end (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("to_time_end", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "to_time_end", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_106to_time_end(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_106to_time_end(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_time_end", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_to_time_end(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time_end", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1398
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_109to_time(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_to_time(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_time *__pyx_optional_args) {
  int __pyx_v_hour = ((int)-1);
  int __pyx_v_minute = ((int)-1);
  int __pyx_v_second = ((int)-1);
  int __pyx_v_millisecond = ((int)-1);
  int __pyx_v_microsecond = ((int)-1);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  long __pyx_t_16;
  long __pyx_t_17;
  Py_ssize_t __pyx_t_18;
  int __pyx_t_19;
  char const *__pyx_t_20;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  PyObject *__pyx_t_25 = NULL;
  PyObject *__pyx_t_26 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_time", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_hour = __pyx_optional_args->hour;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_minute = __pyx_optional_args->minute;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_second = __pyx_optional_args->second;
          if (__pyx_optional_args->__pyx_n > 3) {
            __pyx_v_millisecond = __pyx_optional_args->millisecond;
            if (__pyx_optional_args->__pyx_n > 4) {
              __pyx_v_microsecond = __pyx_optional_args->microsecond;
            }
          }
        }
      }
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_time); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1398, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_109to_time)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_hour); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1398, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_minute); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1398, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_second); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1398, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_millisecond); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1398, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyInt_From_int(__pyx_v_microsecond); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1398, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_8 = __pyx_t_1; __pyx_t_9 = NULL;
        __pyx_t_10 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_8))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_8, function);
            __pyx_t_10 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[6] = {__pyx_t_9, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 5+__pyx_t_10);
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1398, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1398, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1415
 *         """
 *         # Calculate microsecond
 *         microsecond = combine_ms_us(millisecond, microsecond)             # <<<<<<<<<<<<<<
 *         if hour < 0 and minute < 0 and second < 0 and microsecond < 0:
 *             return self._new(self._dt, None, None, True)  # exit: no adjustment
 */
  __pyx_v_microsecond = __pyx_f_7cytimes_7cydelta_combine_ms_us(__pyx_v_millisecond, __pyx_v_microsecond);

  /* "cytimes/pddatetime.py":1416
 *         # Calculate microsecond
 *         microsecond = combine_ms_us(millisecond, microsecond)
 *         if hour < 0 and minute < 0 and second < 0 and microsecond < 0:             # <<<<<<<<<<<<<<
 *             return self._new(self._dt, None, None, True)  # exit: no adjustment
 *         # Go to specific time
 */
  __pyx_t_12 = (__pyx_v_hour < 0);
  if (__pyx_t_12) {
  } else {
    __pyx_t_11 = __pyx_t_12;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_12 = (__pyx_v_minute < 0);
  if (__pyx_t_12) {
  } else {
    __pyx_t_11 = __pyx_t_12;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_12 = (__pyx_v_second < 0);
  if (__pyx_t_12) {
  } else {
    __pyx_t_11 = __pyx_t_12;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_12 = (__pyx_v_microsecond < 0);
  __pyx_t_11 = __pyx_t_12;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_11) {

    /* "cytimes/pddatetime.py":1417
 *         microsecond = combine_ms_us(millisecond, microsecond)
 *         if hour < 0 and minute < 0 and second < 0 and microsecond < 0:
 *             return self._new(self._dt, None, None, True)  # exit: no adjustment             # <<<<<<<<<<<<<<
 *         # Go to specific time
 *         try:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_1 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_1, Py_None, Py_None, Py_True)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1417, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1416
 *         # Calculate microsecond
 *         microsecond = combine_ms_us(millisecond, microsecond)
 *         if hour < 0 and minute < 0 and second < 0 and microsecond < 0:             # <<<<<<<<<<<<<<
 *             return self._new(self._dt, None, None, True)  # exit: no adjustment
 *         # Go to specific time
 */
  }

  /* "cytimes/pddatetime.py":1419
 *             return self._new(self._dt, None, None, True)  # exit: no adjustment
 *         # Go to specific time
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *             # fmt: off
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
    __Pyx_XGOTREF(__pyx_t_13);
    __Pyx_XGOTREF(__pyx_t_14);
    __Pyx_XGOTREF(__pyx_t_15);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1420
 *         # Go to specific time
 *         try:
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")             # <<<<<<<<<<<<<<
 *             # fmt: off
 *             dt += self._arr_to_tdindex(
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1420, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_floor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1420, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1420, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_dt = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1425
 *                 # . hour
 *                 ( min(hour, 23) * cydt.US_HOUR
 *                     if hour >= 0 else             # <<<<<<<<<<<<<<
 *                     self._dt.dt.hour.values * cydt.US_HOUR )
 *                 # . minute
 */
      __pyx_t_11 = (__pyx_v_hour >= 0);
      if (__pyx_t_11) {
        __pyx_t_16 = 23;

        /* "cytimes/pddatetime.py":1424
 *             dt += self._arr_to_tdindex(
 *                 # . hour
 *                 ( min(hour, 23) * cydt.US_HOUR             # <<<<<<<<<<<<<<
 *                     if hour >= 0 else
 *                     self._dt.dt.hour.values * cydt.US_HOUR )
 */
        __pyx_t_10 = __pyx_v_hour;
        __pyx_t_12 = (__pyx_t_16 < __pyx_t_10);
        if (__pyx_t_12) {
          __pyx_t_17 = __pyx_t_16;
        } else {
          __pyx_t_17 = __pyx_t_10;
        }
        __pyx_t_1 = __Pyx_PyInt_From_PY_LONG_LONG((__pyx_t_17 * __pyx_v_7cytimes_10cydatetime_US_HOUR)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1424, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __pyx_t_1;
        __pyx_t_1 = 0;
      } else {

        /* "cytimes/pddatetime.py":1426
 *                 ( min(hour, 23) * cydt.US_HOUR
 *                     if hour >= 0 else
 *                     self._dt.dt.hour.values * cydt.US_HOUR )             # <<<<<<<<<<<<<<
 *                 # . minute
 *                 + ( min(minute, 59) * 60_000_000
 */
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1426, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_hour); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1426, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1426, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_7cytimes_10cydatetime_US_HOUR); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1426, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_7 = PyNumber_Multiply(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1426, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_2 = __pyx_t_7;
        __pyx_t_7 = 0;
      }

      /* "cytimes/pddatetime.py":1429
 *                 # . minute
 *                 + ( min(minute, 59) * 60_000_000
 *                     if minute >= 0 else             # <<<<<<<<<<<<<<
 *                     self._dt.dt.minute.values * 60_000_000 )
 *                 # . second
 */
      __pyx_t_11 = (__pyx_v_minute >= 0);
      if (__pyx_t_11) {
        __pyx_t_17 = 59;

        /* "cytimes/pddatetime.py":1428
 *                     self._dt.dt.hour.values * cydt.US_HOUR )
 *                 # . minute
 *                 + ( min(minute, 59) * 60_000_000             # <<<<<<<<<<<<<<
 *                     if minute >= 0 else
 *                     self._dt.dt.minute.values * 60_000_000 )
 */
        __pyx_t_10 = __pyx_v_minute;
        __pyx_t_12 = (__pyx_t_17 < __pyx_t_10);
        if (__pyx_t_12) {
          __pyx_t_16 = __pyx_t_17;
        } else {
          __pyx_t_16 = __pyx_t_10;
        }
        __pyx_t_8 = __Pyx_PyInt_From_long((__pyx_t_16 * 0x3938700)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1428, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_7 = __pyx_t_8;
        __pyx_t_8 = 0;
      } else {

        /* "cytimes/pddatetime.py":1430
 *                 + ( min(minute, 59) * 60_000_000
 *                     if minute >= 0 else
 *                     self._dt.dt.minute.values * 60_000_000 )             # <<<<<<<<<<<<<<
 *                 # . second
 *                 + ( min(second, 59) * 1_000_000
 */
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1430, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_minute); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1430, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1430, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyInt_MultiplyObjC(__pyx_t_8, __pyx_int_60000000, 0x3938700, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1430, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_7 = __pyx_t_1;
        __pyx_t_1 = 0;
      }

      /* "cytimes/pddatetime.py":1428
 *                     self._dt.dt.hour.values * cydt.US_HOUR )
 *                 # . minute
 *                 + ( min(minute, 59) * 60_000_000             # <<<<<<<<<<<<<<
 *                     if minute >= 0 else
 *                     self._dt.dt.minute.values * 60_000_000 )
 */
      __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1428, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":1433
 *                 # . second
 *                 + ( min(second, 59) * 1_000_000
 *                     if second >= 0 else             # <<<<<<<<<<<<<<
 *                     self._dt.dt.second.values * 1_000_000 )
 *                 # . microsecond
 */
      __pyx_t_11 = (__pyx_v_second >= 0);
      if (__pyx_t_11) {
        __pyx_t_16 = 59;

        /* "cytimes/pddatetime.py":1432
 *                     self._dt.dt.minute.values * 60_000_000 )
 *                 # . second
 *                 + ( min(second, 59) * 1_000_000             # <<<<<<<<<<<<<<
 *                     if second >= 0 else
 *                     self._dt.dt.second.values * 1_000_000 )
 */
        __pyx_t_10 = __pyx_v_second;
        __pyx_t_12 = (__pyx_t_16 < __pyx_t_10);
        if (__pyx_t_12) {
          __pyx_t_17 = __pyx_t_16;
        } else {
          __pyx_t_17 = __pyx_t_10;
        }
        __pyx_t_2 = __Pyx_PyInt_From_long((__pyx_t_17 * 0xF4240)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1432, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __pyx_t_2;
        __pyx_t_2 = 0;
      } else {

        /* "cytimes/pddatetime.py":1434
 *                 + ( min(second, 59) * 1_000_000
 *                     if second >= 0 else
 *                     self._dt.dt.second.values * 1_000_000 )             # <<<<<<<<<<<<<<
 *                 # . microsecond
 *                 + ( FN_NP_FULL(len(self._dt), microsecond)
 */
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1434, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_second); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1434, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_values); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1434, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyInt_MultiplyObjC(__pyx_t_2, __pyx_int_1000000, 0xF4240, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1434, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_7 = __pyx_t_8;
        __pyx_t_8 = 0;
      }

      /* "cytimes/pddatetime.py":1432
 *                     self._dt.dt.minute.values * 60_000_000 )
 *                 # . second
 *                 + ( min(second, 59) * 1_000_000             # <<<<<<<<<<<<<<
 *                     if second >= 0 else
 *                     self._dt.dt.second.values * 1_000_000 )
 */
      __pyx_t_8 = PyNumber_Add(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1432, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":1437
 *                 # . microsecond
 *                 + ( FN_NP_FULL(len(self._dt), microsecond)
 *                     if microsecond >= 0             # <<<<<<<<<<<<<<
 *                     else self._dt.dt.microsecond.values ),
 *                 # . unit
 */
      __pyx_t_11 = (__pyx_v_microsecond >= 0);
      if (__pyx_t_11) {

        /* "cytimes/pddatetime.py":1436
 *                     self._dt.dt.second.values * 1_000_000 )
 *                 # . microsecond
 *                 + ( FN_NP_FULL(len(self._dt), microsecond)             # <<<<<<<<<<<<<<
 *                     if microsecond >= 0
 *                     else self._dt.dt.microsecond.values ),
 */
        __pyx_t_2 = __pyx_v_self->_dt;
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_18 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1436, __pyx_L8_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_18); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1436, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_microsecond); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1436, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_FULL);
        __pyx_t_5 = __pyx_v_7cytimes_10pddatetime_FN_NP_FULL; __pyx_t_4 = NULL;
        __pyx_t_10 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
            __pyx_t_10 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_t_2, __pyx_t_6};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 2+__pyx_t_10);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1436, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        __pyx_t_7 = __pyx_t_1;
        __pyx_t_1 = 0;
      } else {

        /* "cytimes/pddatetime.py":1438
 *                 + ( FN_NP_FULL(len(self._dt), microsecond)
 *                     if microsecond >= 0
 *                     else self._dt.dt.microsecond.values ),             # <<<<<<<<<<<<<<
 *                 # . unit
 *                 "us",
 */
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1438, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_microsecond); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1438, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1438, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_7 = __pyx_t_1;
        __pyx_t_1 = 0;
      }

      /* "cytimes/pddatetime.py":1436
 *                     self._dt.dt.second.values * 1_000_000 )
 *                 # . microsecond
 *                 + ( FN_NP_FULL(len(self._dt), microsecond)             # <<<<<<<<<<<<<<
 *                     if microsecond >= 0
 *                     else self._dt.dt.microsecond.values ),
 */
      __pyx_t_1 = PyNumber_Add(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1436, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cytimes/pddatetime.py":1422
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *             # fmt: off
 *             dt += self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                 # . hour
 *                 ( min(hour, 23) * cydt.US_HOUR
 */
      __pyx_t_7 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_1, __pyx_n_u_us); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1422, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_dt, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1422, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1419
 *             return self._new(self._dt, None, None, True)  # exit: no adjustment
 *         # Go to specific time
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *             # fmt: off
 */
    }
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
    __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
    goto __pyx_L13_try_end;
    __pyx_L8_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cytimes/pddatetime.py":1443
 *             )
 *             # fmt: on
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_10) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(0, 1443, __pyx_L10_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_v_err = __pyx_t_7;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1444
 *             # fmt: on
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1444, __pyx_L19_error)
        __pyx_t_11 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 1444, __pyx_L19_error)
      }

      /* "cytimes/pddatetime.py":1443
 *             )
 *             # fmt: on
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L20;
        }
        __pyx_L19_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0;
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23) < 0)) __Pyx_ErrFetch(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_24);
          __Pyx_XGOTREF(__pyx_t_25);
          __Pyx_XGOTREF(__pyx_t_26);
          __pyx_t_10 = __pyx_lineno; __pyx_t_19 = __pyx_clineno; __pyx_t_20 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_24);
            __Pyx_XGIVEREF(__pyx_t_25);
            __Pyx_XGIVEREF(__pyx_t_26);
            __Pyx_ExceptionReset(__pyx_t_24, __pyx_t_25, __pyx_t_26);
          }
          __Pyx_XGIVEREF(__pyx_t_21);
          __Pyx_XGIVEREF(__pyx_t_22);
          __Pyx_XGIVEREF(__pyx_t_23);
          __Pyx_ErrRestore(__pyx_t_21, __pyx_t_22, __pyx_t_23);
          __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0;
          __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_19; __pyx_filename = __pyx_t_20;
          goto __pyx_L10_except_error;
        }
        __pyx_L20:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L9_exception_handled;
    }
    goto __pyx_L10_except_error;

    /* "cytimes/pddatetime.py":1419
 *             return self._new(self._dt, None, None, True)  # exit: no adjustment
 *         # Go to specific time
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")
 *             # fmt: off
 */
    __pyx_L10_except_error:;
    __Pyx_XGIVEREF(__pyx_t_13);
    __Pyx_XGIVEREF(__pyx_t_14);
    __Pyx_XGIVEREF(__pyx_t_15);
    __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_14, __pyx_t_15);
    goto __pyx_L1_error;
    __pyx_L9_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_13);
    __Pyx_XGIVEREF(__pyx_t_14);
    __Pyx_XGIVEREF(__pyx_t_15);
    __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_14, __pyx_t_15);
    __pyx_L13_try_end:;
  }

  /* "cytimes/pddatetime.py":1445
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     # Timezone --------------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1445, __pyx_L1_error) }
  __pyx_t_8 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_8);
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1398
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_109to_time(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_108to_time, "Go to specific 'hour', 'minute', 'second', 'millisecond',\n        and 'microsecond' of the current times `<'pddt'>`.\n\n        ### Important Warning\n        - Calling this method, returns <'pddt'> where nanosecond values\n          will be truncated to microsecond resolution (lost / reset to `0`).\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_109to_time = {"to_time", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_109to_time, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_108to_time};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_109to_time(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_hour;
  int __pyx_v_minute;
  int __pyx_v_second;
  int __pyx_v_millisecond;
  int __pyx_v_microsecond;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_time (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hour,&__pyx_n_s_minute,&__pyx_n_s_second,&__pyx_n_s_millisecond,&__pyx_n_s_microsecond,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hour);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1398, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_minute);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1398, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_second);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1398, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_millisecond);
          if (value) { values[3] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1398, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_microsecond);
          if (value) { values[4] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1398, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_time") < 0)) __PYX_ERR(0, 1398, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_hour = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_hour == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1401, __pyx_L3_error)
    } else {
      __pyx_v_hour = ((int)-1);
    }
    if (values[1]) {
      __pyx_v_minute = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_minute == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1402, __pyx_L3_error)
    } else {
      __pyx_v_minute = ((int)-1);
    }
    if (values[2]) {
      __pyx_v_second = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_second == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1403, __pyx_L3_error)
    } else {
      __pyx_v_second = ((int)-1);
    }
    if (values[3]) {
      __pyx_v_millisecond = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_millisecond == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1404, __pyx_L3_error)
    } else {
      __pyx_v_millisecond = ((int)-1);
    }
    if (values[4]) {
      __pyx_v_microsecond = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_microsecond == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1405, __pyx_L3_error)
    } else {
      __pyx_v_microsecond = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_time", 0, 0, 5, __pyx_nargs); __PYX_ERR(0, 1398, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_108to_time(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_hour, __pyx_v_minute, __pyx_v_second, __pyx_v_millisecond, __pyx_v_microsecond);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_108to_time(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_hour, int __pyx_v_minute, int __pyx_v_second, int __pyx_v_millisecond, int __pyx_v_microsecond) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_time __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_time", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 5;
  __pyx_t_2.hour = __pyx_v_hour;
  __pyx_t_2.minute = __pyx_v_minute;
  __pyx_t_2.second = __pyx_v_second;
  __pyx_t_2.millisecond = __pyx_v_millisecond;
  __pyx_t_2.microsecond = __pyx_v_microsecond;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->to_time(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.to_time", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1448
 * 
 *     # Timezone --------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def tz_available(self) -> set[str]:
 *         """Access all the available timezone names `<set[str]>`."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12tz_available_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_12tz_available_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_12tz_available___get__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_12tz_available___get__(CYTHON_UNUSED struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 1);

  /* "cytimes/pddatetime.py":1451
 *     def tz_available(self) -> set[str]:
 *         """Access all the available timezone names `<set[str]>`."""
 *         return TIMEZONE_AVAILABLE             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_7cytimes_10pydatetime_TIMEZONE_AVAILABLE);
  __pyx_r = __pyx_v_7cytimes_10pydatetime_TIMEZONE_AVAILABLE;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1448
 * 
 *     # Timezone --------------------------------------------------------------------------------
 *     @property             # <<<<<<<<<<<<<<
 *     def tz_available(self) -> set[str]:
 *         """Access all the available timezone names `<set[str]>`."""
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1453
 *         return TIMEZONE_AVAILABLE
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_localize(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_111tz_localize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_tz_localize(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_localize *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":1456
 *     def tz_localize(
 *         self,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 *         nonexistent: Literal["shift_forward", "shift_backward", "raise"] = "raise",
 */
  PyObject *__pyx_v_tz = ((PyObject *)Py_None);
  PyObject *__pyx_v_ambiguous = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_nonexistent = ((PyObject *)__pyx_n_u_raise);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("tz_localize", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_tz = __pyx_optional_args->tz;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_ambiguous = __pyx_optional_args->ambiguous;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_nonexistent = __pyx_optional_args->nonexistent;
        }
      }
    }
  }

  /* "cytimes/pddatetime.py":1453
 *         return TIMEZONE_AVAILABLE
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_localize(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1453, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_111tz_localize)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1453, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1453, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1490
 *             - * Notice: `'NaT'` is not supported.
 *         """
 *         return self._new(             # <<<<<<<<<<<<<<
 *             self._c_tz_localize(self._dt, tz, ambiguous, nonexistent), None, None, False
 *         )
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);

  /* "cytimes/pddatetime.py":1491
 *         """
 *         return self._new(
 *             self._c_tz_localize(self._dt, tz, ambiguous, nonexistent), None, None, False             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__c_tz_localize(__pyx_v_self, __pyx_t_1, __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":1490
 *             - * Notice: `'NaT'` is not supported.
 *         """
 *         return self._new(             # <<<<<<<<<<<<<<
 *             self._c_tz_localize(self._dt, tz, ambiguous, nonexistent), None, None, False
 *         )
 */
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_2, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1453
 *         return TIMEZONE_AVAILABLE
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_localize(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_localize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_111tz_localize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_110tz_localize, "Localize to a specific 'tz' timezone `<'pddt'>`.\n\n        Equivalent to `Series.dt.tz_localize(tz)`.\n\n        :param tz: `<'datetime.tzinfo'>`/`<str (timezone name)>`/`None (remove timezone)`. Defaults to `None`.\n            - `<'str'>`: The timezone name to localize to.\n            - `<'datetime.tzinfo'>`: The timezone to localize to.\n            - `None`: Remove timezone awareness.\n\n        :param ambiguous: `<'bool'>`/`<'Series[bool]'>`/`'raise'`/`'infer'`. Defaults to `'raise'`.\n            When clocks moved backward due to DST, ambiguous times may arise.\n            For example in Central European Time (UTC+01), when going from 03:00\n            DST to 02:00 non-DST, 02:30:00 local time occurs both at 00:30:00 UTC\n            and at 01:30:00 UTC. In such a situation, the ambiguous parameter\n            dictates how ambiguous times should be handled.\n            - `<'bool'>`: Marks all times as DST time (True) and non-DST time (False).\n            - `<'Series[bool]'>`: Marks specific times (matching index) as DST time (True)\n               and non-DST time (False).\n            - `'raise'`: Raises an `InvalidTimezoneError` if there are ambiguous times.\n            - `'infer'`: Attempt to infer fall dst-transition hours based on order.\n            - * Notice: `'NaT'` is not supported.\n\n        :param nonexistent: `'shift_forward'`/`'shift_backward'`/`'raise'`. Defaults to `'raise'`.\n            A nonexistent time does not exist in a particular timezone where clocks moved\n            forward due to DST.\n            - `'shift_forward'`: Shifts nonexistent times forward to the closest existing time.\n            - `'shift_backward'`: Shifts nonexistent times backward to the closest existing time.\n            - `'raise'`: Raises an `InvalidTimezoneError` if there are nonexistent times.\n            - * Notice: `'NaT'` is not supported.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_111tz_localize = {"tz_localize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_111tz_localize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_110tz_localize};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_111tz_localize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tz = 0;
  PyObject *__pyx_v_ambiguous = 0;
  PyObject *__pyx_v_nonexistent = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("tz_localize (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tz,&__pyx_n_s_ambiguous,&__pyx_n_s_nonexistent,0};

    /* "cytimes/pddatetime.py":1456
 *     def tz_localize(
 *         self,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 *         nonexistent: Literal["shift_forward", "shift_backward", "raise"] = "raise",
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_tz);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1453, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ambiguous);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1453, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nonexistent);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1453, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "tz_localize") < 0)) __PYX_ERR(0, 1453, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_tz = values[0];
    __pyx_v_ambiguous = values[1];
    __pyx_v_nonexistent = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("tz_localize", 0, 0, 3, __pyx_nargs); __PYX_ERR(0, 1453, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_localize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_110tz_localize(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent);

  /* "cytimes/pddatetime.py":1453
 *         return TIMEZONE_AVAILABLE
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_localize(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_110tz_localize(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_localize __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("tz_localize", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 3;
  __pyx_t_2.tz = __pyx_v_tz;
  __pyx_t_2.ambiguous = __pyx_v_ambiguous;
  __pyx_t_2.nonexistent = __pyx_v_nonexistent;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->tz_localize(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_localize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1494
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_convert(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_113tz_convert(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_tz_convert(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_convert *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":1497
 *     def tz_convert(
 *         self,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 *         nonexistent: Literal["shift_forward", "shift_backward", "raise"] = "raise",
 */
  PyObject *__pyx_v_tz = ((PyObject *)Py_None);
  PyObject *__pyx_v_ambiguous = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_nonexistent = ((PyObject *)__pyx_n_u_raise);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("tz_convert", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_tz = __pyx_optional_args->tz;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_ambiguous = __pyx_optional_args->ambiguous;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_nonexistent = __pyx_optional_args->nonexistent;
        }
      }
    }
  }

  /* "cytimes/pddatetime.py":1494
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_convert(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tz_convert); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1494, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_113tz_convert)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1494, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1494, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1516
 *         :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.
 *         """
 *         return self._new(             # <<<<<<<<<<<<<<
 *             self._c_tz_convert(self._dt, tz, ambiguous, nonexistent), None, None, False
 *         )
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);

  /* "cytimes/pddatetime.py":1517
 *         """
 *         return self._new(
 *             self._c_tz_convert(self._dt, tz, ambiguous, nonexistent), None, None, False             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__c_tz_convert(__pyx_v_self, __pyx_t_1, __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":1516
 *         :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.
 *         """
 *         return self._new(             # <<<<<<<<<<<<<<
 *             self._c_tz_convert(self._dt, tz, ambiguous, nonexistent), None, None, False
 *         )
 */
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_2, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1494
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_convert(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_convert", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_113tz_convert(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_112tz_convert, "Convert to a specific 'tz' timezone `<'pddt'>`.\n\n        Similar to `Series.dt.tz_convert(tz)`, but behave more like\n        `datetime.astimezone(tz)`. The main differences occurs when\n        handling timezone-naive Series, where `pandas.tz_convert` will\n        raise an error, while this method will first localize to the\n        system's local timezone and then convert to the target timezone.\n\n        :param tz: `<'datetime.tzinfo'>`/`<str (timezone name)>`/`None (local timezone)`. Defaults to `None`.\n            - `<'str'>`: The timezone name to convert to.\n            - `<'datetime.tzinfo'>`: The timezone to convert to.\n            - `None`: Convert to system's local timezone.\n\n        :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_113tz_convert = {"tz_convert", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_113tz_convert, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_112tz_convert};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_113tz_convert(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tz = 0;
  PyObject *__pyx_v_ambiguous = 0;
  PyObject *__pyx_v_nonexistent = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("tz_convert (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tz,&__pyx_n_s_ambiguous,&__pyx_n_s_nonexistent,0};

    /* "cytimes/pddatetime.py":1497
 *     def tz_convert(
 *         self,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 *         nonexistent: Literal["shift_forward", "shift_backward", "raise"] = "raise",
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_tz);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1494, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ambiguous);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1494, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nonexistent);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1494, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "tz_convert") < 0)) __PYX_ERR(0, 1494, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_tz = values[0];
    __pyx_v_ambiguous = values[1];
    __pyx_v_nonexistent = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("tz_convert", 0, 0, 3, __pyx_nargs); __PYX_ERR(0, 1494, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_convert", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_112tz_convert(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent);

  /* "cytimes/pddatetime.py":1494
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_convert(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_112tz_convert(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_convert __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("tz_convert", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 3;
  __pyx_t_2.tz = __pyx_v_tz;
  __pyx_t_2.ambiguous = __pyx_v_ambiguous;
  __pyx_t_2.nonexistent = __pyx_v_nonexistent;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->tz_convert(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_convert", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1520
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_switch(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_115tz_switch(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_tz_switch(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_targ_tz, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_switch *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":1524
 *         self,
 *         targ_tz: str | datetime.tzinfo | None,
 *         base_tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         naive: bool = False,
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 */
  PyObject *__pyx_v_base_tz = ((PyObject *)Py_None);

  /* "cytimes/pddatetime.py":1525
 *         targ_tz: str | datetime.tzinfo | None,
 *         base_tz: str | datetime.tzinfo | None = None,
 *         naive: bool = False,             # <<<<<<<<<<<<<<
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 *         nonexistent: Literal["shift_forward", "shift_backward", "raise"] = "raise",
 */
  PyObject *__pyx_v_naive = ((PyObject *)Py_False);
  PyObject *__pyx_v_ambiguous = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_nonexistent = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_curr_tz = NULL;
  PyObject *__pyx_v_dt = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_UCS4 __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("tz_switch", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_base_tz = __pyx_optional_args->base_tz;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_naive = __pyx_optional_args->naive;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_ambiguous = __pyx_optional_args->ambiguous;
          if (__pyx_optional_args->__pyx_n > 3) {
            __pyx_v_nonexistent = __pyx_optional_args->nonexistent;
          }
        }
      }
    }
  }

  /* "cytimes/pddatetime.py":1520
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_switch(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tz_switch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1520, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_115tz_switch)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[6] = {__pyx_t_4, __pyx_v_targ_tz, __pyx_v_base_tz, __pyx_v_naive, __pyx_v_ambiguous, __pyx_v_nonexistent};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 5+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1520, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1520, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1546
 *         """
 *         # Pddt is timezone-aware
 *         curr_tz = self._dt.dt.tz             # <<<<<<<<<<<<<<
 *         if curr_tz is not None:
 *             # . current => target timezone
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_curr_tz = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":1547
 *         # Pddt is timezone-aware
 *         curr_tz = self._dt.dt.tz
 *         if curr_tz is not None:             # <<<<<<<<<<<<<<
 *             # . current => target timezone
 *             dt: Series = self._c_tz_convert(self._dt, targ_tz, ambiguous, nonexistent)
 */
  __pyx_t_6 = (__pyx_v_curr_tz != Py_None);
  if (__pyx_t_6) {

    /* "cytimes/pddatetime.py":1549
 *         if curr_tz is not None:
 *             # . current => target timezone
 *             dt: Series = self._c_tz_convert(self._dt, targ_tz, ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *             if naive:
 *                 dt = dt.dt.tz_localize(None)
 */
    __pyx_t_2 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__c_tz_convert(__pyx_v_self, __pyx_t_2, __pyx_v_targ_tz, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_dt = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":1550
 *             # . current => target timezone
 *             dt: Series = self._c_tz_convert(self._dt, targ_tz, ambiguous, nonexistent)
 *             if naive:             # <<<<<<<<<<<<<<
 *                 dt = dt.dt.tz_localize(None)
 *             return self._new(dt, None, None, False)
 */
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_naive); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1550, __pyx_L1_error)
    if (__pyx_t_6) {

      /* "cytimes/pddatetime.py":1551
 *             dt: Series = self._c_tz_convert(self._dt, targ_tz, ambiguous, nonexistent)
 *             if naive:
 *                 dt = dt.dt.tz_localize(None)             # <<<<<<<<<<<<<<
 *             return self._new(dt, None, None, False)
 *         # Pddt is timezone-naive
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1551, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1551, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, Py_None};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1551, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1550
 *             # . current => target timezone
 *             dt: Series = self._c_tz_convert(self._dt, targ_tz, ambiguous, nonexistent)
 *             if naive:             # <<<<<<<<<<<<<<
 *                 dt = dt.dt.tz_localize(None)
 *             return self._new(dt, None, None, False)
 */
    }

    /* "cytimes/pddatetime.py":1552
 *             if naive:
 *                 dt = dt.dt.tz_localize(None)
 *             return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 *         # Pddt is timezone-naive
 *         if base_tz is not None:
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1547
 *         # Pddt is timezone-aware
 *         curr_tz = self._dt.dt.tz
 *         if curr_tz is not None:             # <<<<<<<<<<<<<<
 *             # . current => target timezone
 *             dt: Series = self._c_tz_convert(self._dt, targ_tz, ambiguous, nonexistent)
 */
  }

  /* "cytimes/pddatetime.py":1554
 *             return self._new(dt, None, None, False)
 *         # Pddt is timezone-naive
 *         if base_tz is not None:             # <<<<<<<<<<<<<<
 *             # . localize to base & base => target
 *             dt: Series = self._c_tz_localize(self._dt, base_tz, ambiguous, nonexistent)
 */
  __pyx_t_6 = (__pyx_v_base_tz != Py_None);
  if (__pyx_t_6) {

    /* "cytimes/pddatetime.py":1556
 *         if base_tz is not None:
 *             # . localize to base & base => target
 *             dt: Series = self._c_tz_localize(self._dt, base_tz, ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *             dt = self._c_tz_convert(dt, targ_tz, ambiguous, nonexistent)
 *             if naive:
 */
    __pyx_t_1 = __pyx_v_self->_dt;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = __pyx_f_7cytimes_10pddatetime_4pddt__c_tz_localize(__pyx_v_self, __pyx_t_1, __pyx_v_base_tz, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_dt = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cytimes/pddatetime.py":1557
 *             # . localize to base & base => target
 *             dt: Series = self._c_tz_localize(self._dt, base_tz, ambiguous, nonexistent)
 *             dt = self._c_tz_convert(dt, targ_tz, ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *             if naive:
 *                 dt = dt.dt.tz_localize(None)
 */
    __pyx_t_3 = __pyx_f_7cytimes_10pddatetime_4pddt__c_tz_convert(__pyx_v_self, __pyx_v_dt, __pyx_v_targ_tz, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1557, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cytimes/pddatetime.py":1558
 *             dt: Series = self._c_tz_localize(self._dt, base_tz, ambiguous, nonexistent)
 *             dt = self._c_tz_convert(dt, targ_tz, ambiguous, nonexistent)
 *             if naive:             # <<<<<<<<<<<<<<
 *                 dt = dt.dt.tz_localize(None)
 *             return self._new(dt, None, None, False)
 */
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_naive); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1558, __pyx_L1_error)
    if (__pyx_t_6) {

      /* "cytimes/pddatetime.py":1559
 *             dt = self._c_tz_convert(dt, targ_tz, ambiguous, nonexistent)
 *             if naive:
 *                 dt = dt.dt.tz_localize(None)             # <<<<<<<<<<<<<<
 *             return self._new(dt, None, None, False)
 *         # Invalid
 */
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1559, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1559, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_1)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_1);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, Py_None};
        __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1559, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "cytimes/pddatetime.py":1558
 *             dt: Series = self._c_tz_localize(self._dt, base_tz, ambiguous, nonexistent)
 *             dt = self._c_tz_convert(dt, targ_tz, ambiguous, nonexistent)
 *             if naive:             # <<<<<<<<<<<<<<
 *                 dt = dt.dt.tz_localize(None)
 *             return self._new(dt, None, None, False)
 */
    }

    /* "cytimes/pddatetime.py":1560
 *             if naive:
 *                 dt = dt.dt.tz_localize(None)
 *             return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 *         # Invalid
 *         raise errors.InvalidTimezoneError(
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1560, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_3);
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1554
 *             return self._new(dt, None, None, False)
 *         # Pddt is timezone-naive
 *         if base_tz is not None:             # <<<<<<<<<<<<<<
 *             # . localize to base & base => target
 *             dt: Series = self._c_tz_localize(self._dt, base_tz, ambiguous, nonexistent)
 */
  }

  /* "cytimes/pddatetime.py":1562
 *             return self._new(dt, None, None, False)
 *         # Invalid
 *         raise errors.InvalidTimezoneError(             # <<<<<<<<<<<<<<
 *             "<'%s'>\nCannot switch timezone-naive '<'pddt'>' without "
 *             "a valid 'base_tz': %r." % (self.__class__.__name__, base_tz)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_errors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_InvalidTimezoneError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":1563
 *         # Invalid
 *         raise errors.InvalidTimezoneError(
 *             "<'%s'>\nCannot switch timezone-naive '<'pddt'>' without "             # <<<<<<<<<<<<<<
 *             "a valid 'base_tz': %r." % (self.__class__.__name__, base_tz)
 *         )
 */
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = 0;
  __pyx_t_8 = 127;
  __Pyx_INCREF(__pyx_kp_u__17);
  __pyx_t_7 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__17);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u__17);

  /* "cytimes/pddatetime.py":1564
 *         raise errors.InvalidTimezoneError(
 *             "<'%s'>\nCannot switch timezone-naive '<'pddt'>' without "
 *             "a valid 'base_tz': %r." % (self.__class__.__name__, base_tz)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_9), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_8;
  __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u_Cannot_switch_timezone_naive_pd);
  __pyx_t_7 += 70;
  __Pyx_GIVEREF(__pyx_kp_u_Cannot_switch_timezone_naive_pd);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_kp_u_Cannot_switch_timezone_naive_pd);
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_base_tz), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_8;
  __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__8);
  __pyx_t_7 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__8);
  PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_kp_u__8);

  /* "cytimes/pddatetime.py":1563
 *         # Invalid
 *         raise errors.InvalidTimezoneError(
 *             "<'%s'>\nCannot switch timezone-naive '<'pddt'>' without "             # <<<<<<<<<<<<<<
 *             "a valid 'base_tz': %r." % (self.__class__.__name__, base_tz)
 *         )
 */
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_2, 5, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_5 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_5 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_Raise(__pyx_t_3, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __PYX_ERR(0, 1562, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1520
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_switch(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_switch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_curr_tz);
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_115tz_switch(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_114tz_switch, "Switch to 'targ_tz' timezone from 'base_tz' timezone `<'pddt'>`.\n\n        :param targ_tz `<'str/tzinfo/None'>`: The target timezone to convert.\n        :param base_tz `<'str/tzinfo/None'>`: The base timezone to localize. Defaults to `None`.\n        :param naive `<'bool'>`: Whether to return as timezone-naive. Defaults to `False`.\n        :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.\n        :return `<'pddt'>`: pddt after switch of timezone.\n\n        ### Explaination\n        - If pddt is timezone-aware, 'base_tz' will be ignored, and only performs\n          the convertion to the 'targ_tz' (Series.dt.tz_convert(targ_tz)).\n\n        - If pddt is timezone-naive, first will localize to the given 'base_tz',\n          then convert to the 'targ_tz'. In this case, the 'base_tz' must be\n          specified, else it is ambiguous on how to convert to the target timezone.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_115tz_switch = {"tz_switch", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_115tz_switch, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_114tz_switch};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_115tz_switch(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_targ_tz = 0;
  PyObject *__pyx_v_base_tz = 0;
  PyObject *__pyx_v_naive = 0;
  PyObject *__pyx_v_ambiguous = 0;
  PyObject *__pyx_v_nonexistent = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("tz_switch (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_targ_tz,&__pyx_n_s_base_tz,&__pyx_n_s_naive,&__pyx_n_s_ambiguous,&__pyx_n_s_nonexistent,0};

    /* "cytimes/pddatetime.py":1524
 *         self,
 *         targ_tz: str | datetime.tzinfo | None,
 *         base_tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         naive: bool = False,
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 */
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));

    /* "cytimes/pddatetime.py":1525
 *         targ_tz: str | datetime.tzinfo | None,
 *         base_tz: str | datetime.tzinfo | None = None,
 *         naive: bool = False,             # <<<<<<<<<<<<<<
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 *         nonexistent: Literal["shift_forward", "shift_backward", "raise"] = "raise",
 */
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_False));
    values[3] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    values[4] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_targ_tz)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1520, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_base_tz);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1520, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_naive);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1520, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ambiguous);
          if (value) { values[3] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1520, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nonexistent);
          if (value) { values[4] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1520, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "tz_switch") < 0)) __PYX_ERR(0, 1520, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_targ_tz = values[0];
    __pyx_v_base_tz = values[1];
    __pyx_v_naive = values[2];
    __pyx_v_ambiguous = values[3];
    __pyx_v_nonexistent = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("tz_switch", 0, 1, 5, __pyx_nargs); __PYX_ERR(0, 1520, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_switch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_114tz_switch(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_targ_tz, __pyx_v_base_tz, __pyx_v_naive, __pyx_v_ambiguous, __pyx_v_nonexistent);

  /* "cytimes/pddatetime.py":1520
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_switch(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_114tz_switch(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_targ_tz, PyObject *__pyx_v_base_tz, PyObject *__pyx_v_naive, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_switch __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("tz_switch", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 4;
  __pyx_t_2.base_tz = __pyx_v_base_tz;
  __pyx_t_2.naive = __pyx_v_naive;
  __pyx_t_2.ambiguous = __pyx_v_ambiguous;
  __pyx_t_2.nonexistent = __pyx_v_nonexistent;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->tz_switch(__pyx_v_self, __pyx_v_targ_tz, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.tz_switch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1567
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def astimezone(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_117astimezone(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_astimezone(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_astimezone *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":1570
 *     def astimezone(
 *         self,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 *         nonexistent: Literal["shift_forward", "shift_backward", "raise"] = "raise",
 */
  PyObject *__pyx_v_tz = ((PyObject *)Py_None);
  PyObject *__pyx_v_ambiguous = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_nonexistent = ((PyObject *)__pyx_n_u_raise);
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("astimezone", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_tz = __pyx_optional_args->tz;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_ambiguous = __pyx_optional_args->ambiguous;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_nonexistent = __pyx_optional_args->nonexistent;
        }
      }
    }
  }

  /* "cytimes/pddatetime.py":1567
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def astimezone(
 *         self,
 */
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_astimezone); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1567, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_117astimezone)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1567, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1567, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1585
 *         :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.
 *         """
 *         return self._new(             # <<<<<<<<<<<<<<
 *             self._c_tz_convert(self._dt, tz, ambiguous, nonexistent), None, None, False
 *         )
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);

  /* "cytimes/pddatetime.py":1586
 *         """
 *         return self._new(
 *             self._c_tz_convert(self._dt, tz, ambiguous, nonexistent), None, None, False             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__c_tz_convert(__pyx_v_self, __pyx_t_1, __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":1585
 *         :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.
 *         """
 *         return self._new(             # <<<<<<<<<<<<<<
 *             self._c_tz_convert(self._dt, tz, ambiguous, nonexistent), None, None, False
 *         )
 */
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_2, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1567
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def astimezone(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.astimezone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_117astimezone(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_116astimezone, "Convert to a specific 'tz' timezone `<'pddt'>`.\n\n        Alias of `pddt.tz_convert()`.\n\n        :param tz: `<'datetime.tzinfo'>`/`<str (timezone name)>`/`None (local timezone)`. Defaults to `None`.\n            - `<'str'>`: The timezone name to convert to.\n            - `<'datetime.tzinfo'>`: The timezone to convert to.\n            - `None`: Convert to system's local timezone.\n\n        :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_117astimezone = {"astimezone", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_117astimezone, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_116astimezone};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_117astimezone(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tz = 0;
  PyObject *__pyx_v_ambiguous = 0;
  PyObject *__pyx_v_nonexistent = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("astimezone (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tz,&__pyx_n_s_ambiguous,&__pyx_n_s_nonexistent,0};

    /* "cytimes/pddatetime.py":1570
 *     def astimezone(
 *         self,
 *         tz: str | datetime.tzinfo | None = None,             # <<<<<<<<<<<<<<
 *         ambiguous: bool | Series[bool] | Literal["raise", "infer"] = "raise",
 *         nonexistent: Literal["shift_forward", "shift_backward", "raise"] = "raise",
 */
    values[0] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)Py_None));
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_tz);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1567, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ambiguous);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1567, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nonexistent);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1567, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "astimezone") < 0)) __PYX_ERR(0, 1567, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_tz = values[0];
    __pyx_v_ambiguous = values[1];
    __pyx_v_nonexistent = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("astimezone", 0, 0, 3, __pyx_nargs); __PYX_ERR(0, 1567, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.astimezone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_116astimezone(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent);

  /* "cytimes/pddatetime.py":1567
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def astimezone(
 *         self,
 */

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_116astimezone(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_astimezone __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("astimezone", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 3;
  __pyx_t_2.tz = __pyx_v_tz;
  __pyx_t_2.ambiguous = __pyx_v_ambiguous;
  __pyx_t_2.nonexistent = __pyx_v_nonexistent;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->astimezone(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.astimezone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1590
 * 
 *     # Frequency -------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_round(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_119freq_round(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_freq_round(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_round *__pyx_optional_args) {
  PyObject *__pyx_v_ambiguous = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_nonexistent = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("freq_round", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_ambiguous = __pyx_optional_args->ambiguous;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_nonexistent = __pyx_optional_args->nonexistent;
      }
    }
  }
  __Pyx_INCREF(__pyx_v_freq);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_freq_round); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1590, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_119freq_round)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1590, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1590, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1610
 *         :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.
 *         """
 *         self._validate_amb_nonex(ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         freq = self._parse_frequency(freq)
 *         try:
 */
  __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__validate_amb_nonex(__pyx_v_self, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1610, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1611
 *         """
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)             # <<<<<<<<<<<<<<
 *         try:
 *             dt: Series = self._dt.dt.round(freq, ambiguous, nonexistent)
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_frequency(__pyx_v_self, __pyx_v_freq); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_freq, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":1612
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.round(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1613
 *         freq = self._parse_frequency(freq)
 *         try:
 *             dt: Series = self._dt.dt.round(freq, ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1613, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_round); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1613, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1613, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1612
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.round(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1614
 *         try:
 *             dt: Series = self._dt.dt.round(freq, ambiguous, nonexistent)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_round", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 1614, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_v_err = __pyx_t_3;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1615
 *             dt: Series = self._dt.dt.round(freq, ambiguous, nonexistent)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1615, __pyx_L14_error)
        __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1615, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1614
 *         try:
 *             dt: Series = self._dt.dt.round(freq, ambiguous, nonexistent)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1612
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.round(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1616
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1616, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1590
 * 
 *     # Frequency -------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_round(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_round", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_freq);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_119freq_round(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_118freq_round, "Perform round operation to specified freqency `<'pddt'>`.\n\n        :param freq: `<'str'>` frequency to round to:\n            - 'D': Day\n            - 'h': Hour\n            - 'm': Minute\n            - 's': Second\n            - 'ms': Millisecond\n            - 'us': Microsecond\n            - 'ns': Nanosecond\n\n        :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_119freq_round = {"freq_round", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_119freq_round, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_118freq_round};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_119freq_round(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_freq = 0;
  PyObject *__pyx_v_ambiguous = 0;
  PyObject *__pyx_v_nonexistent = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("freq_round (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_freq,&__pyx_n_s_ambiguous,&__pyx_n_s_nonexistent,0};
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_freq)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1590, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ambiguous);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1590, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nonexistent);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1590, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "freq_round") < 0)) __PYX_ERR(0, 1590, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_freq = values[0];
    __pyx_v_ambiguous = values[1];
    __pyx_v_nonexistent = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("freq_round", 0, 1, 3, __pyx_nargs); __PYX_ERR(0, 1590, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_round", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_118freq_round(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_118freq_round(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_round __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("freq_round", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.ambiguous = __pyx_v_ambiguous;
  __pyx_t_2.nonexistent = __pyx_v_nonexistent;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->freq_round(__pyx_v_self, __pyx_v_freq, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_round", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1618
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_ceil(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_121freq_ceil(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_freq_ceil(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_ceil *__pyx_optional_args) {
  PyObject *__pyx_v_ambiguous = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_nonexistent = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("freq_ceil", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_ambiguous = __pyx_optional_args->ambiguous;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_nonexistent = __pyx_optional_args->nonexistent;
      }
    }
  }
  __Pyx_INCREF(__pyx_v_freq);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_freq_ceil); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1618, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_121freq_ceil)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1618, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1618, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1638
 *         :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.
 *         """
 *         self._validate_amb_nonex(ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         freq = self._parse_frequency(freq)
 *         try:
 */
  __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__validate_amb_nonex(__pyx_v_self, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1638, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1639
 *         """
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)             # <<<<<<<<<<<<<<
 *         try:
 *             dt: Series = self._dt.dt.ceil(freq, ambiguous, nonexistent)
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_frequency(__pyx_v_self, __pyx_v_freq); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_freq, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":1640
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.ceil(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1641
 *         freq = self._parse_frequency(freq)
 *         try:
 *             dt: Series = self._dt.dt.ceil(freq, ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1641, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ceil); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1641, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1641, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1640
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.ceil(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1642
 *         try:
 *             dt: Series = self._dt.dt.ceil(freq, ambiguous, nonexistent)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_ceil", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 1642, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_v_err = __pyx_t_3;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1643
 *             dt: Series = self._dt.dt.ceil(freq, ambiguous, nonexistent)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1643, __pyx_L14_error)
        __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1643, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1642
 *         try:
 *             dt: Series = self._dt.dt.ceil(freq, ambiguous, nonexistent)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1640
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.ceil(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1644
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1644, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1618
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_ceil(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_ceil", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_freq);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_121freq_ceil(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_120freq_ceil, "Perform ceil operation to specified freqency `<'pddt'>`.\n\n        :param freq: `<'str'>` frequency to round to:\n            - 'D': Day\n            - 'h': Hour\n            - 'm': Minute\n            - 's': Second\n            - 'ms': Millisecond\n            - 'us': Microsecond\n            - 'ns': Nanosecond\n\n        :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_121freq_ceil = {"freq_ceil", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_121freq_ceil, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_120freq_ceil};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_121freq_ceil(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_freq = 0;
  PyObject *__pyx_v_ambiguous = 0;
  PyObject *__pyx_v_nonexistent = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("freq_ceil (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_freq,&__pyx_n_s_ambiguous,&__pyx_n_s_nonexistent,0};
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_freq)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1618, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ambiguous);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1618, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nonexistent);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1618, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "freq_ceil") < 0)) __PYX_ERR(0, 1618, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_freq = values[0];
    __pyx_v_ambiguous = values[1];
    __pyx_v_nonexistent = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("freq_ceil", 0, 1, 3, __pyx_nargs); __PYX_ERR(0, 1618, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_ceil", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_120freq_ceil(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_120freq_ceil(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_ceil __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("freq_ceil", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.ambiguous = __pyx_v_ambiguous;
  __pyx_t_2.nonexistent = __pyx_v_nonexistent;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->freq_ceil(__pyx_v_self, __pyx_v_freq, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_ceil", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1646
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_floor(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_123freq_floor(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_freq_floor(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_floor *__pyx_optional_args) {
  PyObject *__pyx_v_ambiguous = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_nonexistent = ((PyObject *)__pyx_n_u_raise);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("freq_floor", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_ambiguous = __pyx_optional_args->ambiguous;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_nonexistent = __pyx_optional_args->nonexistent;
      }
    }
  }
  __Pyx_INCREF(__pyx_v_freq);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_freq_floor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_123freq_floor)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1646, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1646, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1666
 *         :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.
 *         """
 *         self._validate_amb_nonex(ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         freq = self._parse_frequency(freq)
 *         try:
 */
  __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__validate_amb_nonex(__pyx_v_self, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1666, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1667
 *         """
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)             # <<<<<<<<<<<<<<
 *         try:
 *             dt: Series = self._dt.dt.floor(freq, ambiguous, nonexistent)
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_frequency(__pyx_v_self, __pyx_v_freq); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_freq, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":1668
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1669
 *         freq = self._parse_frequency(freq)
 *         try:
 *             dt: Series = self._dt.dt.floor(freq, ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1669, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_floor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1669, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = NULL;
      __pyx_t_5 = 0;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_5 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1669, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1668
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1670
 *         try:
 *             dt: Series = self._dt.dt.floor(freq, ambiguous, nonexistent)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_floor", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 1670, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_v_err = __pyx_t_3;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1671
 *             dt: Series = self._dt.dt.floor(freq, ambiguous, nonexistent)
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1671, __pyx_L14_error)
        __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1671, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1670
 *         try:
 *             dt: Series = self._dt.dt.floor(freq, ambiguous, nonexistent)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1668
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         freq = self._parse_frequency(freq)
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt.dt.floor(freq, ambiguous, nonexistent)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1672
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     # Delta -----------------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1672, __pyx_L1_error) }
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1646
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_floor(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_floor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_freq);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_123freq_floor(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_122freq_floor, "Perform floor operation to specified freqency `<'pddt'>`.\n\n        :param freq: `<'str'>` frequency to round to:\n            - 'D': Day\n            - 'h': Hour\n            - 'm': Minute\n            - 's': Second\n            - 'ms': Millisecond\n            - 'us': Microsecond\n            - 'ns': Nanosecond\n\n        :param ambiguous, nonexistent: Please refer to `tz_localize` method for details.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_123freq_floor = {"freq_floor", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_123freq_floor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_122freq_floor};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_123freq_floor(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_freq = 0;
  PyObject *__pyx_v_ambiguous = 0;
  PyObject *__pyx_v_nonexistent = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("freq_floor (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_freq,&__pyx_n_s_ambiguous,&__pyx_n_s_nonexistent,0};
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_raise));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_freq)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1646, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ambiguous);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1646, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nonexistent);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1646, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "freq_floor") < 0)) __PYX_ERR(0, 1646, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_freq = values[0];
    __pyx_v_ambiguous = values[1];
    __pyx_v_nonexistent = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("freq_floor", 0, 1, 3, __pyx_nargs); __PYX_ERR(0, 1646, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_floor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_122freq_floor(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_freq, __pyx_v_ambiguous, __pyx_v_nonexistent);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_122freq_floor(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_floor __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("freq_floor", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.ambiguous = __pyx_v_ambiguous;
  __pyx_t_2.nonexistent = __pyx_v_nonexistent;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->freq_floor(__pyx_v_self, __pyx_v_freq, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.freq_floor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1675
 * 
 *     # Delta -----------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def add_delta(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_125add_delta(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_add_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_add_delta *__pyx_optional_args) {
  int __pyx_v_years = ((int)0);
  int __pyx_v_months = ((int)0);
  int __pyx_v_days = ((int)0);
  int __pyx_v_weeks = ((int)0);
  int __pyx_v_hours = ((int)0);
  int __pyx_v_minutes = ((int)0);
  int __pyx_v_seconds = ((int)0);
  int __pyx_v_milliseconds = ((int)0);
  int __pyx_v_microseconds = ((int)0);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_t_18;
  int __pyx_t_19;
  char const *__pyx_t_20;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  PyObject *__pyx_t_25 = NULL;
  PyObject *__pyx_t_26 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("add_delta", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_years = __pyx_optional_args->years;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_months = __pyx_optional_args->months;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_days = __pyx_optional_args->days;
          if (__pyx_optional_args->__pyx_n > 3) {
            __pyx_v_weeks = __pyx_optional_args->weeks;
            if (__pyx_optional_args->__pyx_n > 4) {
              __pyx_v_hours = __pyx_optional_args->hours;
              if (__pyx_optional_args->__pyx_n > 5) {
                __pyx_v_minutes = __pyx_optional_args->minutes;
                if (__pyx_optional_args->__pyx_n > 6) {
                  __pyx_v_seconds = __pyx_optional_args->seconds;
                  if (__pyx_optional_args->__pyx_n > 7) {
                    __pyx_v_milliseconds = __pyx_optional_args->milliseconds;
                    if (__pyx_optional_args->__pyx_n > 8) {
                      __pyx_v_microseconds = __pyx_optional_args->microseconds;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_add_delta); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_125add_delta)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_years); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_months); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_days); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_weeks); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyInt_From_int(__pyx_v_hours); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_minutes); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_seconds); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_milliseconds); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_microseconds); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_12 = __pyx_t_1; __pyx_t_13 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_12))) {
          __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
          if (likely(__pyx_t_13)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
            __Pyx_INCREF(__pyx_t_13);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_12, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[10] = {__pyx_t_13, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_t_9, __pyx_t_10, __pyx_t_11};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_14, 9+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1675, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1675, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1704
 *         """
 *         # Adjust delta
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DATEOFFSET(
 *                 years=years,
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
    __Pyx_XGOTREF(__pyx_t_15);
    __Pyx_XGOTREF(__pyx_t_16);
    __Pyx_XGOTREF(__pyx_t_17);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1706
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DATEOFFSET(
 *                 years=years,             # <<<<<<<<<<<<<<
 *                 months=months,
 *                 weeks=weeks,
 */
      __pyx_t_1 = __Pyx_PyDict_NewPresized(8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_years); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_years, __pyx_t_2) < 0) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1707
 *             dt: Series = self._dt + typeref.OFST_DATEOFFSET(
 *                 years=years,
 *                 months=months,             # <<<<<<<<<<<<<<
 *                 weeks=weeks,
 *                 days=days,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_months); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1707, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_months, __pyx_t_2) < 0) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1708
 *                 years=years,
 *                 months=months,
 *                 weeks=weeks,             # <<<<<<<<<<<<<<
 *                 days=days,
 *                 hours=hours,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_weeks); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1708, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_weeks, __pyx_t_2) < 0) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1709
 *                 months=months,
 *                 weeks=weeks,
 *                 days=days,             # <<<<<<<<<<<<<<
 *                 hours=hours,
 *                 minutes=minutes,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_days); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1709, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_days, __pyx_t_2) < 0) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1710
 *                 weeks=weeks,
 *                 days=days,
 *                 hours=hours,             # <<<<<<<<<<<<<<
 *                 minutes=minutes,
 *                 seconds=seconds,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_hours); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1710, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_hours, __pyx_t_2) < 0) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1711
 *                 days=days,
 *                 hours=hours,
 *                 minutes=minutes,             # <<<<<<<<<<<<<<
 *                 seconds=seconds,
 *                 microseconds=milliseconds * 1_000 + microseconds,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_minutes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1711, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_minutes, __pyx_t_2) < 0) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1712
 *                 hours=hours,
 *                 minutes=minutes,
 *                 seconds=seconds,             # <<<<<<<<<<<<<<
 *                 microseconds=milliseconds * 1_000 + microseconds,
 *             )
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_seconds); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1712, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_seconds, __pyx_t_2) < 0) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1713
 *                 minutes=minutes,
 *                 seconds=seconds,
 *                 microseconds=milliseconds * 1_000 + microseconds,             # <<<<<<<<<<<<<<
 *             )
 *         except Exception as err:
 */
      __pyx_t_2 = __Pyx_PyInt_From_long(((__pyx_v_milliseconds * 0x3E8) + __pyx_v_microseconds)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1713, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_microseconds, __pyx_t_2) < 0) __PYX_ERR(0, 1706, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1705
 *         # Adjust delta
 *         try:
 *             dt: Series = self._dt + typeref.OFST_DATEOFFSET(             # <<<<<<<<<<<<<<
 *                 years=years,
 *                 months=months,
 */
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1705, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyNumber_Add(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1705, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1704
 *         """
 *         # Adjust delta
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DATEOFFSET(
 *                 years=years,
 */
    }
    __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
    __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
    __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cytimes/pddatetime.py":1715
 *                 microseconds=milliseconds * 1_000 + microseconds,
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         # Generate
 */
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_14) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.add_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(0, 1715, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_v_err = __pyx_t_2;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1716
 *             )
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         # Generate
 *         return self._new(dt, None, None, False)
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1716, __pyx_L14_error)
        __pyx_t_18 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(0, 1716, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1715
 *                 microseconds=milliseconds * 1_000 + microseconds,
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         # Generate
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23) < 0)) __Pyx_ErrFetch(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_24);
          __Pyx_XGOTREF(__pyx_t_25);
          __Pyx_XGOTREF(__pyx_t_26);
          __pyx_t_14 = __pyx_lineno; __pyx_t_19 = __pyx_clineno; __pyx_t_20 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_24);
            __Pyx_XGIVEREF(__pyx_t_25);
            __Pyx_XGIVEREF(__pyx_t_26);
            __Pyx_ExceptionReset(__pyx_t_24, __pyx_t_25, __pyx_t_26);
          }
          __Pyx_XGIVEREF(__pyx_t_21);
          __Pyx_XGIVEREF(__pyx_t_22);
          __Pyx_XGIVEREF(__pyx_t_23);
          __Pyx_ErrRestore(__pyx_t_21, __pyx_t_22, __pyx_t_23);
          __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0;
          __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_19; __pyx_filename = __pyx_t_20;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1704
 *         """
 *         # Adjust delta
 *         try:             # <<<<<<<<<<<<<<
 *             dt: Series = self._dt + typeref.OFST_DATEOFFSET(
 *                 years=years,
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_15);
    __Pyx_XGIVEREF(__pyx_t_16);
    __Pyx_XGIVEREF(__pyx_t_17);
    __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_15);
    __Pyx_XGIVEREF(__pyx_t_16);
    __Pyx_XGIVEREF(__pyx_t_17);
    __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1718
 *             self._raise_error(err)
 *         # Generate
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     @cython.ccall
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1718, __pyx_L1_error) }
  __pyx_t_12 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_12);
  __pyx_t_12 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1675
 * 
 *     # Delta -----------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def add_delta(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.add_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_125add_delta(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_124add_delta, "Add 'timedelta' to the current `<'pddt'>`.\n\n        Equivalent to `Series + pandas.offsets.DateOffset()`.\n\n        ### Relative delta\n        :param years `<int>`: The relative delta of years. Defaults to `0`.\n        :param months `<int>`: The relative delta of months. Defaults to `0`.\n        :param days `<int>`: The relative delta of days. Defaults to `0`.\n        :param weeks `<int>`: The relative delta of weeks. Defaults to `0`.\n        :param hours `<int>`: The relative delta of hours. Defaults to `0`.\n        :param minutes `<int>`: The relative delta of minutes. Defaults to `0`.\n        :param seconds `<int>`: The relative delta of seconds. Defaults to `0`.\n        :param milliseconds `<int>`: The relative delta of milliseconds. Defaults to `0`.\n        :param microseconds `<int>`: The relative delta of microseconds. Defaults to `0`.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_125add_delta = {"add_delta", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_125add_delta, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_124add_delta};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_125add_delta(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_years;
  int __pyx_v_months;
  int __pyx_v_days;
  int __pyx_v_weeks;
  int __pyx_v_hours;
  int __pyx_v_minutes;
  int __pyx_v_seconds;
  int __pyx_v_milliseconds;
  int __pyx_v_microseconds;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("add_delta (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_years,&__pyx_n_s_months,&__pyx_n_s_days,&__pyx_n_s_weeks,&__pyx_n_s_hours,&__pyx_n_s_minutes,&__pyx_n_s_seconds,&__pyx_n_s_milliseconds,&__pyx_n_s_microseconds,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_years);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_months);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_days);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_weeks);
          if (value) { values[3] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hours);
          if (value) { values[4] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_minutes);
          if (value) { values[5] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_seconds);
          if (value) { values[6] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_milliseconds);
          if (value) { values[7] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_microseconds);
          if (value) { values[8] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1675, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "add_delta") < 0)) __PYX_ERR(0, 1675, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_years = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_years == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1678, __pyx_L3_error)
    } else {
      __pyx_v_years = ((int)0);
    }
    if (values[1]) {
      __pyx_v_months = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_months == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1679, __pyx_L3_error)
    } else {
      __pyx_v_months = ((int)0);
    }
    if (values[2]) {
      __pyx_v_days = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_days == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1680, __pyx_L3_error)
    } else {
      __pyx_v_days = ((int)0);
    }
    if (values[3]) {
      __pyx_v_weeks = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_weeks == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1681, __pyx_L3_error)
    } else {
      __pyx_v_weeks = ((int)0);
    }
    if (values[4]) {
      __pyx_v_hours = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_hours == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1682, __pyx_L3_error)
    } else {
      __pyx_v_hours = ((int)0);
    }
    if (values[5]) {
      __pyx_v_minutes = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_minutes == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1683, __pyx_L3_error)
    } else {
      __pyx_v_minutes = ((int)0);
    }
    if (values[6]) {
      __pyx_v_seconds = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_seconds == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1684, __pyx_L3_error)
    } else {
      __pyx_v_seconds = ((int)0);
    }
    if (values[7]) {
      __pyx_v_milliseconds = __Pyx_PyInt_As_int(values[7]); if (unlikely((__pyx_v_milliseconds == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1685, __pyx_L3_error)
    } else {
      __pyx_v_milliseconds = ((int)0);
    }
    if (values[8]) {
      __pyx_v_microseconds = __Pyx_PyInt_As_int(values[8]); if (unlikely((__pyx_v_microseconds == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1686, __pyx_L3_error)
    } else {
      __pyx_v_microseconds = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("add_delta", 0, 0, 9, __pyx_nargs); __PYX_ERR(0, 1675, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.add_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_124add_delta(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_years, __pyx_v_months, __pyx_v_days, __pyx_v_weeks, __pyx_v_hours, __pyx_v_minutes, __pyx_v_seconds, __pyx_v_milliseconds, __pyx_v_microseconds);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_124add_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_years, int __pyx_v_months, int __pyx_v_days, int __pyx_v_weeks, int __pyx_v_hours, int __pyx_v_minutes, int __pyx_v_seconds, int __pyx_v_milliseconds, int __pyx_v_microseconds) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_add_delta __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("add_delta", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 9;
  __pyx_t_2.years = __pyx_v_years;
  __pyx_t_2.months = __pyx_v_months;
  __pyx_t_2.days = __pyx_v_days;
  __pyx_t_2.weeks = __pyx_v_weeks;
  __pyx_t_2.hours = __pyx_v_hours;
  __pyx_t_2.minutes = __pyx_v_minutes;
  __pyx_t_2.seconds = __pyx_v_seconds;
  __pyx_t_2.milliseconds = __pyx_v_milliseconds;
  __pyx_t_2.microseconds = __pyx_v_microseconds;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->add_delta(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.add_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1720
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def sub_delta(
 *         self,
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_127sub_delta(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_sub_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_sub_delta *__pyx_optional_args) {
  int __pyx_v_years = ((int)0);
  int __pyx_v_months = ((int)0);
  int __pyx_v_days = ((int)0);
  int __pyx_v_weeks = ((int)0);
  int __pyx_v_hours = ((int)0);
  int __pyx_v_minutes = ((int)0);
  int __pyx_v_seconds = ((int)0);
  int __pyx_v_milliseconds = ((int)0);
  int __pyx_v_microseconds = ((int)0);
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_t_18;
  int __pyx_t_19;
  char const *__pyx_t_20;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  PyObject *__pyx_t_25 = NULL;
  PyObject *__pyx_t_26 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("sub_delta", 1);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_years = __pyx_optional_args->years;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_months = __pyx_optional_args->months;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_days = __pyx_optional_args->days;
          if (__pyx_optional_args->__pyx_n > 3) {
            __pyx_v_weeks = __pyx_optional_args->weeks;
            if (__pyx_optional_args->__pyx_n > 4) {
              __pyx_v_hours = __pyx_optional_args->hours;
              if (__pyx_optional_args->__pyx_n > 5) {
                __pyx_v_minutes = __pyx_optional_args->minutes;
                if (__pyx_optional_args->__pyx_n > 6) {
                  __pyx_v_seconds = __pyx_optional_args->seconds;
                  if (__pyx_optional_args->__pyx_n > 7) {
                    __pyx_v_milliseconds = __pyx_optional_args->milliseconds;
                    if (__pyx_optional_args->__pyx_n > 8) {
                      __pyx_v_microseconds = __pyx_optional_args->microseconds;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sub_delta); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1720, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_127sub_delta)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_years); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_months); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_days); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_weeks); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyInt_From_int(__pyx_v_hours); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_minutes); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_seconds); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_milliseconds); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_microseconds); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_12 = __pyx_t_1; __pyx_t_13 = NULL;
        __pyx_t_14 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_12))) {
          __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
          if (likely(__pyx_t_13)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
            __Pyx_INCREF(__pyx_t_13);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_12, function);
            __pyx_t_14 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[10] = {__pyx_t_13, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_t_9, __pyx_t_10, __pyx_t_11};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_14, 9+__pyx_t_14);
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1720, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1720, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1748
 *         :param microseconds `<int>`: The relative delta of microseconds. Defaults to `0`.
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             dt = self._dt - typeref.OFST_DATEOFFSET(
 *                 years=years,
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
    __Pyx_XGOTREF(__pyx_t_15);
    __Pyx_XGOTREF(__pyx_t_16);
    __Pyx_XGOTREF(__pyx_t_17);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1750
 *         try:
 *             dt = self._dt - typeref.OFST_DATEOFFSET(
 *                 years=years,             # <<<<<<<<<<<<<<
 *                 months=months,
 *                 weeks=weeks,
 */
      __pyx_t_1 = __Pyx_PyDict_NewPresized(8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_years); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_years, __pyx_t_2) < 0) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1751
 *             dt = self._dt - typeref.OFST_DATEOFFSET(
 *                 years=years,
 *                 months=months,             # <<<<<<<<<<<<<<
 *                 weeks=weeks,
 *                 days=days,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_months); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1751, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_months, __pyx_t_2) < 0) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1752
 *                 years=years,
 *                 months=months,
 *                 weeks=weeks,             # <<<<<<<<<<<<<<
 *                 days=days,
 *                 hours=hours,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_weeks); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1752, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_weeks, __pyx_t_2) < 0) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1753
 *                 months=months,
 *                 weeks=weeks,
 *                 days=days,             # <<<<<<<<<<<<<<
 *                 hours=hours,
 *                 minutes=minutes,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_days); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1753, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_days, __pyx_t_2) < 0) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1754
 *                 weeks=weeks,
 *                 days=days,
 *                 hours=hours,             # <<<<<<<<<<<<<<
 *                 minutes=minutes,
 *                 seconds=seconds,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_hours); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1754, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_hours, __pyx_t_2) < 0) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1755
 *                 days=days,
 *                 hours=hours,
 *                 minutes=minutes,             # <<<<<<<<<<<<<<
 *                 seconds=seconds,
 *                 microseconds=milliseconds * 1_000 + microseconds,
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_minutes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1755, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_minutes, __pyx_t_2) < 0) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1756
 *                 hours=hours,
 *                 minutes=minutes,
 *                 seconds=seconds,             # <<<<<<<<<<<<<<
 *                 microseconds=milliseconds * 1_000 + microseconds,
 *             )
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_seconds); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1756, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_seconds, __pyx_t_2) < 0) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1757
 *                 minutes=minutes,
 *                 seconds=seconds,
 *                 microseconds=milliseconds * 1_000 + microseconds,             # <<<<<<<<<<<<<<
 *             )
 *         except Exception as err:
 */
      __pyx_t_2 = __Pyx_PyInt_From_long(((__pyx_v_milliseconds * 0x3E8) + __pyx_v_microseconds)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1757, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_microseconds, __pyx_t_2) < 0) __PYX_ERR(0, 1750, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":1749
 *         """
 *         try:
 *             dt = self._dt - typeref.OFST_DATEOFFSET(             # <<<<<<<<<<<<<<
 *                 years=years,
 *                 months=months,
 */
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_OFST_DATEOFFSET, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1749, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyNumber_Subtract(__pyx_v_self->_dt, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1749, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1748
 *         :param microseconds `<int>`: The relative delta of microseconds. Defaults to `0`.
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             dt = self._dt - typeref.OFST_DATEOFFSET(
 *                 years=years,
 */
    }
    __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
    __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
    __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cytimes/pddatetime.py":1759
 *                 microseconds=milliseconds * 1_000 + microseconds,
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_14) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.sub_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(0, 1759, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_v_err = __pyx_t_2;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1760
 *             )
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1760, __pyx_L14_error)
        __pyx_t_18 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(0, 1760, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":1759
 *                 microseconds=milliseconds * 1_000 + microseconds,
 *             )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23) < 0)) __Pyx_ErrFetch(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_24);
          __Pyx_XGOTREF(__pyx_t_25);
          __Pyx_XGOTREF(__pyx_t_26);
          __pyx_t_14 = __pyx_lineno; __pyx_t_19 = __pyx_clineno; __pyx_t_20 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_24);
            __Pyx_XGIVEREF(__pyx_t_25);
            __Pyx_XGIVEREF(__pyx_t_26);
            __Pyx_ExceptionReset(__pyx_t_24, __pyx_t_25, __pyx_t_26);
          }
          __Pyx_XGIVEREF(__pyx_t_21);
          __Pyx_XGIVEREF(__pyx_t_22);
          __Pyx_XGIVEREF(__pyx_t_23);
          __Pyx_ErrRestore(__pyx_t_21, __pyx_t_22, __pyx_t_23);
          __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0;
          __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_19; __pyx_filename = __pyx_t_20;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1748
 *         :param microseconds `<int>`: The relative delta of microseconds. Defaults to `0`.
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             dt = self._dt - typeref.OFST_DATEOFFSET(
 *                 years=years,
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_15);
    __Pyx_XGIVEREF(__pyx_t_16);
    __Pyx_XGIVEREF(__pyx_t_17);
    __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_15);
    __Pyx_XGIVEREF(__pyx_t_16);
    __Pyx_XGIVEREF(__pyx_t_17);
    __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":1761
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     def cal_delta(
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 1761, __pyx_L1_error) }
  __pyx_t_12 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_12);
  __pyx_t_12 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1720
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def sub_delta(
 *         self,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.sub_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_127sub_delta(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_126sub_delta, "Substract 'timedelta' to the current `<'pddt'>`.\n\n        Equivalent to `Series - pandas.offsets.DateOffset()`.\n\n        ### Relative delta\n        :param years `<int>`: The relative delta of years. Defaults to `0`.\n        :param months `<int>`: The relative delta of months. Defaults to `0`.\n        :param days `<int>`: The relative delta of days. Defaults to `0`.\n        :param weeks `<int>`: The relative delta of weeks. Defaults to `0`.\n        :param hours `<int>`: The relative delta of hours. Defaults to `0`.\n        :param minutes `<int>`: The relative delta of minutes. Defaults to `0`.\n        :param seconds `<int>`: The relative delta of seconds. Defaults to `0`.\n        :param milliseconds `<int>`: The relative delta of milliseconds. Defaults to `0`.\n        :param microseconds `<int>`: The relative delta of microseconds. Defaults to `0`.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_127sub_delta = {"sub_delta", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_127sub_delta, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_126sub_delta};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_127sub_delta(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_years;
  int __pyx_v_months;
  int __pyx_v_days;
  int __pyx_v_weeks;
  int __pyx_v_hours;
  int __pyx_v_minutes;
  int __pyx_v_seconds;
  int __pyx_v_milliseconds;
  int __pyx_v_microseconds;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("sub_delta (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_years,&__pyx_n_s_months,&__pyx_n_s_days,&__pyx_n_s_weeks,&__pyx_n_s_hours,&__pyx_n_s_minutes,&__pyx_n_s_seconds,&__pyx_n_s_milliseconds,&__pyx_n_s_microseconds,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_years);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_months);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_days);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_weeks);
          if (value) { values[3] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hours);
          if (value) { values[4] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_minutes);
          if (value) { values[5] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_seconds);
          if (value) { values[6] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_milliseconds);
          if (value) { values[7] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_microseconds);
          if (value) { values[8] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1720, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "sub_delta") < 0)) __PYX_ERR(0, 1720, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_years = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_years == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1723, __pyx_L3_error)
    } else {
      __pyx_v_years = ((int)0);
    }
    if (values[1]) {
      __pyx_v_months = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_months == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1724, __pyx_L3_error)
    } else {
      __pyx_v_months = ((int)0);
    }
    if (values[2]) {
      __pyx_v_days = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_days == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1725, __pyx_L3_error)
    } else {
      __pyx_v_days = ((int)0);
    }
    if (values[3]) {
      __pyx_v_weeks = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_weeks == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1726, __pyx_L3_error)
    } else {
      __pyx_v_weeks = ((int)0);
    }
    if (values[4]) {
      __pyx_v_hours = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_hours == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1727, __pyx_L3_error)
    } else {
      __pyx_v_hours = ((int)0);
    }
    if (values[5]) {
      __pyx_v_minutes = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_minutes == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1728, __pyx_L3_error)
    } else {
      __pyx_v_minutes = ((int)0);
    }
    if (values[6]) {
      __pyx_v_seconds = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_seconds == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1729, __pyx_L3_error)
    } else {
      __pyx_v_seconds = ((int)0);
    }
    if (values[7]) {
      __pyx_v_milliseconds = __Pyx_PyInt_As_int(values[7]); if (unlikely((__pyx_v_milliseconds == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1730, __pyx_L3_error)
    } else {
      __pyx_v_milliseconds = ((int)0);
    }
    if (values[8]) {
      __pyx_v_microseconds = __Pyx_PyInt_As_int(values[8]); if (unlikely((__pyx_v_microseconds == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1731, __pyx_L3_error)
    } else {
      __pyx_v_microseconds = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("sub_delta", 0, 0, 9, __pyx_nargs); __PYX_ERR(0, 1720, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.sub_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_126sub_delta(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_years, __pyx_v_months, __pyx_v_days, __pyx_v_weeks, __pyx_v_hours, __pyx_v_minutes, __pyx_v_seconds, __pyx_v_milliseconds, __pyx_v_microseconds);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_126sub_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_years, int __pyx_v_months, int __pyx_v_days, int __pyx_v_weeks, int __pyx_v_hours, int __pyx_v_minutes, int __pyx_v_seconds, int __pyx_v_milliseconds, int __pyx_v_microseconds) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_sub_delta __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("sub_delta", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 9;
  __pyx_t_2.years = __pyx_v_years;
  __pyx_t_2.months = __pyx_v_months;
  __pyx_t_2.days = __pyx_v_days;
  __pyx_t_2.weeks = __pyx_v_weeks;
  __pyx_t_2.hours = __pyx_v_hours;
  __pyx_t_2.minutes = __pyx_v_minutes;
  __pyx_t_2.seconds = __pyx_v_seconds;
  __pyx_t_2.milliseconds = __pyx_v_milliseconds;
  __pyx_t_2.microseconds = __pyx_v_microseconds;
  __pyx_t_1 = ((PyObject *)__pyx_vtabptr_7cytimes_10pddatetime_pddt->sub_delta(__pyx_v_self, 1, &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.sub_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1763
 *         return self._new(dt, None, None, False)
 * 
 *     def cal_delta(             # <<<<<<<<<<<<<<
 *         self,
 *         other: object,
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_129cal_delta(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_128cal_delta, "Calcuate the `ABSOLUTE` delta between the current pddt\n        and the given object based on the specified 'unit' `<'Series[int]'>`.\n\n        :param other `<'pddt/Series/list/pydt/str/datetime'>`: The target object.\n        :param unit `<'str'>`: The specific time unit to calculate the delta.\n        :param inclusive `<'str'>`: Include boundaries, whether to set bounds as closed or open. Defaults to `'both'`.\n        :return `<'Series[int]'>`: The `ABSOLUTE` delta values.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_129cal_delta = {"cal_delta", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_129cal_delta, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_128cal_delta};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_129cal_delta(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_other = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_inclusive = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cal_delta (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_other,&__pyx_n_s_unit,&__pyx_n_s_inclusive,0};
    values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_D));
    values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)__pyx_n_u_both));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_other)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1763, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unit);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1763, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_inclusive);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1763, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cal_delta") < 0)) __PYX_ERR(0, 1763, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_other = values[0];
    __pyx_v_unit = values[1];
    __pyx_v_inclusive = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cal_delta", 0, 1, 3, __pyx_nargs); __PYX_ERR(0, 1763, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.cal_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_128cal_delta(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_other, __pyx_v_unit, __pyx_v_inclusive);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_128cal_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_unit, PyObject *__pyx_v_inclusive) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cal_delta", 1);

  /* "cytimes/pddatetime.py":1777
 *         :return `<'Series[int]'>`: The `ABSOLUTE` delta values.
 *         """
 *         return self._c_cal_delta(other, unit, inclusive)             # <<<<<<<<<<<<<<
 * 
 *     # Replace ---------------------------------------------------------------------------------
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__c_cal_delta(__pyx_v_self, __pyx_v_other, __pyx_v_unit, __pyx_v_inclusive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1763
 *         return self._new(dt, None, None, False)
 * 
 *     def cal_delta(             # <<<<<<<<<<<<<<
 *         self,
 *         other: object,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.cal_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1780
 * 
 *     # Replace ---------------------------------------------------------------------------------
 *     def replace(             # <<<<<<<<<<<<<<
 *         self,
 *         year: cython.int = -1,
 */

/* Python wrapper */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_131replace(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_130replace, "Replacement for the current `<'pddt'>`.\n\n        Function similar to `datetime.replace()`.\n\n        :param year `<int>`: The absolute year value. Defaults to `-1 (no change)`.\n        :param month `<int>`: The absolute month value. Defaults to `-1 (no change)`.\n        :param day `<int>`: The absolute day value. Defaults to `-1 (no change)`.\n        :param hour `<int>`: The absolute hour value. Defaults to `-1 (no change)`.\n        :param minute `<int>`: The absolute minute value. Defaults to `-1 (no change)`.\n        :param second `<int>`: The absolute second value. Defaults to `-1 (no change)`.\n        :param millisecond `<int>`: The absolute millisecond value. Defaults to `-1 (no change)`.\n        :param microsecond `<int>`: The absolute microsecond value. Defaults to `-1 (no change)`.\n        :return `<'pddt'>`: pddt after replacement.\n\n        ### Important Warning\n        - Calling this method, returns <'pddt'> where nanosecond values\n          will be truncated to microsecond resolution (lost / reset to `0`).\n        - Replacement for 'year', 'month' and 'day' does not support\n          vectorized operation, which could lead to performance issues\n          when working with large dataset.\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_131replace = {"replace", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_131replace, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_130replace};
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_131replace(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_year;
  int __pyx_v_month;
  int __pyx_v_day;
  int __pyx_v_hour;
  int __pyx_v_minute;
  int __pyx_v_second;
  int __pyx_v_millisecond;
  int __pyx_v_microsecond;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("replace (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_year,&__pyx_n_s_month,&__pyx_n_s_day,&__pyx_n_s_hour,&__pyx_n_s_minute,&__pyx_n_s_second,&__pyx_n_s_millisecond,&__pyx_n_s_microsecond,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_year);
          if (value) { values[0] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1780, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_month);
          if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1780, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_day);
          if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1780, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hour);
          if (value) { values[3] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1780, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_minute);
          if (value) { values[4] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1780, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_second);
          if (value) { values[5] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1780, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_millisecond);
          if (value) { values[6] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1780, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_microsecond);
          if (value) { values[7] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1780, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "replace") < 0)) __PYX_ERR(0, 1780, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_year = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_year == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1782, __pyx_L3_error)
    } else {
      __pyx_v_year = ((int)-1);
    }
    if (values[1]) {
      __pyx_v_month = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_month == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1783, __pyx_L3_error)
    } else {
      __pyx_v_month = ((int)-1);
    }
    if (values[2]) {
      __pyx_v_day = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_day == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1784, __pyx_L3_error)
    } else {
      __pyx_v_day = ((int)-1);
    }
    if (values[3]) {
      __pyx_v_hour = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_hour == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1785, __pyx_L3_error)
    } else {
      __pyx_v_hour = ((int)-1);
    }
    if (values[4]) {
      __pyx_v_minute = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_minute == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1786, __pyx_L3_error)
    } else {
      __pyx_v_minute = ((int)-1);
    }
    if (values[5]) {
      __pyx_v_second = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_second == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1787, __pyx_L3_error)
    } else {
      __pyx_v_second = ((int)-1);
    }
    if (values[6]) {
      __pyx_v_millisecond = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_millisecond == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1788, __pyx_L3_error)
    } else {
      __pyx_v_millisecond = ((int)-1);
    }
    if (values[7]) {
      __pyx_v_microsecond = __Pyx_PyInt_As_int(values[7]); if (unlikely((__pyx_v_microsecond == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1789, __pyx_L3_error)
    } else {
      __pyx_v_microsecond = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("replace", 0, 0, 8, __pyx_nargs); __PYX_ERR(0, 1780, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_130replace(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_year, __pyx_v_month, __pyx_v_day, __pyx_v_hour, __pyx_v_minute, __pyx_v_second, __pyx_v_millisecond, __pyx_v_microsecond);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1828
 *             microsecond = combine_ms_us(millisecond, microsecond)
 *             dt = self._dt.apply(
 *                 lambda dt: cydt.dt_replace(             # <<<<<<<<<<<<<<
 *                     dt, year, month, day, hour, minute, second, microsecond
 *                 )
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7replace_lambda(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_7replace_lambda = {"lambda", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_7replace_lambda, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_7replace_lambda(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_dt = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("lambda (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dt,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dt)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1828, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "lambda") < 0)) __PYX_ERR(0, 1828, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_dt = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("lambda", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1828, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.replace.lambda", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_lambda_funcdef_lambda(__pyx_self, __pyx_v_dt);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_lambda_funcdef_lambda(PyObject *__pyx_self, PyObject *__pyx_v_dt) {
  struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace *__pyx_cur_scope;
  struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace *__pyx_outer_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_7cytimes_10cydatetime_dt_replace __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("lambda", 1);
  __pyx_outer_scope = (struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace *) __Pyx_CyFunction_GetClosure(__pyx_self);
  __pyx_cur_scope = __pyx_outer_scope;
  __Pyx_XDECREF(__pyx_r);

  /* "cytimes/pddatetime.py":1829
 *             dt = self._dt.apply(
 *                 lambda dt: cydt.dt_replace(
 *                     dt, year, month, day, hour, minute, second, microsecond             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
  if (!(likely(((__pyx_v_dt) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dt, __pyx_ptype_7cpython_8datetime_datetime))))) __PYX_ERR(0, 1829, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1828
 *             microsecond = combine_ms_us(millisecond, microsecond)
 *             dt = self._dt.apply(
 *                 lambda dt: cydt.dt_replace(             # <<<<<<<<<<<<<<
 *                     dt, year, month, day, hour, minute, second, microsecond
 *                 )
 */
  __pyx_t_2.__pyx_n = 7;
  __pyx_t_2.year = __pyx_cur_scope->__pyx_v_year;
  __pyx_t_2.month = __pyx_cur_scope->__pyx_v_month;
  __pyx_t_2.day = __pyx_cur_scope->__pyx_v_day;
  __pyx_t_2.hour = __pyx_cur_scope->__pyx_v_hour;
  __pyx_t_2.minute = __pyx_cur_scope->__pyx_v_minute;
  __pyx_t_2.second = __pyx_cur_scope->__pyx_v_second;
  __pyx_t_2.microsecond = __pyx_cur_scope->__pyx_v_microsecond;
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt_replace(((PyDateTime_DateTime *)__pyx_v_dt), &__pyx_t_2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.replace.lambda", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1780
 * 
 *     # Replace ---------------------------------------------------------------------------------
 *     def replace(             # <<<<<<<<<<<<<<
 *         self,
 *         year: cython.int = -1,
 */

static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_130replace(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_year, int __pyx_v_month, int __pyx_v_day, int __pyx_v_hour, int __pyx_v_minute, int __pyx_v_second, int __pyx_v_millisecond, int __pyx_v_microsecond) {
  struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace *__pyx_cur_scope;
  PyObject *__pyx_v_dt = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  long __pyx_t_3;
  int __pyx_t_4;
  long __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_time __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("replace", 0);
  __pyx_cur_scope = (struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace *)__pyx_tp_new_7cytimes_10pddatetime___pyx_scope_struct__replace(__pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1780, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_year = __pyx_v_year;
  __pyx_cur_scope->__pyx_v_month = __pyx_v_month;
  __pyx_cur_scope->__pyx_v_day = __pyx_v_day;
  __pyx_cur_scope->__pyx_v_hour = __pyx_v_hour;
  __pyx_cur_scope->__pyx_v_minute = __pyx_v_minute;
  __pyx_cur_scope->__pyx_v_second = __pyx_v_second;
  __pyx_cur_scope->__pyx_v_microsecond = __pyx_v_microsecond;

  /* "cytimes/pddatetime.py":1813
 *         """
 *         # Non-vertorzied (Y/M/D)
 *         if year > 0 or month > 0 or day > 0:             # <<<<<<<<<<<<<<
 *             if year > 0:
 *                 year = min(year, 9_999)
 */
  __pyx_t_2 = (__pyx_cur_scope->__pyx_v_year > 0);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_cur_scope->__pyx_v_month > 0);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_cur_scope->__pyx_v_day > 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":1814
 *         # Non-vertorzied (Y/M/D)
 *         if year > 0 or month > 0 or day > 0:
 *             if year > 0:             # <<<<<<<<<<<<<<
 *                 year = min(year, 9_999)
 *             if month > 0:
 */
    __pyx_t_1 = (__pyx_cur_scope->__pyx_v_year > 0);
    if (__pyx_t_1) {

      /* "cytimes/pddatetime.py":1815
 *         if year > 0 or month > 0 or day > 0:
 *             if year > 0:
 *                 year = min(year, 9_999)             # <<<<<<<<<<<<<<
 *             if month > 0:
 *                 month = min(month, 12)
 */
      __pyx_t_3 = 0x270F;
      __pyx_t_4 = __pyx_cur_scope->__pyx_v_year;
      __pyx_t_1 = (__pyx_t_3 < __pyx_t_4);
      if (__pyx_t_1) {
        __pyx_t_5 = __pyx_t_3;
      } else {
        __pyx_t_5 = __pyx_t_4;
      }
      __pyx_cur_scope->__pyx_v_year = __pyx_t_5;

      /* "cytimes/pddatetime.py":1814
 *         # Non-vertorzied (Y/M/D)
 *         if year > 0 or month > 0 or day > 0:
 *             if year > 0:             # <<<<<<<<<<<<<<
 *                 year = min(year, 9_999)
 *             if month > 0:
 */
    }

    /* "cytimes/pddatetime.py":1816
 *             if year > 0:
 *                 year = min(year, 9_999)
 *             if month > 0:             # <<<<<<<<<<<<<<
 *                 month = min(month, 12)
 *             if day > 0:
 */
    __pyx_t_1 = (__pyx_cur_scope->__pyx_v_month > 0);
    if (__pyx_t_1) {

      /* "cytimes/pddatetime.py":1817
 *                 year = min(year, 9_999)
 *             if month > 0:
 *                 month = min(month, 12)             # <<<<<<<<<<<<<<
 *             if day > 0:
 *                 day = min(day, 31)
 */
      __pyx_t_5 = 12;
      __pyx_t_4 = __pyx_cur_scope->__pyx_v_month;
      __pyx_t_1 = (__pyx_t_5 < __pyx_t_4);
      if (__pyx_t_1) {
        __pyx_t_3 = __pyx_t_5;
      } else {
        __pyx_t_3 = __pyx_t_4;
      }
      __pyx_cur_scope->__pyx_v_month = __pyx_t_3;

      /* "cytimes/pddatetime.py":1816
 *             if year > 0:
 *                 year = min(year, 9_999)
 *             if month > 0:             # <<<<<<<<<<<<<<
 *                 month = min(month, 12)
 *             if day > 0:
 */
    }

    /* "cytimes/pddatetime.py":1818
 *             if month > 0:
 *                 month = min(month, 12)
 *             if day > 0:             # <<<<<<<<<<<<<<
 *                 day = min(day, 31)
 *             if hour >= 0:
 */
    __pyx_t_1 = (__pyx_cur_scope->__pyx_v_day > 0);
    if (__pyx_t_1) {

      /* "cytimes/pddatetime.py":1819
 *                 month = min(month, 12)
 *             if day > 0:
 *                 day = min(day, 31)             # <<<<<<<<<<<<<<
 *             if hour >= 0:
 *                 hour = min(hour, 23)
 */
      __pyx_t_3 = 31;
      __pyx_t_4 = __pyx_cur_scope->__pyx_v_day;
      __pyx_t_1 = (__pyx_t_3 < __pyx_t_4);
      if (__pyx_t_1) {
        __pyx_t_5 = __pyx_t_3;
      } else {
        __pyx_t_5 = __pyx_t_4;
      }
      __pyx_cur_scope->__pyx_v_day = __pyx_t_5;

      /* "cytimes/pddatetime.py":1818
 *             if month > 0:
 *                 month = min(month, 12)
 *             if day > 0:             # <<<<<<<<<<<<<<
 *                 day = min(day, 31)
 *             if hour >= 0:
 */
    }

    /* "cytimes/pddatetime.py":1820
 *             if day > 0:
 *                 day = min(day, 31)
 *             if hour >= 0:             # <<<<<<<<<<<<<<
 *                 hour = min(hour, 23)
 *             if minute >= 0:
 */
    __pyx_t_1 = (__pyx_cur_scope->__pyx_v_hour >= 0);
    if (__pyx_t_1) {

      /* "cytimes/pddatetime.py":1821
 *                 day = min(day, 31)
 *             if hour >= 0:
 *                 hour = min(hour, 23)             # <<<<<<<<<<<<<<
 *             if minute >= 0:
 *                 minute = min(minute, 59)
 */
      __pyx_t_5 = 23;
      __pyx_t_4 = __pyx_cur_scope->__pyx_v_hour;
      __pyx_t_1 = (__pyx_t_5 < __pyx_t_4);
      if (__pyx_t_1) {
        __pyx_t_3 = __pyx_t_5;
      } else {
        __pyx_t_3 = __pyx_t_4;
      }
      __pyx_cur_scope->__pyx_v_hour = __pyx_t_3;

      /* "cytimes/pddatetime.py":1820
 *             if day > 0:
 *                 day = min(day, 31)
 *             if hour >= 0:             # <<<<<<<<<<<<<<
 *                 hour = min(hour, 23)
 *             if minute >= 0:
 */
    }

    /* "cytimes/pddatetime.py":1822
 *             if hour >= 0:
 *                 hour = min(hour, 23)
 *             if minute >= 0:             # <<<<<<<<<<<<<<
 *                 minute = min(minute, 59)
 *             if second >= 0:
 */
    __pyx_t_1 = (__pyx_cur_scope->__pyx_v_minute >= 0);
    if (__pyx_t_1) {

      /* "cytimes/pddatetime.py":1823
 *                 hour = min(hour, 23)
 *             if minute >= 0:
 *                 minute = min(minute, 59)             # <<<<<<<<<<<<<<
 *             if second >= 0:
 *                 second = min(second, 59)
 */
      __pyx_t_3 = 59;
      __pyx_t_4 = __pyx_cur_scope->__pyx_v_minute;
      __pyx_t_1 = (__pyx_t_3 < __pyx_t_4);
      if (__pyx_t_1) {
        __pyx_t_5 = __pyx_t_3;
      } else {
        __pyx_t_5 = __pyx_t_4;
      }
      __pyx_cur_scope->__pyx_v_minute = __pyx_t_5;

      /* "cytimes/pddatetime.py":1822
 *             if hour >= 0:
 *                 hour = min(hour, 23)
 *             if minute >= 0:             # <<<<<<<<<<<<<<
 *                 minute = min(minute, 59)
 *             if second >= 0:
 */
    }

    /* "cytimes/pddatetime.py":1824
 *             if minute >= 0:
 *                 minute = min(minute, 59)
 *             if second >= 0:             # <<<<<<<<<<<<<<
 *                 second = min(second, 59)
 *             microsecond = combine_ms_us(millisecond, microsecond)
 */
    __pyx_t_1 = (__pyx_cur_scope->__pyx_v_second >= 0);
    if (__pyx_t_1) {

      /* "cytimes/pddatetime.py":1825
 *                 minute = min(minute, 59)
 *             if second >= 0:
 *                 second = min(second, 59)             # <<<<<<<<<<<<<<
 *             microsecond = combine_ms_us(millisecond, microsecond)
 *             dt = self._dt.apply(
 */
      __pyx_t_5 = 59;
      __pyx_t_4 = __pyx_cur_scope->__pyx_v_second;
      __pyx_t_1 = (__pyx_t_5 < __pyx_t_4);
      if (__pyx_t_1) {
        __pyx_t_3 = __pyx_t_5;
      } else {
        __pyx_t_3 = __pyx_t_4;
      }
      __pyx_cur_scope->__pyx_v_second = __pyx_t_3;

      /* "cytimes/pddatetime.py":1824
 *             if minute >= 0:
 *                 minute = min(minute, 59)
 *             if second >= 0:             # <<<<<<<<<<<<<<
 *                 second = min(second, 59)
 *             microsecond = combine_ms_us(millisecond, microsecond)
 */
    }

    /* "cytimes/pddatetime.py":1826
 *             if second >= 0:
 *                 second = min(second, 59)
 *             microsecond = combine_ms_us(millisecond, microsecond)             # <<<<<<<<<<<<<<
 *             dt = self._dt.apply(
 *                 lambda dt: cydt.dt_replace(
 */
    __pyx_cur_scope->__pyx_v_microsecond = __pyx_f_7cytimes_7cydelta_combine_ms_us(__pyx_v_millisecond, __pyx_cur_scope->__pyx_v_microsecond);

    /* "cytimes/pddatetime.py":1827
 *                 second = min(second, 59)
 *             microsecond = combine_ms_us(millisecond, microsecond)
 *             dt = self._dt.apply(             # <<<<<<<<<<<<<<
 *                 lambda dt: cydt.dt_replace(
 *                     dt, year, month, day, hour, minute, second, microsecond
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_apply); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "cytimes/pddatetime.py":1828
 *             microsecond = combine_ms_us(millisecond, microsecond)
 *             dt = self._dt.apply(
 *                 lambda dt: cydt.dt_replace(             # <<<<<<<<<<<<<<
 *                     dt, year, month, day, hour, minute, second, microsecond
 *                 )
 */
    __pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_7replace_lambda, 0, __pyx_n_s_replace_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_cytimes_pddatetime, __pyx_d, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = NULL;
    __pyx_t_4 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
        __pyx_t_4 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8};
      __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1827, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    }
    __pyx_v_dt = __pyx_t_6;
    __pyx_t_6 = 0;

    /* "cytimes/pddatetime.py":1832
 *                 )
 *             )
 *             return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *         # Vertorzied (h/m/s/ms/us)
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_6 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1832, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_6);
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1813
 *         """
 *         # Non-vertorzied (Y/M/D)
 *         if year > 0 or month > 0 or day > 0:             # <<<<<<<<<<<<<<
 *             if year > 0:
 *                 year = min(year, 9_999)
 */
  }

  /* "cytimes/pddatetime.py":1835
 * 
 *         # Vertorzied (h/m/s/ms/us)
 *         return self.to_time(hour, minute, second, millisecond, microsecond)             # <<<<<<<<<<<<<<
 * 
 *     # Format ----------------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_10.__pyx_n = 5;
  __pyx_t_10.hour = __pyx_cur_scope->__pyx_v_hour;
  __pyx_t_10.minute = __pyx_cur_scope->__pyx_v_minute;
  __pyx_t_10.second = __pyx_cur_scope->__pyx_v_second;
  __pyx_t_10.millisecond = __pyx_v_millisecond;
  __pyx_t_10.microsecond = __pyx_cur_scope->__pyx_v_microsecond;
  __pyx_t_6 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt *)__pyx_v_self->__pyx_vtab)->to_time(__pyx_v_self, 0, &__pyx_t_10)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_6);
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1780
 * 
 *     # Replace ---------------------------------------------------------------------------------
 *     def replace(             # <<<<<<<<<<<<<<
 *         self,
 *         year: cython.int = -1,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1838
 * 
 *     # Format ----------------------------------------------------------------------------------
 *     def strftime(self, format: str) -> Series[str]:             # <<<<<<<<<<<<<<
 *         """Convert to string with the given 'format' `<'Series[str]'>`.
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_133strftime(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_132strftime, "Convert to string with the given 'format' `<'Series[str]'>`.\n\n        Equivalent to `Series.dt.strftime(format)`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_133strftime = {"strftime", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_133strftime, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_132strftime};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_133strftime(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_format = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("strftime (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_format,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_format)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1838, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "strftime") < 0)) __PYX_ERR(0, 1838, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_format = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("strftime", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1838, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.strftime", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyUnicode_Type), 0, "format", 1))) __PYX_ERR(0, 1838, __pyx_L1_error)
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_132strftime(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_format);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_132strftime(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("strftime", 1);

  /* "cytimes/pddatetime.py":1842
 * 
 *         Equivalent to `Series.dt.strftime(format)`."""
 *         return self._dt.dt.strftime(format)             # <<<<<<<<<<<<<<
 * 
 *     # Unit ------------------------------------------------------------------------------------
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_strftime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_format};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1842, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1838
 * 
 *     # Format ----------------------------------------------------------------------------------
 *     def strftime(self, format: str) -> Series[str]:             # <<<<<<<<<<<<<<
 *         """Convert to string with the given 'format' `<'Series[str]'>`.
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.strftime", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1845
 * 
 *     # Unit ------------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def as_unit(self, unit: Literal["s", "ms", "us", "ns"]) -> pddt:
 *         """Convert to specific time 'unit' resolution `<'pddt'>`.
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_135as_unit(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_as_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_unit, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("as_unit", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_as_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1845, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_135as_unit)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1845, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1845, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":1857
 *             - 'ns': Nanosecond
 *         """
 *         return self._new(self._dt, None, unit, True)             # <<<<<<<<<<<<<<
 * 
 *     # Internal methods ------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_1, Py_None, __pyx_v_unit, Py_True)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1845
 * 
 *     # Unit ------------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def as_unit(self, unit: Literal["s", "ms", "us", "ns"]) -> pddt:
 *         """Convert to specific time 'unit' resolution `<'pddt'>`.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.as_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_135as_unit(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_134as_unit, "Convert to specific time 'unit' resolution `<'pddt'>`.\n\n        Equivalent to `Series.dt.as_unit(unit)`.\n\n        :param unit `<'str'>`: The specific time unit to convert.\n            - 's': Second\n            - 'ms': Millisecond\n            - 'us': Microsecond\n            - 'ns': Nanosecond\n        ");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_135as_unit = {"as_unit", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_135as_unit, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_134as_unit};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_135as_unit(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_unit = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("as_unit (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_unit,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unit)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1845, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "as_unit") < 0)) __PYX_ERR(0, 1845, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_unit = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("as_unit", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1845, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.as_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_134as_unit(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_unit);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_134as_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("as_unit", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_as_unit(__pyx_v_self, __pyx_v_unit, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.as_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1860
 * 
 *     # Internal methods ------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _new(self, dtsobj: object, name: object, unit: bool, copy: bool) -> pddt:
 */

static CYTHON_INLINE struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt__new(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtsobj, PyObject *__pyx_v_name, PyObject *__pyx_v_unit, PyObject *__pyx_v_copy) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_new", 1);

  /* "cytimes/pddatetime.py":1865
 *         """(cfunc) Generate new `<'pddt'>`."""
 *         # fmt: off
 *         return pddt(             # <<<<<<<<<<<<<<
 *             dtsobj, self._default, self._day1st, self._year1st, self._utc,
 *             self._format, self._exact, self._cfg, name, unit, copy
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);

  /* "cytimes/pddatetime.py":1867
 *         return pddt(
 *             dtsobj, self._default, self._day1st, self._year1st, self._utc,
 *             self._format, self._exact, self._cfg, name, unit, copy             # <<<<<<<<<<<<<<
 *         )
 *         # fmt: on
 */
  __pyx_t_1 = PyTuple_New(11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_dtsobj);
  __Pyx_GIVEREF(__pyx_v_dtsobj);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_dtsobj)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_default);
  __Pyx_GIVEREF(__pyx_v_self->_default);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self->_default)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_day1st);
  __Pyx_GIVEREF(__pyx_v_self->_day1st);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_self->_day1st)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_year1st);
  __Pyx_GIVEREF(__pyx_v_self->_year1st);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_self->_year1st)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_utc);
  __Pyx_GIVEREF(__pyx_v_self->_utc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_v_self->_utc)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_format);
  __Pyx_GIVEREF(__pyx_v_self->_format);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_v_self->_format)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_exact);
  __Pyx_GIVEREF(__pyx_v_self->_exact);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_v_self->_exact)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_cfg);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self->_cfg);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 7, ((PyObject *)__pyx_v_self->_cfg))) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_name);
  __Pyx_GIVEREF(__pyx_v_name);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_v_name)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_unit);
  __Pyx_GIVEREF(__pyx_v_unit);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 9, __pyx_v_unit)) __PYX_ERR(0, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_copy);
  __Pyx_GIVEREF(__pyx_v_copy);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 10, __pyx_v_copy)) __PYX_ERR(0, 1865, __pyx_L1_error);

  /* "cytimes/pddatetime.py":1865
 *         """(cfunc) Generate new `<'pddt'>`."""
 *         # fmt: off
 *         return pddt(             # <<<<<<<<<<<<<<
 *             dtsobj, self._default, self._day1st, self._year1st, self._utc,
 *             self._format, self._exact, self._cfg, name, unit, copy
 */
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1860
 * 
 *     # Internal methods ------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _new(self, dtsobj: object, name: object, unit: bool, copy: bool) -> pddt:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._new", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1871
 *         # fmt: on
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _parse_dtobj(
 */

static CYTHON_INLINE PyDateTime_DateTime *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtobj(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtobj, PyObject *__pyx_v_default, int __pyx_v_strict) {
  PyObject *__pyx_v_err = NULL;
  PyDateTime_DateTime *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  struct __pyx_opt_args_7cytimes_8cyparser_6Parser_parse __pyx_t_9;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_UCS4 __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_t_17;
  char const *__pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_date __pyx_t_25;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_parse_dtobj", 1);

  /* "cytimes/pddatetime.py":1881
 *         """(cfunc) Parse 'dtobj' into `<'datetime.datetime'>`."""
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):             # <<<<<<<<<<<<<<
 *             try:
 *                 return Parser(self._cfg).parse(
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_dtobj); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":1882
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):
 *             try:             # <<<<<<<<<<<<<<
 *                 return Parser(self._cfg).parse(
 *                     dtobj, default, self._day1st, self._year1st, False, True
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      /*try:*/ {

        /* "cytimes/pddatetime.py":1883
 *         if isinstance(dtobj, str):
 *             try:
 *                 return Parser(self._cfg).parse(             # <<<<<<<<<<<<<<
 *                     dtobj, default, self._day1st, self._year1st, False, True
 *                 )
 */
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cytimes_8cyparser_Parser), ((PyObject *)__pyx_v_self->_cfg)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1883, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_5);

        /* "cytimes/pddatetime.py":1884
 *             try:
 *                 return Parser(self._cfg).parse(
 *                     dtobj, default, self._day1st, self._year1st, False, True             # <<<<<<<<<<<<<<
 *                 )
 *             except Exception as err:
 */
        if (!(likely(PyUnicode_CheckExact(__pyx_v_dtobj))||((__pyx_v_dtobj) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_dtobj))) __PYX_ERR(0, 1884, __pyx_L4_error)
        __pyx_t_6 = __pyx_v_self->_day1st;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = __pyx_v_self->_year1st;
        __Pyx_INCREF(__pyx_t_7);

        /* "cytimes/pddatetime.py":1883
 *         if isinstance(dtobj, str):
 *             try:
 *                 return Parser(self._cfg).parse(             # <<<<<<<<<<<<<<
 *                     dtobj, default, self._day1st, self._year1st, False, True
 *                 )
 */
        __pyx_t_9.__pyx_n = 5;
        __pyx_t_9.__pyx_default = __pyx_v_default;
        __pyx_t_9.day1st = __pyx_t_6;
        __pyx_t_9.year1st = __pyx_t_7;
        __pyx_t_9.ignoretz = Py_False;
        __pyx_t_9.isoformat = Py_True;
        __pyx_t_8 = ((PyObject *)((struct __pyx_vtabstruct_7cytimes_8cyparser_Parser *)((struct __pyx_obj_7cytimes_8cyparser_Parser *)__pyx_t_5)->__pyx_vtab)->parse(((struct __pyx_obj_7cytimes_8cyparser_Parser *)__pyx_t_5), ((PyObject*)__pyx_v_dtobj), 0, &__pyx_t_9)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1883, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_r = ((PyDateTime_DateTime *)__pyx_t_8);
        __pyx_t_8 = 0;
        goto __pyx_L8_try_return;

        /* "cytimes/pddatetime.py":1882
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):
 *             try:             # <<<<<<<<<<<<<<
 *                 return Parser(self._cfg).parse(
 *                     dtobj, default, self._day1st, self._year1st, False, True
 */
      }
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cytimes/pddatetime.py":1886
 *                     dtobj, default, self._day1st, self._year1st, False, True
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'> %s" % (self.__class__.__name__, err)
 */
      __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_10) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_dtobj", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 1886, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_v_err = __pyx_t_7;
        /*try:*/ {

          /* "cytimes/pddatetime.py":1887
 *                 )
 *             except Exception as err:
 *                 raise errors.InvalidDatetimeObjectError(             # <<<<<<<<<<<<<<
 *                     "<'%s'> %s" % (self.__class__.__name__, err)
 *                 ) from err
 */
          __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_errors); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1887, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1887, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

          /* "cytimes/pddatetime.py":1888
 *             except Exception as err:
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'> %s" % (self.__class__.__name__, err)             # <<<<<<<<<<<<<<
 *                 ) from err
 *         # <'datetime.date'> subclass
 */
          __pyx_t_11 = PyTuple_New(4); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1888, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_13 = 0;
          __pyx_t_14 = 127;
          __Pyx_INCREF(__pyx_kp_u__17);
          __pyx_t_13 += 2;
          __Pyx_GIVEREF(__pyx_kp_u__17);
          PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u__17);
          __pyx_t_15 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1888, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_15);
          __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_n_s_name_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 1888, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_16);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_16), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1888, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
          __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
          __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_15);
          __pyx_t_15 = 0;
          __Pyx_INCREF(__pyx_kp_u__18);
          __pyx_t_13 += 3;
          __Pyx_GIVEREF(__pyx_kp_u__18);
          PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_kp_u__18);
          __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_err), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1888, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_15);
          __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
          __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_11, 3, __pyx_t_15);
          __pyx_t_15 = 0;
          __pyx_t_15 = __Pyx_PyUnicode_Join(__pyx_t_11, 4, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1888, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          __pyx_t_11 = NULL;
          __pyx_t_10 = 0;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_12))) {
            __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_12);
            if (likely(__pyx_t_11)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
              __Pyx_INCREF(__pyx_t_11);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_12, function);
              __pyx_t_10 = 1;
            }
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_15};
            __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10);
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1887, __pyx_L15_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          }

          /* "cytimes/pddatetime.py":1889
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'> %s" % (self.__class__.__name__, err)
 *                 ) from err             # <<<<<<<<<<<<<<
 *         # <'datetime.date'> subclass
 *         if datetime.PyDate_Check(dtobj):
 */
          __Pyx_Raise(__pyx_t_5, 0, 0, __pyx_v_err);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __PYX_ERR(0, 1887, __pyx_L15_error)
        }

        /* "cytimes/pddatetime.py":1886
 *                     dtobj, default, self._day1st, self._year1st, False, True
 *                 )
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'> %s" % (self.__class__.__name__, err)
 */
        /*finally:*/ {
          __pyx_L15_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
            __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_22);
            __Pyx_XGOTREF(__pyx_t_23);
            __Pyx_XGOTREF(__pyx_t_24);
            __pyx_t_10 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_22);
              __Pyx_XGIVEREF(__pyx_t_23);
              __Pyx_XGIVEREF(__pyx_t_24);
              __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24);
            }
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
            __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18;
            goto __pyx_L6_except_error;
          }
        }
      }
      goto __pyx_L6_except_error;

      /* "cytimes/pddatetime.py":1882
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):
 *             try:             # <<<<<<<<<<<<<<
 *                 return Parser(self._cfg).parse(
 *                     dtobj, default, self._day1st, self._year1st, False, True
 */
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
      goto __pyx_L1_error;
      __pyx_L8_try_return:;
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
      goto __pyx_L0;
    }

    /* "cytimes/pddatetime.py":1881
 *         """(cfunc) Parse 'dtobj' into `<'datetime.datetime'>`."""
 *         # <'str'> datetime string to be parsed
 *         if isinstance(dtobj, str):             # <<<<<<<<<<<<<<
 *             try:
 *                 return Parser(self._cfg).parse(
 */
  }

  /* "cytimes/pddatetime.py":1891
 *                 ) from err
 *         # <'datetime.date'> subclass
 *         if datetime.PyDate_Check(dtobj):             # <<<<<<<<<<<<<<
 *             if datetime.PyDateTime_Check(dtobj):
 *                 return cydt.dt_fr_dt(dtobj) if strict else dtobj
 */
  __pyx_t_1 = PyDate_Check(__pyx_v_dtobj);
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":1892
 *         # <'datetime.date'> subclass
 *         if datetime.PyDate_Check(dtobj):
 *             if datetime.PyDateTime_Check(dtobj):             # <<<<<<<<<<<<<<
 *                 return cydt.dt_fr_dt(dtobj) if strict else dtobj
 *             else:
 */
    __pyx_t_1 = PyDateTime_Check(__pyx_v_dtobj);
    if (__pyx_t_1) {

      /* "cytimes/pddatetime.py":1893
 *         if datetime.PyDate_Check(dtobj):
 *             if datetime.PyDateTime_Check(dtobj):
 *                 return cydt.dt_fr_dt(dtobj) if strict else dtobj             # <<<<<<<<<<<<<<
 *             else:
 *                 return cydt.dt_fr_date(dtobj, None, 0)
 */
      __Pyx_XDECREF((PyObject *)__pyx_r);
      if (__pyx_v_strict) {
        if (!(likely(((__pyx_v_dtobj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtobj, __pyx_ptype_7cpython_8datetime_datetime))))) __PYX_ERR(0, 1893, __pyx_L1_error)
        __pyx_t_7 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt_fr_dt(((PyDateTime_DateTime *)__pyx_v_dtobj))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1893, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_6 = __pyx_t_7;
        __pyx_t_7 = 0;
      } else {
        if (!(likely(((__pyx_v_dtobj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtobj, __pyx_ptype_7cpython_8datetime_datetime))))) __PYX_ERR(0, 1893, __pyx_L1_error)
        __Pyx_INCREF(__pyx_v_dtobj);
        __pyx_t_6 = __pyx_v_dtobj;
      }
      __pyx_r = ((PyDateTime_DateTime *)__pyx_t_6);
      __pyx_t_6 = 0;
      goto __pyx_L0;

      /* "cytimes/pddatetime.py":1892
 *         # <'datetime.date'> subclass
 *         if datetime.PyDate_Check(dtobj):
 *             if datetime.PyDateTime_Check(dtobj):             # <<<<<<<<<<<<<<
 *                 return cydt.dt_fr_dt(dtobj) if strict else dtobj
 *             else:
 */
    }

    /* "cytimes/pddatetime.py":1895
 *                 return cydt.dt_fr_dt(dtobj) if strict else dtobj
 *             else:
 *                 return cydt.dt_fr_date(dtobj, None, 0)             # <<<<<<<<<<<<<<
 *         # <'pydt'>
 *         if isinstance(dtobj, pydt):
 */
    /*else*/ {
      __Pyx_XDECREF((PyObject *)__pyx_r);
      if (!(likely(((__pyx_v_dtobj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtobj, __pyx_ptype_7cpython_8datetime_date))))) __PYX_ERR(0, 1895, __pyx_L1_error)
      __pyx_t_25.__pyx_n = 2;
      __pyx_t_25.tzinfo = ((PyDateTime_TZInfo *)Py_None);
      __pyx_t_25.fold = 0;
      __pyx_t_6 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt_fr_date(((PyDateTime_Date *)__pyx_v_dtobj), &__pyx_t_25)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1895, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_r = ((PyDateTime_DateTime *)__pyx_t_6);
      __pyx_t_6 = 0;
      goto __pyx_L0;
    }

    /* "cytimes/pddatetime.py":1891
 *                 ) from err
 *         # <'datetime.date'> subclass
 *         if datetime.PyDate_Check(dtobj):             # <<<<<<<<<<<<<<
 *             if datetime.PyDateTime_Check(dtobj):
 *                 return cydt.dt_fr_dt(dtobj) if strict else dtobj
 */
  }

  /* "cytimes/pddatetime.py":1897
 *                 return cydt.dt_fr_date(dtobj, None, 0)
 *         # <'pydt'>
 *         if isinstance(dtobj, pydt):             # <<<<<<<<<<<<<<
 *             return access_pydt(dtobj)
 *         # <'numpy.datetime64'>
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dtobj, __pyx_ptype_7cytimes_10pydatetime_pydt); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":1898
 *         # <'pydt'>
 *         if isinstance(dtobj, pydt):
 *             return access_pydt(dtobj)             # <<<<<<<<<<<<<<
 *         # <'numpy.datetime64'>
 *         if np.is_datetime64_object(dtobj):
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    if (!(likely(((__pyx_v_dtobj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtobj, __pyx_ptype_7cytimes_10pydatetime_pydt))))) __PYX_ERR(0, 1898, __pyx_L1_error)
    __pyx_t_6 = ((PyObject *)__pyx_f_7cytimes_10pydatetime_access_pydt(((struct __pyx_obj_7cytimes_10pydatetime_pydt *)__pyx_v_dtobj))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1898, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = ((PyDateTime_DateTime *)__pyx_t_6);
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1897
 *                 return cydt.dt_fr_date(dtobj, None, 0)
 *         # <'pydt'>
 *         if isinstance(dtobj, pydt):             # <<<<<<<<<<<<<<
 *             return access_pydt(dtobj)
 *         # <'numpy.datetime64'>
 */
  }

  /* "cytimes/pddatetime.py":1900
 *             return access_pydt(dtobj)
 *         # <'numpy.datetime64'>
 *         if np.is_datetime64_object(dtobj):             # <<<<<<<<<<<<<<
 *             return cydt.dt64_to_dt(dtobj) if strict else dtobj
 *         # Invalid
 */
  __pyx_t_1 = __pyx_f_5numpy_is_datetime64_object(__pyx_v_dtobj);
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":1901
 *         # <'numpy.datetime64'>
 *         if np.is_datetime64_object(dtobj):
 *             return cydt.dt64_to_dt(dtobj) if strict else dtobj             # <<<<<<<<<<<<<<
 *         # Invalid
 *         raise errors.InvalidDatetimeObjectError(
 */
    __Pyx_XDECREF((PyObject *)__pyx_r);
    if (__pyx_v_strict) {
      __pyx_t_7 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64_to_dt(__pyx_v_dtobj)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1901, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = __pyx_t_7;
      __pyx_t_7 = 0;
    } else {
      if (!(likely(((__pyx_v_dtobj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtobj, __pyx_ptype_7cpython_8datetime_datetime))))) __PYX_ERR(0, 1901, __pyx_L1_error)
      __Pyx_INCREF(__pyx_v_dtobj);
      __pyx_t_6 = __pyx_v_dtobj;
    }
    __pyx_r = ((PyDateTime_DateTime *)__pyx_t_6);
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1900
 *             return access_pydt(dtobj)
 *         # <'numpy.datetime64'>
 *         if np.is_datetime64_object(dtobj):             # <<<<<<<<<<<<<<
 *             return cydt.dt64_to_dt(dtobj) if strict else dtobj
 *         # Invalid
 */
  }

  /* "cytimes/pddatetime.py":1903
 *             return cydt.dt64_to_dt(dtobj) if strict else dtobj
 *         # Invalid
 *         raise errors.InvalidDatetimeObjectError(             # <<<<<<<<<<<<<<
 *             "<'%s'>\nUnsupported 'dtobj' type: %s %r."
 *             % (self.__class__.__name__, type(dtobj), dtobj)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_errors); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cytimes/pddatetime.py":1904
 *         # Invalid
 *         raise errors.InvalidDatetimeObjectError(
 *             "<'%s'>\nUnsupported 'dtobj' type: %s %r."             # <<<<<<<<<<<<<<
 *             % (self.__class__.__name__, type(dtobj), dtobj)
 *         )
 */
  __pyx_t_7 = PyTuple_New(7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_13 = 0;
  __pyx_t_14 = 127;
  __Pyx_INCREF(__pyx_kp_u__17);
  __pyx_t_13 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__17);
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_u__17);

  /* "cytimes/pddatetime.py":1905
 *         raise errors.InvalidDatetimeObjectError(
 *             "<'%s'>\nUnsupported 'dtobj' type: %s %r."
 *             % (self.__class__.__name__, type(dtobj), dtobj)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_name_2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_12), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_14;
  __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u_Unsupported_dtobj_type);
  __pyx_t_13 += 29;
  __Pyx_GIVEREF(__pyx_kp_u_Unsupported_dtobj_type);
  PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u_Unsupported_dtobj_type);
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_dtobj))), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_14;
  __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__7);
  __pyx_t_13 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__7);
  PyTuple_SET_ITEM(__pyx_t_7, 4, __pyx_kp_u__7);
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_dtobj), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_14;
  __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_7, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__8);
  __pyx_t_13 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__8);
  PyTuple_SET_ITEM(__pyx_t_7, 6, __pyx_kp_u__8);

  /* "cytimes/pddatetime.py":1904
 *         # Invalid
 *         raise errors.InvalidDatetimeObjectError(
 *             "<'%s'>\nUnsupported 'dtobj' type: %s %r."             # <<<<<<<<<<<<<<
 *             % (self.__class__.__name__, type(dtobj), dtobj)
 *         )
 */
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_7, 7, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = NULL;
  __pyx_t_17 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
    if (likely(__pyx_t_7)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_8, function);
      __pyx_t_17 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5};
    __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_17, 1+__pyx_t_17);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1903, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_Raise(__pyx_t_6, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __PYX_ERR(0, 1903, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1871
 *         # fmt: on
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _parse_dtobj(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_dtobj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1908
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _parse_dtsobj(
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtsobj, PyObject *__pyx_v_default, PyObject *__pyx_v_name, PyObject *__pyx_v_unit, int __pyx_v_copy) {
  int __pyx_v_is_series;
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  char const *__pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  Py_ssize_t __pyx_t_19;
  Py_UCS4 __pyx_t_20;
  PyObject *__pyx_t_21 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_parse_dtsobj", 1);

  /* "cytimes/pddatetime.py":1919
 *     ) -> object:
 *         """(cfunc) Parse 'dtsobj' into `<'Series[Timestamp]'>`."""
 *         is_series: cython.bint = False             # <<<<<<<<<<<<<<
 *         # <'Series'>
 *         if isinstance(dtsobj, typeref.SERIES):
 */
  __pyx_v_is_series = 0;

  /* "cytimes/pddatetime.py":1921
 *         is_series: cython.bint = False
 *         # <'Series'>
 *         if isinstance(dtsobj, typeref.SERIES):             # <<<<<<<<<<<<<<
 *             if isinstance(dtsobj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 dt = self._adjust_unit(dtsobj, unit, copy)
 */
  __pyx_t_1 = __pyx_v_7cytimes_7typeref_SERIES;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_dtsobj, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1921, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":1922
 *         # <'Series'>
 *         if isinstance(dtsobj, typeref.SERIES):
 *             if isinstance(dtsobj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):             # <<<<<<<<<<<<<<
 *                 dt = self._adjust_unit(dtsobj, unit, copy)
 *                 if name is not None:
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtsobj, __pyx_n_s_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_7cytimes_7typeref_DT64_ARRAY);
    __pyx_t_3 = __pyx_v_7cytimes_7typeref_DT64_ARRAY;
    __Pyx_INCREF(__pyx_v_7cytimes_7typeref_DT64TZ_ARRAY);
    __pyx_t_4 = __pyx_v_7cytimes_7typeref_DT64TZ_ARRAY;
    __pyx_t_5 = PyObject_IsInstance(__pyx_t_1, __pyx_t_3); 
    if (!__pyx_t_5) {
    } else {
      __pyx_t_2 = __pyx_t_5;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_5 = PyObject_IsInstance(__pyx_t_1, __pyx_t_4); 
    __pyx_t_2 = __pyx_t_5;
    __pyx_L5_bool_binop_done:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_2) {

      /* "cytimes/pddatetime.py":1923
 *         if isinstance(dtsobj, typeref.SERIES):
 *             if isinstance(dtsobj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 dt = self._adjust_unit(dtsobj, unit, copy)             # <<<<<<<<<<<<<<
 *                 if name is not None:
 *                     dt.name = name
 */
      __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(__pyx_v_self, __pyx_v_dtsobj, __pyx_v_unit, __pyx_v_copy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1923, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1924
 *             if isinstance(dtsobj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 dt = self._adjust_unit(dtsobj, unit, copy)
 *                 if name is not None:             # <<<<<<<<<<<<<<
 *                     dt.name = name
 *                 return dt
 */
      __pyx_t_2 = (__pyx_v_name != Py_None);
      if (__pyx_t_2) {

        /* "cytimes/pddatetime.py":1925
 *                 dt = self._adjust_unit(dtsobj, unit, copy)
 *                 if name is not None:
 *                     dt.name = name             # <<<<<<<<<<<<<<
 *                 return dt
 *             is_series = True
 */
        if (__Pyx_PyObject_SetAttrStr(__pyx_v_dt, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 1925, __pyx_L1_error)

        /* "cytimes/pddatetime.py":1924
 *             if isinstance(dtsobj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 dt = self._adjust_unit(dtsobj, unit, copy)
 *                 if name is not None:             # <<<<<<<<<<<<<<
 *                     dt.name = name
 *                 return dt
 */
      }

      /* "cytimes/pddatetime.py":1926
 *                 if name is not None:
 *                     dt.name = name
 *                 return dt             # <<<<<<<<<<<<<<
 *             is_series = True
 *         # <'DatetimeIndex'>
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_dt);
      __pyx_r = __pyx_v_dt;
      goto __pyx_L0;

      /* "cytimes/pddatetime.py":1922
 *         # <'Series'>
 *         if isinstance(dtsobj, typeref.SERIES):
 *             if isinstance(dtsobj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):             # <<<<<<<<<<<<<<
 *                 dt = self._adjust_unit(dtsobj, unit, copy)
 *                 if name is not None:
 */
    }

    /* "cytimes/pddatetime.py":1927
 *                     dt.name = name
 *                 return dt
 *             is_series = True             # <<<<<<<<<<<<<<
 *         # <'DatetimeIndex'>
 *         elif isinstance(dtsobj, typeref.DATETIMEINDEX):
 */
    __pyx_v_is_series = 1;

    /* "cytimes/pddatetime.py":1921
 *         is_series: cython.bint = False
 *         # <'Series'>
 *         if isinstance(dtsobj, typeref.SERIES):             # <<<<<<<<<<<<<<
 *             if isinstance(dtsobj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 dt = self._adjust_unit(dtsobj, unit, copy)
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":1929
 *             is_series = True
 *         # <'DatetimeIndex'>
 *         elif isinstance(dtsobj, typeref.DATETIMEINDEX):             # <<<<<<<<<<<<<<
 *             if name is not None:
 *                 dt = typeref.SERIES(dtsobj, name=name)
 */
  __pyx_t_1 = __pyx_v_7cytimes_7typeref_DATETIMEINDEX;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_dtsobj, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1929, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":1930
 *         # <'DatetimeIndex'>
 *         elif isinstance(dtsobj, typeref.DATETIMEINDEX):
 *             if name is not None:             # <<<<<<<<<<<<<<
 *                 dt = typeref.SERIES(dtsobj, name=name)
 *             else:
 */
    __pyx_t_2 = (__pyx_v_name != Py_None);
    if (__pyx_t_2) {

      /* "cytimes/pddatetime.py":1931
 *         elif isinstance(dtsobj, typeref.DATETIMEINDEX):
 *             if name is not None:
 *                 dt = typeref.SERIES(dtsobj, name=name)             # <<<<<<<<<<<<<<
 *             else:
 *                 dt = typeref.SERIES(dtsobj)
 */
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1931, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_v_dtsobj);
      __Pyx_GIVEREF(__pyx_v_dtsobj);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_dtsobj)) __PYX_ERR(0, 1931, __pyx_L1_error);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1931, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 1931, __pyx_L1_error)
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1931, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_dt = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cytimes/pddatetime.py":1930
 *         # <'DatetimeIndex'>
 *         elif isinstance(dtsobj, typeref.DATETIMEINDEX):
 *             if name is not None:             # <<<<<<<<<<<<<<
 *                 dt = typeref.SERIES(dtsobj, name=name)
 *             else:
 */
      goto __pyx_L8;
    }

    /* "cytimes/pddatetime.py":1933
 *                 dt = typeref.SERIES(dtsobj, name=name)
 *             else:
 *                 dt = typeref.SERIES(dtsobj)             # <<<<<<<<<<<<<<
 *             return self._adjust_unit(dt, unit, False)
 *         # <'pddt'>
 */
    /*else*/ {
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_SERIES);
      __pyx_t_3 = __pyx_v_7cytimes_7typeref_SERIES; __pyx_t_1 = NULL;
      __pyx_t_6 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_1)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_1);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_6 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_dtsobj};
        __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1933, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __pyx_v_dt = __pyx_t_4;
      __pyx_t_4 = 0;
    }
    __pyx_L8:;

    /* "cytimes/pddatetime.py":1934
 *             else:
 *                 dt = typeref.SERIES(dtsobj)
 *             return self._adjust_unit(dt, unit, False)             # <<<<<<<<<<<<<<
 *         # <'pddt'>
 *         elif isinstance(dtsobj, pddt):
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(__pyx_v_self, __pyx_v_dt, __pyx_v_unit, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1934, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1929
 *             is_series = True
 *         # <'DatetimeIndex'>
 *         elif isinstance(dtsobj, typeref.DATETIMEINDEX):             # <<<<<<<<<<<<<<
 *             if name is not None:
 *                 dt = typeref.SERIES(dtsobj, name=name)
 */
  }

  /* "cytimes/pddatetime.py":1936
 *             return self._adjust_unit(dt, unit, False)
 *         # <'pddt'>
 *         elif isinstance(dtsobj, pddt):             # <<<<<<<<<<<<<<
 *             dt = self._adjust_unit(access_pddt(dtsobj), unit, copy)  # type: ignore
 *             if name is not None:
 */
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_dtsobj, __pyx_ptype_7cytimes_10pddatetime_pddt); 
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":1937
 *         # <'pddt'>
 *         elif isinstance(dtsobj, pddt):
 *             dt = self._adjust_unit(access_pddt(dtsobj), unit, copy)  # type: ignore             # <<<<<<<<<<<<<<
 *             if name is not None:
 *                 dt.name = name
 */
    if (!(likely(((__pyx_v_dtsobj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtsobj, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 1937, __pyx_L1_error)
    __pyx_t_4 = __pyx_f_7cytimes_10pddatetime_access_pddt(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_dtsobj)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1937, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(__pyx_v_self, __pyx_t_4, __pyx_v_unit, __pyx_v_copy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1937, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_dt = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cytimes/pddatetime.py":1938
 *         elif isinstance(dtsobj, pddt):
 *             dt = self._adjust_unit(access_pddt(dtsobj), unit, copy)  # type: ignore
 *             if name is not None:             # <<<<<<<<<<<<<<
 *                 dt.name = name
 *             return dt
 */
    __pyx_t_2 = (__pyx_v_name != Py_None);
    if (__pyx_t_2) {

      /* "cytimes/pddatetime.py":1939
 *             dt = self._adjust_unit(access_pddt(dtsobj), unit, copy)  # type: ignore
 *             if name is not None:
 *                 dt.name = name             # <<<<<<<<<<<<<<
 *             return dt
 *         # Parse 'dtsobj'
 */
      if (__Pyx_PyObject_SetAttrStr(__pyx_v_dt, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 1939, __pyx_L1_error)

      /* "cytimes/pddatetime.py":1938
 *         elif isinstance(dtsobj, pddt):
 *             dt = self._adjust_unit(access_pddt(dtsobj), unit, copy)  # type: ignore
 *             if name is not None:             # <<<<<<<<<<<<<<
 *                 dt.name = name
 *             return dt
 */
    }

    /* "cytimes/pddatetime.py":1940
 *             if name is not None:
 *                 dt.name = name
 *             return dt             # <<<<<<<<<<<<<<
 *         # Parse 'dtsobj'
 *         try:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_dt);
    __pyx_r = __pyx_v_dt;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1936
 *             return self._adjust_unit(dt, unit, False)
 *         # <'pddt'>
 *         elif isinstance(dtsobj, pddt):             # <<<<<<<<<<<<<<
 *             dt = self._adjust_unit(access_pddt(dtsobj), unit, copy)  # type: ignore
 *             if name is not None:
 */
  }
  __pyx_L3:;

  /* "cytimes/pddatetime.py":1942
 *             return dt
 *         # Parse 'dtsobj'
 *         try:             # <<<<<<<<<<<<<<
 *             dt = FN_PD_TODATETIME(
 *                 dtsobj,
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1943
 *         # Parse 'dtsobj'
 *         try:
 *             dt = FN_PD_TODATETIME(             # <<<<<<<<<<<<<<
 *                 dtsobj,
 *                 errors="raise",
 */
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1943, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_dtsobj);
      __Pyx_GIVEREF(__pyx_v_dtsobj);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_dtsobj)) __PYX_ERR(0, 1943, __pyx_L10_error);

      /* "cytimes/pddatetime.py":1945
 *             dt = FN_PD_TODATETIME(
 *                 dtsobj,
 *                 errors="raise",             # <<<<<<<<<<<<<<
 *                 dayfirst=self._day1st,
 *                 yearfirst=self._year1st,
 */
      __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1945, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_errors, __pyx_n_u_raise) < 0) __PYX_ERR(0, 1945, __pyx_L10_error)

      /* "cytimes/pddatetime.py":1946
 *                 dtsobj,
 *                 errors="raise",
 *                 dayfirst=self._day1st,             # <<<<<<<<<<<<<<
 *                 yearfirst=self._year1st,
 *                 utc=self._utc,
 */
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dayfirst, __pyx_v_self->_day1st) < 0) __PYX_ERR(0, 1945, __pyx_L10_error)

      /* "cytimes/pddatetime.py":1947
 *                 errors="raise",
 *                 dayfirst=self._day1st,
 *                 yearfirst=self._year1st,             # <<<<<<<<<<<<<<
 *                 utc=self._utc,
 *                 format=self._format,
 */
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_yearfirst, __pyx_v_self->_year1st) < 0) __PYX_ERR(0, 1945, __pyx_L10_error)

      /* "cytimes/pddatetime.py":1948
 *                 dayfirst=self._day1st,
 *                 yearfirst=self._year1st,
 *                 utc=self._utc,             # <<<<<<<<<<<<<<
 *                 format=self._format,
 *                 exact=self._exact,
 */
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_utc, __pyx_v_self->_utc) < 0) __PYX_ERR(0, 1945, __pyx_L10_error)

      /* "cytimes/pddatetime.py":1949
 *                 yearfirst=self._year1st,
 *                 utc=self._utc,
 *                 format=self._format,             # <<<<<<<<<<<<<<
 *                 exact=self._exact,
 *                 cache=True,
 */
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_format, __pyx_v_self->_format) < 0) __PYX_ERR(0, 1945, __pyx_L10_error)

      /* "cytimes/pddatetime.py":1950
 *                 utc=self._utc,
 *                 format=self._format,
 *                 exact=self._exact,             # <<<<<<<<<<<<<<
 *                 cache=True,
 *             )
 */
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_exact, __pyx_v_self->_exact) < 0) __PYX_ERR(0, 1945, __pyx_L10_error)

      /* "cytimes/pddatetime.py":1951
 *                 format=self._format,
 *                 exact=self._exact,
 *                 cache=True,             # <<<<<<<<<<<<<<
 *             )
 *         # Fallback
 */
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_cache, Py_True) < 0) __PYX_ERR(0, 1945, __pyx_L10_error)

      /* "cytimes/pddatetime.py":1943
 *         # Parse 'dtsobj'
 *         try:
 *             dt = FN_PD_TODATETIME(             # <<<<<<<<<<<<<<
 *                 dtsobj,
 *                 errors="raise",
 */
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_7cytimes_10pddatetime_FN_PD_TODATETIME, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1943, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_v_dt = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1942
 *             return dt
 *         # Parse 'dtsobj'
 *         try:             # <<<<<<<<<<<<<<
 *             dt = FN_PD_TODATETIME(
 *                 dtsobj,
 */
    }
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    goto __pyx_L15_try_end;
    __pyx_L10_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":1954
 *             )
 *         # Fallback
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             return self._parse_dtsobj_fallback(
 *                 dtsobj, default, name, unit, is_series, err
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_6) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_dtsobj", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_4, &__pyx_t_3) < 0) __PYX_ERR(0, 1954, __pyx_L12_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_v_err = __pyx_t_4;
      /*try:*/ {

        /* "cytimes/pddatetime.py":1955
 *         # Fallback
 *         except Exception as err:
 *             return self._parse_dtsobj_fallback(             # <<<<<<<<<<<<<<
 *                 dtsobj, default, name, unit, is_series, err
 *             )
 */
        __Pyx_XDECREF(__pyx_r);

        /* "cytimes/pddatetime.py":1956
 *         except Exception as err:
 *             return self._parse_dtsobj_fallback(
 *                 dtsobj, default, name, unit, is_series, err             # <<<<<<<<<<<<<<
 *             )
 *         # <'Series'>
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 1956, __pyx_L21_error)

        /* "cytimes/pddatetime.py":1955
 *         # Fallback
 *         except Exception as err:
 *             return self._parse_dtsobj_fallback(             # <<<<<<<<<<<<<<
 *                 dtsobj, default, name, unit, is_series, err
 *             )
 */
        __pyx_t_10 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj_fallback(__pyx_v_self, __pyx_v_dtsobj, __pyx_v_default, __pyx_v_name, __pyx_v_unit, __pyx_v_is_series, ((PyObject*)__pyx_v_err)); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1955, __pyx_L21_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_r = __pyx_t_10;
        __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        goto __pyx_L20_return;
      }

      /* "cytimes/pddatetime.py":1954
 *             )
 *         # Fallback
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             return self._parse_dtsobj_fallback(
 *                 dtsobj, default, name, unit, is_series, err
 */
      /*finally:*/ {
        __pyx_L21_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __pyx_t_6 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18);
          }
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_XGIVEREF(__pyx_t_15);
          __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15);
          __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
          __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_12;
          goto __pyx_L12_except_error;
        }
        __pyx_L20_return: {
          __pyx_t_18 = __pyx_r;
          __pyx_r = 0;
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          __pyx_r = __pyx_t_18;
          __pyx_t_18 = 0;
          goto __pyx_L13_except_return;
        }
      }
    }
    goto __pyx_L12_except_error;

    /* "cytimes/pddatetime.py":1942
 *             return dt
 *         # Parse 'dtsobj'
 *         try:             # <<<<<<<<<<<<<<
 *             dt = FN_PD_TODATETIME(
 *                 dtsobj,
 */
    __pyx_L12_except_error:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    goto __pyx_L1_error;
    __pyx_L13_except_return:;
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
    goto __pyx_L0;
    __pyx_L15_try_end:;
  }

  /* "cytimes/pddatetime.py":1959
 *             )
 *         # <'Series'>
 *         if isinstance(dt, typeref.SERIES):             # <<<<<<<<<<<<<<
 *             if name is not None:
 *                 dt.name = name
 */
  __pyx_t_3 = __pyx_v_7cytimes_7typeref_SERIES;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_dt, __pyx_t_3); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1959, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":1960
 *         # <'Series'>
 *         if isinstance(dt, typeref.SERIES):
 *             if name is not None:             # <<<<<<<<<<<<<<
 *                 dt.name = name
 *             return self._adjust_unit(dt, unit, False)
 */
    __pyx_t_2 = (__pyx_v_name != Py_None);
    if (__pyx_t_2) {

      /* "cytimes/pddatetime.py":1961
 *         if isinstance(dt, typeref.SERIES):
 *             if name is not None:
 *                 dt.name = name             # <<<<<<<<<<<<<<
 *             return self._adjust_unit(dt, unit, False)
 *         # <'DatetimeIndex'>
 */
      if (__Pyx_PyObject_SetAttrStr(__pyx_v_dt, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 1961, __pyx_L1_error)

      /* "cytimes/pddatetime.py":1960
 *         # <'Series'>
 *         if isinstance(dt, typeref.SERIES):
 *             if name is not None:             # <<<<<<<<<<<<<<
 *                 dt.name = name
 *             return self._adjust_unit(dt, unit, False)
 */
    }

    /* "cytimes/pddatetime.py":1962
 *             if name is not None:
 *                 dt.name = name
 *             return self._adjust_unit(dt, unit, False)             # <<<<<<<<<<<<<<
 *         # <'DatetimeIndex'>
 *         if isinstance(dt, typeref.DATETIMEINDEX):
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(__pyx_v_self, __pyx_v_dt, __pyx_v_unit, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1962, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1959
 *             )
 *         # <'Series'>
 *         if isinstance(dt, typeref.SERIES):             # <<<<<<<<<<<<<<
 *             if name is not None:
 *                 dt.name = name
 */
  }

  /* "cytimes/pddatetime.py":1964
 *             return self._adjust_unit(dt, unit, False)
 *         # <'DatetimeIndex'>
 *         if isinstance(dt, typeref.DATETIMEINDEX):             # <<<<<<<<<<<<<<
 *             if name is not None:
 *                 dt = typeref.SERIES(dt, name=name)
 */
  __pyx_t_3 = __pyx_v_7cytimes_7typeref_DATETIMEINDEX;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_dt, __pyx_t_3); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1964, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":1965
 *         # <'DatetimeIndex'>
 *         if isinstance(dt, typeref.DATETIMEINDEX):
 *             if name is not None:             # <<<<<<<<<<<<<<
 *                 dt = typeref.SERIES(dt, name=name)
 *             else:
 */
    __pyx_t_2 = (__pyx_v_name != Py_None);
    if (__pyx_t_2) {

      /* "cytimes/pddatetime.py":1966
 *         if isinstance(dt, typeref.DATETIMEINDEX):
 *             if name is not None:
 *                 dt = typeref.SERIES(dt, name=name)             # <<<<<<<<<<<<<<
 *             else:
 *                 dt = typeref.SERIES(dt)
 */
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1966, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_dt);
      __Pyx_GIVEREF(__pyx_v_dt);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_dt)) __PYX_ERR(0, 1966, __pyx_L1_error);
      __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1966, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 1966, __pyx_L1_error)
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1966, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1965
 *         # <'DatetimeIndex'>
 *         if isinstance(dt, typeref.DATETIMEINDEX):
 *             if name is not None:             # <<<<<<<<<<<<<<
 *                 dt = typeref.SERIES(dt, name=name)
 *             else:
 */
      goto __pyx_L30;
    }

    /* "cytimes/pddatetime.py":1968
 *                 dt = typeref.SERIES(dt, name=name)
 *             else:
 *                 dt = typeref.SERIES(dt)             # <<<<<<<<<<<<<<
 *             return self._adjust_unit(dt, unit, False)
 *         # Invalid
 */
    /*else*/ {
      __Pyx_INCREF(__pyx_v_7cytimes_7typeref_SERIES);
      __pyx_t_4 = __pyx_v_7cytimes_7typeref_SERIES; __pyx_t_3 = NULL;
      __pyx_t_11 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
          __pyx_t_11 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dt};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1968, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
      __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
      __pyx_t_1 = 0;
    }
    __pyx_L30:;

    /* "cytimes/pddatetime.py":1969
 *             else:
 *                 dt = typeref.SERIES(dt)
 *             return self._adjust_unit(dt, unit, False)             # <<<<<<<<<<<<<<
 *         # Invalid
 *         raise errors.InvalidDatetimeObjectError(
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(__pyx_v_self, __pyx_v_dt, __pyx_v_unit, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":1964
 *             return self._adjust_unit(dt, unit, False)
 *         # <'DatetimeIndex'>
 *         if isinstance(dt, typeref.DATETIMEINDEX):             # <<<<<<<<<<<<<<
 *             if name is not None:
 *                 dt = typeref.SERIES(dt, name=name)
 */
  }

  /* "cytimes/pddatetime.py":1971
 *             return self._adjust_unit(dt, unit, False)
 *         # Invalid
 *         raise errors.InvalidDatetimeObjectError(             # <<<<<<<<<<<<<<
 *             "<'%s'>\nUnsupported 'dtsobj' type: %s."
 *             % (self.__class__.__name__, type(dtsobj))
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_errors); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":1972
 *         # Invalid
 *         raise errors.InvalidDatetimeObjectError(
 *             "<'%s'>\nUnsupported 'dtsobj' type: %s."             # <<<<<<<<<<<<<<
 *             % (self.__class__.__name__, type(dtsobj))
 *         )
 */
  __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_19 = 0;
  __pyx_t_20 = 127;
  __Pyx_INCREF(__pyx_kp_u__17);
  __pyx_t_19 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__17);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u__17);

  /* "cytimes/pddatetime.py":1973
 *         raise errors.InvalidDatetimeObjectError(
 *             "<'%s'>\nUnsupported 'dtsobj' type: %s."
 *             % (self.__class__.__name__, type(dtsobj))             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_10 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_21 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_name_2); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 1973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_21), __pyx_empty_unicode); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
  __pyx_t_20 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) > __pyx_t_20) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) : __pyx_t_20;
  __pyx_t_19 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_10);
  __pyx_t_10 = 0;
  __Pyx_INCREF(__pyx_kp_u_Unsupported_dtsobj_type);
  __pyx_t_19 += 30;
  __Pyx_GIVEREF(__pyx_kp_u_Unsupported_dtsobj_type);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_Unsupported_dtsobj_type);
  __pyx_t_10 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_dtsobj))), __pyx_empty_unicode); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_20 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) > __pyx_t_20) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) : __pyx_t_20;
  __pyx_t_19 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_10);
  __pyx_t_10 = 0;
  __Pyx_INCREF(__pyx_kp_u__8);
  __pyx_t_19 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__8);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u__8);

  /* "cytimes/pddatetime.py":1972
 *         # Invalid
 *         raise errors.InvalidDatetimeObjectError(
 *             "<'%s'>\nUnsupported 'dtsobj' type: %s."             # <<<<<<<<<<<<<<
 *             % (self.__class__.__name__, type(dtsobj))
 *         )
 */
  __pyx_t_10 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_19, __pyx_t_20); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  __pyx_t_11 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_11 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_10};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1971, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1971, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1908
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _parse_dtsobj(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_21);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_dtsobj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":1976
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _parse_dtsobj_fallback(
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj_fallback(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dtsobj, PyObject *__pyx_v_default, PyObject *__pyx_v_name, PyObject *__pyx_v_unit, int __pyx_v_is_series, PyObject *__pyx_v_exc) {
  PyObject *__pyx_v_dts = 0;
  int __pyx_v_utc;
  PyObject *__pyx_v_tz = 0;
  PyObject *__pyx_v_obj = NULL;
  PyDateTime_DateTime *__pyx_v_i = 0;
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_tzinfo = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_UCS4 __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  int __pyx_t_16;
  int __pyx_t_17;
  char const *__pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  PyObject *__pyx_t_25 = NULL;
  PyObject *__pyx_t_26 = NULL;
  char const *__pyx_t_27;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_parse_dtsobj_fallback", 0);
  __Pyx_INCREF(__pyx_v_default);

  /* "cytimes/pddatetime.py":1993
 *         """
 *         # Parse each element into timezone-naive datetime
 *         dts: list = []             # <<<<<<<<<<<<<<
 *         default: object = self._default
 *         utc: cython.bint = self._utc
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_dts = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":1994
 *         # Parse each element into timezone-naive datetime
 *         dts: list = []
 *         default: object = self._default             # <<<<<<<<<<<<<<
 *         utc: cython.bint = self._utc
 *         tz: object = None
 */
  __pyx_t_1 = __pyx_v_self->_default;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_default, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":1995
 *         dts: list = []
 *         default: object = self._default
 *         utc: cython.bint = self._utc             # <<<<<<<<<<<<<<
 *         tz: object = None
 *         try:
 */
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_self->_utc); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1995, __pyx_L1_error)
  __pyx_v_utc = __pyx_t_2;

  /* "cytimes/pddatetime.py":1996
 *         default: object = self._default
 *         utc: cython.bint = self._utc
 *         tz: object = None             # <<<<<<<<<<<<<<
 *         try:
 *             for obj in dtsobj:
 */
  __Pyx_INCREF(Py_None);
  __pyx_v_tz = Py_None;

  /* "cytimes/pddatetime.py":1997
 *         utc: cython.bint = self._utc
 *         tz: object = None
 *         try:             # <<<<<<<<<<<<<<
 *             for obj in dtsobj:
 *                 i: datetime.datetime = self._parse_dtobj(obj, default, True)
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "cytimes/pddatetime.py":1998
 *         tz: object = None
 *         try:
 *             for obj in dtsobj:             # <<<<<<<<<<<<<<
 *                 i: datetime.datetime = self._parse_dtobj(obj, default, True)
 *                 if (tzinfo := i.tzinfo) is not None:
 */
      if (likely(PyList_CheckExact(__pyx_v_dtsobj)) || PyTuple_CheckExact(__pyx_v_dtsobj)) {
        __pyx_t_1 = __pyx_v_dtsobj; __Pyx_INCREF(__pyx_t_1);
        __pyx_t_6 = 0;
        __pyx_t_7 = NULL;
      } else {
        __pyx_t_6 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_dtsobj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1998, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_7 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1998, __pyx_L3_error)
      }
      for (;;) {
        if (likely(!__pyx_t_7)) {
          if (likely(PyList_CheckExact(__pyx_t_1))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
              #if !CYTHON_ASSUME_SAFE_MACROS
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1998, __pyx_L3_error)
              #endif
              if (__pyx_t_6 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_8 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 1998, __pyx_L3_error)
            #else
            __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1998, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_8);
            #endif
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
              #if !CYTHON_ASSUME_SAFE_MACROS
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1998, __pyx_L3_error)
              #endif
              if (__pyx_t_6 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 1998, __pyx_L3_error)
            #else
            __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1998, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_8);
            #endif
          }
        } else {
          __pyx_t_8 = __pyx_t_7(__pyx_t_1);
          if (unlikely(!__pyx_t_8)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 1998, __pyx_L3_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_8);
        }
        __Pyx_XDECREF_SET(__pyx_v_obj, __pyx_t_8);
        __pyx_t_8 = 0;

        /* "cytimes/pddatetime.py":1999
 *         try:
 *             for obj in dtsobj:
 *                 i: datetime.datetime = self._parse_dtobj(obj, default, True)             # <<<<<<<<<<<<<<
 *                 if (tzinfo := i.tzinfo) is not None:
 *                     # . convert to utc & remove timezone
 */
        __pyx_t_8 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtobj(__pyx_v_self, __pyx_v_obj, __pyx_v_default, 1)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1999, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_XDECREF_SET(__pyx_v_i, ((PyDateTime_DateTime *)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cytimes/pddatetime.py":2000
 *             for obj in dtsobj:
 *                 i: datetime.datetime = self._parse_dtobj(obj, default, True)
 *                 if (tzinfo := i.tzinfo) is not None:             # <<<<<<<<<<<<<<
 *                     # . convert to utc & remove timezone
 *                     if utc:
 */
        __pyx_t_8 = __pyx_f_7cpython_8datetime_8datetime_6tzinfo_tzinfo(__pyx_v_i); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2000, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_XDECREF_SET(__pyx_v_tzinfo, __pyx_t_8);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_2 = (__pyx_t_8 != Py_None);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (__pyx_t_2) {

          /* "cytimes/pddatetime.py":2002
 *                 if (tzinfo := i.tzinfo) is not None:
 *                     # . convert to utc & remove timezone
 *                     if utc:             # <<<<<<<<<<<<<<
 *                         i = cydt.dt_replace_tzinfo(
 *                             cydt.dt_astimezone(i, cydt.UTC), None
 */
          if (__pyx_v_utc) {

            /* "cytimes/pddatetime.py":2004
 *                     if utc:
 *                         i = cydt.dt_replace_tzinfo(
 *                             cydt.dt_astimezone(i, cydt.UTC), None             # <<<<<<<<<<<<<<
 *                         )
 *                     # . remove timezone
 */
            __pyx_t_8 = ((PyObject *)__pyx_v_7cytimes_10cydatetime_UTC);
            __Pyx_INCREF(__pyx_t_8);
            __pyx_t_9 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt_astimezone(__pyx_v_i, ((PyDateTime_TZInfo *)__pyx_t_8))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2004, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_9);
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

            /* "cytimes/pddatetime.py":2003
 *                     # . convert to utc & remove timezone
 *                     if utc:
 *                         i = cydt.dt_replace_tzinfo(             # <<<<<<<<<<<<<<
 *                             cydt.dt_astimezone(i, cydt.UTC), None
 *                         )
 */
            __pyx_t_8 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt_replace_tzinfo(((PyDateTime_DateTime *)__pyx_t_9), ((PyDateTime_TZInfo *)Py_None))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2003, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
            __Pyx_DECREF_SET(__pyx_v_i, ((PyDateTime_DateTime *)__pyx_t_8));
            __pyx_t_8 = 0;

            /* "cytimes/pddatetime.py":2002
 *                 if (tzinfo := i.tzinfo) is not None:
 *                     # . convert to utc & remove timezone
 *                     if utc:             # <<<<<<<<<<<<<<
 *                         i = cydt.dt_replace_tzinfo(
 *                             cydt.dt_astimezone(i, cydt.UTC), None
 */
            goto __pyx_L12;
          }

          /* "cytimes/pddatetime.py":2007
 *                         )
 *                     # . remove timezone
 *                     elif tz is tzinfo:             # <<<<<<<<<<<<<<
 *                         i = cydt.dt_replace_tzinfo(i, None)
 *                     # . set & remove timezone
 */
          __pyx_t_2 = (__pyx_v_tz == __pyx_v_tzinfo);
          if (__pyx_t_2) {

            /* "cytimes/pddatetime.py":2008
 *                     # . remove timezone
 *                     elif tz is tzinfo:
 *                         i = cydt.dt_replace_tzinfo(i, None)             # <<<<<<<<<<<<<<
 *                     # . set & remove timezone
 *                     elif tz is None:
 */
            __pyx_t_8 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt_replace_tzinfo(__pyx_v_i, ((PyDateTime_TZInfo *)Py_None))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2008, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_DECREF_SET(__pyx_v_i, ((PyDateTime_DateTime *)__pyx_t_8));
            __pyx_t_8 = 0;

            /* "cytimes/pddatetime.py":2007
 *                         )
 *                     # . remove timezone
 *                     elif tz is tzinfo:             # <<<<<<<<<<<<<<
 *                         i = cydt.dt_replace_tzinfo(i, None)
 *                     # . set & remove timezone
 */
            goto __pyx_L12;
          }

          /* "cytimes/pddatetime.py":2010
 *                         i = cydt.dt_replace_tzinfo(i, None)
 *                     # . set & remove timezone
 *                     elif tz is None:             # <<<<<<<<<<<<<<
 *                         i = cydt.dt_replace_tzinfo(i, None)
 *                         tz = tzinfo
 */
          __pyx_t_2 = (__pyx_v_tz == Py_None);
          if (likely(__pyx_t_2)) {

            /* "cytimes/pddatetime.py":2011
 *                     # . set & remove timezone
 *                     elif tz is None:
 *                         i = cydt.dt_replace_tzinfo(i, None)             # <<<<<<<<<<<<<<
 *                         tz = tzinfo
 *                     # . multiple timezones
 */
            __pyx_t_8 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt_replace_tzinfo(__pyx_v_i, ((PyDateTime_TZInfo *)Py_None))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2011, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_DECREF_SET(__pyx_v_i, ((PyDateTime_DateTime *)__pyx_t_8));
            __pyx_t_8 = 0;

            /* "cytimes/pddatetime.py":2012
 *                     elif tz is None:
 *                         i = cydt.dt_replace_tzinfo(i, None)
 *                         tz = tzinfo             # <<<<<<<<<<<<<<
 *                     # . multiple timezones
 *                     else:
 */
            __Pyx_INCREF(__pyx_v_tzinfo);
            __Pyx_DECREF_SET(__pyx_v_tz, __pyx_v_tzinfo);

            /* "cytimes/pddatetime.py":2010
 *                         i = cydt.dt_replace_tzinfo(i, None)
 *                     # . set & remove timezone
 *                     elif tz is None:             # <<<<<<<<<<<<<<
 *                         i = cydt.dt_replace_tzinfo(i, None)
 *                         tz = tzinfo
 */
            goto __pyx_L12;
          }

          /* "cytimes/pddatetime.py":2015
 *                     # . multiple timezones
 *                     else:
 *                         raise errors.InvalidDatetimeObjectError(             # <<<<<<<<<<<<<<
 *                             "<'%s'>\nCannot parse 'dtsobj' into DatetimeArray when it "
 *                             "contains different timezones, unless setting 'utc=True'.\n"
 */
          /*else*/ {
            __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_errors); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2015, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_9);
            __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2015, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_10);
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

            /* "cytimes/pddatetime.py":2016
 *                     else:
 *                         raise errors.InvalidDatetimeObjectError(
 *                             "<'%s'>\nCannot parse 'dtsobj' into DatetimeArray when it "             # <<<<<<<<<<<<<<
 *                             "contains different timezones, unless setting 'utc=True'.\n"
 *                             "Conflict timezones: '%s' and '%s'."
 */
            __pyx_t_9 = PyTuple_New(7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2016, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_9);
            __pyx_t_11 = 0;
            __pyx_t_12 = 127;
            __Pyx_INCREF(__pyx_kp_u__17);
            __pyx_t_11 += 2;
            __Pyx_GIVEREF(__pyx_kp_u__17);
            PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u__17);

            /* "cytimes/pddatetime.py":2019
 *                             "contains different timezones, unless setting 'utc=True'.\n"
 *                             "Conflict timezones: '%s' and '%s'."
 *                             % (self.__class__.__name__, tz, tzinfo)             # <<<<<<<<<<<<<<
 *                         )
 *                 dts.append(i)
 */
            __pyx_t_13 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2019, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_13);
            __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_n_s_name_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2019, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_14);
            __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            __pyx_t_13 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_14), __pyx_empty_unicode); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2019, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
            __pyx_t_12 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) > __pyx_t_12) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) : __pyx_t_12;
            __pyx_t_11 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13);
            __Pyx_GIVEREF(__pyx_t_13);
            PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_13);
            __pyx_t_13 = 0;
            __Pyx_INCREF(__pyx_kp_u_Cannot_parse_dtsobj_into_Dateti);
            __pyx_t_11 += 130;
            __Pyx_GIVEREF(__pyx_kp_u_Cannot_parse_dtsobj_into_Dateti);
            PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_kp_u_Cannot_parse_dtsobj_into_Dateti);
            __pyx_t_13 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_tz), __pyx_empty_unicode); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2019, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_13);
            __pyx_t_12 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) > __pyx_t_12) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) : __pyx_t_12;
            __pyx_t_11 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13);
            __Pyx_GIVEREF(__pyx_t_13);
            PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_13);
            __pyx_t_13 = 0;
            __Pyx_INCREF(__pyx_kp_u_and);
            __pyx_t_11 += 7;
            __Pyx_GIVEREF(__pyx_kp_u_and);
            PyTuple_SET_ITEM(__pyx_t_9, 4, __pyx_kp_u_and);
            __pyx_t_13 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_tzinfo), __pyx_empty_unicode); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2019, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_13);
            __pyx_t_12 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) > __pyx_t_12) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) : __pyx_t_12;
            __pyx_t_11 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13);
            __Pyx_GIVEREF(__pyx_t_13);
            PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_t_13);
            __pyx_t_13 = 0;
            __Pyx_INCREF(__pyx_kp_u__19);
            __pyx_t_11 += 2;
            __Pyx_GIVEREF(__pyx_kp_u__19);
            PyTuple_SET_ITEM(__pyx_t_9, 6, __pyx_kp_u__19);

            /* "cytimes/pddatetime.py":2016
 *                     else:
 *                         raise errors.InvalidDatetimeObjectError(
 *                             "<'%s'>\nCannot parse 'dtsobj' into DatetimeArray when it "             # <<<<<<<<<<<<<<
 *                             "contains different timezones, unless setting 'utc=True'.\n"
 *                             "Conflict timezones: '%s' and '%s'."
 */
            __pyx_t_13 = __Pyx_PyUnicode_Join(__pyx_t_9, 7, __pyx_t_11, __pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2016, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
            __pyx_t_9 = NULL;
            __pyx_t_15 = 0;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_10))) {
              __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_10);
              if (likely(__pyx_t_9)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
                __Pyx_INCREF(__pyx_t_9);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_10, function);
                __pyx_t_15 = 1;
              }
            }
            #endif
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_13};
              __pyx_t_8 = __Pyx_PyObject_FastCall(__pyx_t_10, __pyx_callargs+1-__pyx_t_15, 1+__pyx_t_15);
              __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
              __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
              if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2015, __pyx_L3_error)
              __Pyx_GOTREF(__pyx_t_8);
              __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
            }
            __Pyx_Raise(__pyx_t_8, 0, 0, 0);
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
            __PYX_ERR(0, 2015, __pyx_L3_error)
          }
          __pyx_L12:;

          /* "cytimes/pddatetime.py":2000
 *             for obj in dtsobj:
 *                 i: datetime.datetime = self._parse_dtobj(obj, default, True)
 *                 if (tzinfo := i.tzinfo) is not None:             # <<<<<<<<<<<<<<
 *                     # . convert to utc & remove timezone
 *                     if utc:
 */
        }

        /* "cytimes/pddatetime.py":2021
 *                             % (self.__class__.__name__, tz, tzinfo)
 *                         )
 *                 dts.append(i)             # <<<<<<<<<<<<<<
 *         except errors.PddtError as err:
 *             raise err from exc
 */
        __pyx_t_16 = __Pyx_PyList_Append(__pyx_v_dts, ((PyObject *)__pyx_v_i)); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(0, 2021, __pyx_L3_error)

        /* "cytimes/pddatetime.py":1998
 *         tz: object = None
 *         try:
 *             for obj in dtsobj:             # <<<<<<<<<<<<<<
 *                 i: datetime.datetime = self._parse_dtobj(obj, default, True)
 *                 if (tzinfo := i.tzinfo) is not None:
 */
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":1997
 *         utc: cython.bint = self._utc
 *         tz: object = None
 *         try:             # <<<<<<<<<<<<<<
 *             for obj in dtsobj:
 *                 i: datetime.datetime = self._parse_dtobj(obj, default, True)
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cytimes/pddatetime.py":2022
 *                         )
 *                 dts.append(i)
 *         except errors.PddtError as err:             # <<<<<<<<<<<<<<
 *             raise err from exc
 *         except Exception:
 */
    __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_8, &__pyx_t_10);
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_errors); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2022, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_13);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_n_s_PddtError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2022, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_15 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_9);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_ErrRestore(__pyx_t_1, __pyx_t_8, __pyx_t_10);
    __pyx_t_1 = 0; __pyx_t_8 = 0; __pyx_t_10 = 0;
    if (__pyx_t_15) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_dtsobj_fallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_8, &__pyx_t_1) < 0) __PYX_ERR(0, 2022, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __pyx_v_err = __pyx_t_8;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2023
 *                 dts.append(i)
 *         except errors.PddtError as err:
 *             raise err from exc             # <<<<<<<<<<<<<<
 *         except Exception:
 *             raise errors.InvalidDatetimeObjectError(
 */
        __Pyx_Raise(__pyx_v_err, 0, 0, __pyx_v_exc);
        __PYX_ERR(0, 2023, __pyx_L19_error)
      }

      /* "cytimes/pddatetime.py":2022
 *                         )
 *                 dts.append(i)
 *         except errors.PddtError as err:             # <<<<<<<<<<<<<<
 *             raise err from exc
 *         except Exception:
 */
      /*finally:*/ {
        __pyx_L19_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_19);
          __Pyx_XGOTREF(__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_24);
          __pyx_t_15 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_22);
            __Pyx_XGIVEREF(__pyx_t_23);
            __Pyx_XGIVEREF(__pyx_t_24);
            __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24);
          }
          __Pyx_XGIVEREF(__pyx_t_19);
          __Pyx_XGIVEREF(__pyx_t_20);
          __Pyx_XGIVEREF(__pyx_t_21);
          __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21);
          __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
          __pyx_lineno = __pyx_t_15; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18;
          goto __pyx_L5_except_error;
        }
      }
    }

    /* "cytimes/pddatetime.py":2024
 *         except errors.PddtError as err:
 *             raise err from exc
 *         except Exception:             # <<<<<<<<<<<<<<
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'%s'>\nUnsupported 'dtsobj' type: %s."
 */
    __pyx_t_17 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_17) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_dtsobj_fallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_8, &__pyx_t_10) < 0) __PYX_ERR(0, 2024, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_10);

      /* "cytimes/pddatetime.py":2025
 *             raise err from exc
 *         except Exception:
 *             raise errors.InvalidDatetimeObjectError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\nUnsupported 'dtsobj' type: %s."
 *                 % (self.__class__.__name__, type(dtsobj))
 */
      __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_errors); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2025, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2025, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

      /* "cytimes/pddatetime.py":2026
 *         except Exception:
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'%s'>\nUnsupported 'dtsobj' type: %s."             # <<<<<<<<<<<<<<
 *                 % (self.__class__.__name__, type(dtsobj))
 *             ) from exc
 */
      __pyx_t_13 = PyTuple_New(5); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2026, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_6 = 0;
      __pyx_t_12 = 127;
      __Pyx_INCREF(__pyx_kp_u__17);
      __pyx_t_6 += 2;
      __Pyx_GIVEREF(__pyx_kp_u__17);
      PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_kp_u__17);

      /* "cytimes/pddatetime.py":2027
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'%s'>\nUnsupported 'dtsobj' type: %s."
 *                 % (self.__class__.__name__, type(dtsobj))             # <<<<<<<<<<<<<<
 *             ) from exc
 *         # Construact Series[Timestamp]
 */
      __pyx_t_25 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 2027, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_25);
      __pyx_t_26 = __Pyx_PyObject_GetAttrStr(__pyx_t_25, __pyx_n_s_name_2); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 2027, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_26);
      __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0;
      __pyx_t_25 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_26), __pyx_empty_unicode); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 2027, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_25);
      __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0;
      __pyx_t_12 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_25) > __pyx_t_12) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_25) : __pyx_t_12;
      __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_25);
      __Pyx_GIVEREF(__pyx_t_25);
      PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_25);
      __pyx_t_25 = 0;
      __Pyx_INCREF(__pyx_kp_u_Unsupported_dtsobj_type);
      __pyx_t_6 += 30;
      __Pyx_GIVEREF(__pyx_kp_u_Unsupported_dtsobj_type);
      PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_kp_u_Unsupported_dtsobj_type);
      __pyx_t_25 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_dtsobj))), __pyx_empty_unicode); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 2027, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_25);
      __pyx_t_12 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_25) > __pyx_t_12) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_25) : __pyx_t_12;
      __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_25);
      __Pyx_GIVEREF(__pyx_t_25);
      PyTuple_SET_ITEM(__pyx_t_13, 3, __pyx_t_25);
      __pyx_t_25 = 0;
      __Pyx_INCREF(__pyx_kp_u__8);
      __pyx_t_6 += 1;
      __Pyx_GIVEREF(__pyx_kp_u__8);
      PyTuple_SET_ITEM(__pyx_t_13, 4, __pyx_kp_u__8);

      /* "cytimes/pddatetime.py":2026
 *         except Exception:
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'%s'>\nUnsupported 'dtsobj' type: %s."             # <<<<<<<<<<<<<<
 *                 % (self.__class__.__name__, type(dtsobj))
 *             ) from exc
 */
      __pyx_t_25 = __Pyx_PyUnicode_Join(__pyx_t_13, 5, __pyx_t_6, __pyx_t_12); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 2026, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_25);
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __pyx_t_13 = NULL;
      __pyx_t_17 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_14))) {
        __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_14);
        if (likely(__pyx_t_13)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14);
          __Pyx_INCREF(__pyx_t_13);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_14, function);
          __pyx_t_17 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_25};
        __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_14, __pyx_callargs+1-__pyx_t_17, 1+__pyx_t_17);
        __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
        __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2025, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }

      /* "cytimes/pddatetime.py":2028
 *                 "<'%s'>\nUnsupported 'dtsobj' type: %s."
 *                 % (self.__class__.__name__, type(dtsobj))
 *             ) from exc             # <<<<<<<<<<<<<<
 *         # Construact Series[Timestamp]
 *         try:
 */
      __Pyx_Raise(__pyx_t_9, 0, 0, __pyx_v_exc);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(0, 2025, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":1997
 *         utc: cython.bint = self._utc
 *         tz: object = None
 *         try:             # <<<<<<<<<<<<<<
 *             for obj in dtsobj:
 *                 i: datetime.datetime = self._parse_dtobj(obj, default, True)
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":2030
 *             ) from exc
 *         # Construact Series[Timestamp]
 *         try:             # <<<<<<<<<<<<<<
 *             if is_series:
 *                 # fmt: off
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2031
 *         # Construact Series[Timestamp]
 *         try:
 *             if is_series:             # <<<<<<<<<<<<<<
 *                 # fmt: off
 *                 dt: Series = typeref.SERIES(
 */
      if (__pyx_v_is_series) {

        /* "cytimes/pddatetime.py":2033
 *             if is_series:
 *                 # fmt: off
 *                 dt: Series = typeref.SERIES(             # <<<<<<<<<<<<<<
 *                     dts, index=dtsobj.index, dtype="<M8[us]",
 *                     name=dtsobj.name if name is None else name,
 */
        __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2033, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_v_dts);
        __Pyx_GIVEREF(__pyx_v_dts);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_dts)) __PYX_ERR(0, 2033, __pyx_L27_error);

        /* "cytimes/pddatetime.py":2034
 *                 # fmt: off
 *                 dt: Series = typeref.SERIES(
 *                     dts, index=dtsobj.index, dtype="<M8[us]",             # <<<<<<<<<<<<<<
 *                     name=dtsobj.name if name is None else name,
 *                 )
 */
        __pyx_t_8 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2034, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtsobj, __pyx_n_s_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2034, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_index, __pyx_t_1) < 0) __PYX_ERR(0, 2034, __pyx_L27_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_kp_u_M8_us) < 0) __PYX_ERR(0, 2034, __pyx_L27_error)

        /* "cytimes/pddatetime.py":2035
 *                 dt: Series = typeref.SERIES(
 *                     dts, index=dtsobj.index, dtype="<M8[us]",
 *                     name=dtsobj.name if name is None else name,             # <<<<<<<<<<<<<<
 *                 )
 *                 # fmt: on
 */
        __pyx_t_2 = (__pyx_v_name == Py_None);
        if (__pyx_t_2) {
          __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtsobj, __pyx_n_s_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2035, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_t_1 = __pyx_t_9;
          __pyx_t_9 = 0;
        } else {
          __Pyx_INCREF(__pyx_v_name);
          __pyx_t_1 = __pyx_v_name;
        }
        if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_name, __pyx_t_1) < 0) __PYX_ERR(0, 2034, __pyx_L27_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":2033
 *             if is_series:
 *                 # fmt: off
 *                 dt: Series = typeref.SERIES(             # <<<<<<<<<<<<<<
 *                     dts, index=dtsobj.index, dtype="<M8[us]",
 *                     name=dtsobj.name if name is None else name,
 */
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2033, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_v_dt = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "cytimes/pddatetime.py":2031
 *         # Construact Series[Timestamp]
 *         try:
 *             if is_series:             # <<<<<<<<<<<<<<
 *                 # fmt: off
 *                 dt: Series = typeref.SERIES(
 */
        goto __pyx_L33;
      }

      /* "cytimes/pddatetime.py":2039
 *                 # fmt: on
 *             else:
 *                 dt: Series = typeref.SERIES(dts, dtype="<M8[us]", name=name)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             raise errors.InvalidDatetimeObjectError(
 */
      /*else*/ {
        __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2039, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_v_dts);
        __Pyx_GIVEREF(__pyx_v_dts);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_dts)) __PYX_ERR(0, 2039, __pyx_L27_error);
        __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2039, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_kp_u_M8_us) < 0) __PYX_ERR(0, 2039, __pyx_L27_error)
        if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 2039, __pyx_L27_error)
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2039, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_v_dt = __pyx_t_10;
        __pyx_t_10 = 0;
      }
      __pyx_L33:;

      /* "cytimes/pddatetime.py":2030
 *             ) from exc
 *         # Construact Series[Timestamp]
 *         try:             # <<<<<<<<<<<<<<
 *             if is_series:
 *                 # fmt: off
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L32_try_end;
    __pyx_L27_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
    __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0;
    __Pyx_XDECREF(__pyx_t_26); __pyx_t_26 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cytimes/pddatetime.py":2040
 *             else:
 *                 dt: Series = typeref.SERIES(dts, dtype="<M8[us]", name=name)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'%s'>\nFailed to parse 'dtsobj': %s" % (self.__class__.__name__, err)
 */
    __pyx_t_17 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_17) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_dtsobj_fallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_8, &__pyx_t_1) < 0) __PYX_ERR(0, 2040, __pyx_L29_except_error)
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __pyx_v_err = __pyx_t_8;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2041
 *                 dt: Series = typeref.SERIES(dts, dtype="<M8[us]", name=name)
 *         except Exception as err:
 *             raise errors.InvalidDatetimeObjectError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\nFailed to parse 'dtsobj': %s" % (self.__class__.__name__, err)
 *             ) from exc
 */
        __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_errors); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2041, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_25 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 2041, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_25);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

        /* "cytimes/pddatetime.py":2042
 *         except Exception as err:
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'%s'>\nFailed to parse 'dtsobj': %s" % (self.__class__.__name__, err)             # <<<<<<<<<<<<<<
 *             ) from exc
 *         # Adjust unit
 */
        __pyx_t_14 = PyTuple_New(4); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2042, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_6 = 0;
        __pyx_t_12 = 127;
        __Pyx_INCREF(__pyx_kp_u__17);
        __pyx_t_6 += 2;
        __Pyx_GIVEREF(__pyx_kp_u__17);
        PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_kp_u__17);
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2042, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_26 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_n_s_name_2); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 2042, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_26);
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_t_13 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_26), __pyx_empty_unicode); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2042, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0;
        __pyx_t_12 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) > __pyx_t_12) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) : __pyx_t_12;
        __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13);
        __Pyx_GIVEREF(__pyx_t_13);
        PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_13);
        __pyx_t_13 = 0;
        __Pyx_INCREF(__pyx_kp_u_Failed_to_parse_dtsobj);
        __pyx_t_6 += 29;
        __Pyx_GIVEREF(__pyx_kp_u_Failed_to_parse_dtsobj);
        PyTuple_SET_ITEM(__pyx_t_14, 2, __pyx_kp_u_Failed_to_parse_dtsobj);
        __pyx_t_13 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_err), __pyx_empty_unicode); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2042, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_12 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) > __pyx_t_12) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) : __pyx_t_12;
        __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13);
        __Pyx_GIVEREF(__pyx_t_13);
        PyTuple_SET_ITEM(__pyx_t_14, 3, __pyx_t_13);
        __pyx_t_13 = 0;
        __pyx_t_13 = __Pyx_PyUnicode_Join(__pyx_t_14, 4, __pyx_t_6, __pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2042, __pyx_L39_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_14 = NULL;
        __pyx_t_17 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_25))) {
          __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_25);
          if (likely(__pyx_t_14)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_25);
            __Pyx_INCREF(__pyx_t_14);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_25, function);
            __pyx_t_17 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_13};
          __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_25, __pyx_callargs+1-__pyx_t_17, 1+__pyx_t_17);
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2041, __pyx_L39_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0;
        }

        /* "cytimes/pddatetime.py":2043
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'%s'>\nFailed to parse 'dtsobj': %s" % (self.__class__.__name__, err)
 *             ) from exc             # <<<<<<<<<<<<<<
 *         # Adjust unit
 *         dt = self._adjust_unit(dt, unit, False)
 */
        __Pyx_Raise(__pyx_t_9, 0, 0, __pyx_v_exc);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __PYX_ERR(0, 2041, __pyx_L39_error)
      }

      /* "cytimes/pddatetime.py":2040
 *             else:
 *                 dt: Series = typeref.SERIES(dts, dtype="<M8[us]", name=name)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             raise errors.InvalidDatetimeObjectError(
 *                 "<'%s'>\nFailed to parse 'dtsobj': %s" % (self.__class__.__name__, err)
 */
      /*finally:*/ {
        __pyx_L39_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_24 = 0; __pyx_t_23 = 0; __pyx_t_22 = 0; __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0;
          __Pyx_XDECREF(__pyx_t_26); __pyx_t_26 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_20, &__pyx_t_19);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_24, &__pyx_t_23, &__pyx_t_22) < 0)) __Pyx_ErrFetch(&__pyx_t_24, &__pyx_t_23, &__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_24);
          __Pyx_XGOTREF(__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_19);
          __pyx_t_17 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_27 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_20, __pyx_t_19);
          }
          __Pyx_XGIVEREF(__pyx_t_24);
          __Pyx_XGIVEREF(__pyx_t_23);
          __Pyx_XGIVEREF(__pyx_t_22);
          __Pyx_ErrRestore(__pyx_t_24, __pyx_t_23, __pyx_t_22);
          __pyx_t_24 = 0; __pyx_t_23 = 0; __pyx_t_22 = 0; __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0;
          __pyx_lineno = __pyx_t_17; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_27;
          goto __pyx_L29_except_error;
        }
      }
    }
    goto __pyx_L29_except_error;

    /* "cytimes/pddatetime.py":2030
 *             ) from exc
 *         # Construact Series[Timestamp]
 *         try:             # <<<<<<<<<<<<<<
 *             if is_series:
 *                 # fmt: off
 */
    __pyx_L29_except_error:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L32_try_end:;
  }

  /* "cytimes/pddatetime.py":2045
 *             ) from exc
 *         # Adjust unit
 *         dt = self._adjust_unit(dt, unit, False)             # <<<<<<<<<<<<<<
 *         # Adjust timezone
 *         if utc:
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(__pyx_v_self, __pyx_v_dt, __pyx_v_unit, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2047
 *         dt = self._adjust_unit(dt, unit, False)
 *         # Adjust timezone
 *         if utc:             # <<<<<<<<<<<<<<
 *             dt = dt.dt.tz_localize(cydt.UTC)
 *         elif tz is not None:
 */
  if (__pyx_v_utc) {

    /* "cytimes/pddatetime.py":2048
 *         # Adjust timezone
 *         if utc:
 *             dt = dt.dt.tz_localize(cydt.UTC)             # <<<<<<<<<<<<<<
 *         elif tz is not None:
 *             dt = dt.dt.tz_localize(tz)
 */
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = NULL;
    __pyx_t_15 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
        __pyx_t_15 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, ((PyObject *)__pyx_v_7cytimes_10cydatetime_UTC)};
      __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_10, __pyx_callargs+1-__pyx_t_15, 1+__pyx_t_15);
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2048, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2047
 *         dt = self._adjust_unit(dt, unit, False)
 *         # Adjust timezone
 *         if utc:             # <<<<<<<<<<<<<<
 *             dt = dt.dt.tz_localize(cydt.UTC)
 *         elif tz is not None:
 */
    goto __pyx_L45;
  }

  /* "cytimes/pddatetime.py":2049
 *         if utc:
 *             dt = dt.dt.tz_localize(cydt.UTC)
 *         elif tz is not None:             # <<<<<<<<<<<<<<
 *             dt = dt.dt.tz_localize(tz)
 *         # Return
 */
  __pyx_t_2 = (__pyx_v_tz != Py_None);
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2050
 *             dt = dt.dt.tz_localize(cydt.UTC)
 *         elif tz is not None:
 *             dt = dt.dt.tz_localize(tz)             # <<<<<<<<<<<<<<
 *         # Return
 *         return dt
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2050, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2050, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = NULL;
    __pyx_t_15 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
        __pyx_t_15 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_v_tz};
      __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_15, 1+__pyx_t_15);
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2050, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    }
    __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2049
 *         if utc:
 *             dt = dt.dt.tz_localize(cydt.UTC)
 *         elif tz is not None:             # <<<<<<<<<<<<<<
 *             dt = dt.dt.tz_localize(tz)
 *         # Return
 */
  }
  __pyx_L45:;

  /* "cytimes/pddatetime.py":2052
 *             dt = dt.dt.tz_localize(tz)
 *         # Return
 *         return dt             # <<<<<<<<<<<<<<
 * 
 *     @cython.cfunc
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_dt);
  __pyx_r = __pyx_v_dt;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":1976
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _parse_dtsobj_fallback(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_25);
  __Pyx_XDECREF(__pyx_t_26);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_dtsobj_fallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dts);
  __Pyx_XDECREF(__pyx_v_tz);
  __Pyx_XDECREF(__pyx_v_obj);
  __Pyx_XDECREF((PyObject *)__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_tzinfo);
  __Pyx_XDECREF(__pyx_v_default);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2054
 *         return dt
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     @cython.exceptval(-2, check=False)
 */

static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__parse_month(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_month) {
  PyObject *__pyx_v_mth = 0;
  PyObject *__pyx_v_val;
  int __pyx_v_num;
  PyObject *__pyx_v_err = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  Py_UCS4 __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_t_17;
  char const *__pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_parse_month", 1);

  /* "cytimes/pddatetime.py":2063
 *         is None or -1, else raise `InvalidMonthError`."""
 *         # <'NoneType'>
 *         if month is None:             # <<<<<<<<<<<<<<
 *             return -1  # exit
 * 
 */
  __pyx_t_1 = (__pyx_v_month == Py_None);
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2064
 *         # <'NoneType'>
 *         if month is None:
 *             return -1  # exit             # <<<<<<<<<<<<<<
 * 
 *         # <'str'>
 */
    __pyx_r = -1;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2063
 *         is None or -1, else raise `InvalidMonthError`."""
 *         # <'NoneType'>
 *         if month is None:             # <<<<<<<<<<<<<<
 *             return -1  # exit
 * 
 */
  }

  /* "cytimes/pddatetime.py":2067
 * 
 *         # <'str'>
 *         if isinstance(month, str):             # <<<<<<<<<<<<<<
 *             mth: str = month
 *             val = dict_getitem(
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_month); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2068
 *         # <'str'>
 *         if isinstance(month, str):
 *             mth: str = month             # <<<<<<<<<<<<<<
 *             val = dict_getitem(
 *                 CONFIG_MONTH if self._cfg is None else self._cfg._month,
 */
    if (!(likely(PyUnicode_CheckExact(__pyx_v_month))||((__pyx_v_month) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_month))) __PYX_ERR(0, 2068, __pyx_L1_error)
    __pyx_t_2 = __pyx_v_month;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_mth = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cytimes/pddatetime.py":2070
 *             mth: str = month
 *             val = dict_getitem(
 *                 CONFIG_MONTH if self._cfg is None else self._cfg._month,             # <<<<<<<<<<<<<<
 *                 mth.lower(),
 *             )
 */
    __pyx_t_1 = (((PyObject *)__pyx_v_self->_cfg) == Py_None);
    if (__pyx_t_1) {
      __Pyx_INCREF(__pyx_v_7cytimes_8cyparser_CONFIG_MONTH);
      __pyx_t_2 = __pyx_v_7cytimes_8cyparser_CONFIG_MONTH;
    } else {
      __Pyx_INCREF(__pyx_v_self->_cfg->_month);
      __pyx_t_2 = __pyx_v_self->_cfg->_month;
    }

    /* "cytimes/pddatetime.py":2071
 *             val = dict_getitem(
 *                 CONFIG_MONTH if self._cfg is None else self._cfg._month,
 *                 mth.lower(),             # <<<<<<<<<<<<<<
 *             )
 *             if val == cython.NULL:
 */
    __pyx_t_3 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyUnicode_Type_lower, __pyx_v_mth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2071, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "cytimes/pddatetime.py":2069
 *         if isinstance(month, str):
 *             mth: str = month
 *             val = dict_getitem(             # <<<<<<<<<<<<<<
 *                 CONFIG_MONTH if self._cfg is None else self._cfg._month,
 *                 mth.lower(),
 */
    __pyx_v_val = PyDict_GetItem(__pyx_t_2, __pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cytimes/pddatetime.py":2073
 *                 mth.lower(),
 *             )
 *             if val == cython.NULL:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nFailed to parse 'month' string: '%s'."
 */
    __pyx_t_1 = (__pyx_v_val == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cytimes/pddatetime.py":2074
 *             )
 *             if val == cython.NULL:
 *                 raise errors.InvalidMonthError(             # <<<<<<<<<<<<<<
 *                     "<'%s'>\nFailed to parse 'month' string: '%s'."
 *                     % (self.__class__.__name__, month)
 */
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_errors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2074, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_InvalidMonthError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2074, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":2075
 *             if val == cython.NULL:
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nFailed to parse 'month' string: '%s'."             # <<<<<<<<<<<<<<
 *                     % (self.__class__.__name__, month)
 *                 )
 */
      __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2075, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = 0;
      __pyx_t_6 = 127;
      __Pyx_INCREF(__pyx_kp_u__17);
      __pyx_t_5 += 2;
      __Pyx_GIVEREF(__pyx_kp_u__17);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u__17);

      /* "cytimes/pddatetime.py":2076
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nFailed to parse 'month' string: '%s'."
 *                     % (self.__class__.__name__, month)             # <<<<<<<<<<<<<<
 *                 )
 *             return cython.cast(object, val)  # exit
 */
      __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2076, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_name_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2076, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_8), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2076, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
      __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_7);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7);
      __pyx_t_7 = 0;
      __Pyx_INCREF(__pyx_kp_u_Failed_to_parse_month_string);
      __pyx_t_5 += 36;
      __Pyx_GIVEREF(__pyx_kp_u_Failed_to_parse_month_string);
      PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_kp_u_Failed_to_parse_month_string);
      __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_month), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2076, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
      __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_7);
      PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_7);
      __pyx_t_7 = 0;
      __Pyx_INCREF(__pyx_kp_u__19);
      __pyx_t_5 += 2;
      __Pyx_GIVEREF(__pyx_kp_u__19);
      PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_kp_u__19);

      /* "cytimes/pddatetime.py":2075
 *             if val == cython.NULL:
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nFailed to parse 'month' string: '%s'."             # <<<<<<<<<<<<<<
 *                     % (self.__class__.__name__, month)
 *                 )
 */
      __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_2, 5, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2075, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = NULL;
      __pyx_t_9 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
          __pyx_t_9 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
        __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2074, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 2074, __pyx_L1_error)

      /* "cytimes/pddatetime.py":2073
 *                 mth.lower(),
 *             )
 *             if val == cython.NULL:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nFailed to parse 'month' string: '%s'."
 */
    }

    /* "cytimes/pddatetime.py":2078
 *                     % (self.__class__.__name__, month)
 *                 )
 *             return cython.cast(object, val)  # exit             # <<<<<<<<<<<<<<
 * 
 *         # <'int'>
 */
    __pyx_t_9 = __Pyx_PyInt_As_int(((PyObject *)__pyx_v_val)); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2078, __pyx_L1_error)
    __pyx_r = __pyx_t_9;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2067
 * 
 *         # <'str'>
 *         if isinstance(month, str):             # <<<<<<<<<<<<<<
 *             mth: str = month
 *             val = dict_getitem(
 */
  }

  /* "cytimes/pddatetime.py":2081
 * 
 *         # <'int'>
 *         if isinstance(month, int):             # <<<<<<<<<<<<<<
 *             try:
 *                 num: cython.int = month
 */
  __pyx_t_1 = PyInt_Check(__pyx_v_month); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2082
 *         # <'int'>
 *         if isinstance(month, int):
 *             try:             # <<<<<<<<<<<<<<
 *                 num: cython.int = month
 *                 if num == -1:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cytimes/pddatetime.py":2083
 *         if isinstance(month, int):
 *             try:
 *                 num: cython.int = month             # <<<<<<<<<<<<<<
 *                 if num == -1:
 *                     return -1  # exit
 */
        __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_month); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2083, __pyx_L7_error)
        __pyx_v_num = __pyx_t_9;

        /* "cytimes/pddatetime.py":2084
 *             try:
 *                 num: cython.int = month
 *                 if num == -1:             # <<<<<<<<<<<<<<
 *                     return -1  # exit
 *                 if not 1 <= num <= 12:
 */
        __pyx_t_1 = (__pyx_v_num == -1L);
        if (__pyx_t_1) {

          /* "cytimes/pddatetime.py":2085
 *                 num: cython.int = month
 *                 if num == -1:
 *                     return -1  # exit             # <<<<<<<<<<<<<<
 *                 if not 1 <= num <= 12:
 *                     raise ValueError
 */
          __pyx_r = -1;
          goto __pyx_L11_try_return;

          /* "cytimes/pddatetime.py":2084
 *             try:
 *                 num: cython.int = month
 *                 if num == -1:             # <<<<<<<<<<<<<<
 *                     return -1  # exit
 *                 if not 1 <= num <= 12:
 */
        }

        /* "cytimes/pddatetime.py":2086
 *                 if num == -1:
 *                     return -1  # exit
 *                 if not 1 <= num <= 12:             # <<<<<<<<<<<<<<
 *                     raise ValueError
 *                 return num  # exit
 */
        __pyx_t_1 = (1 <= __pyx_v_num);
        if (__pyx_t_1) {
          __pyx_t_1 = (__pyx_v_num <= 12);
        }
        __pyx_t_13 = (!__pyx_t_1);
        if (unlikely(__pyx_t_13)) {

          /* "cytimes/pddatetime.py":2087
 *                     return -1  # exit
 *                 if not 1 <= num <= 12:
 *                     raise ValueError             # <<<<<<<<<<<<<<
 *                 return num  # exit
 *             except Exception as err:
 */
          __Pyx_Raise(__pyx_builtin_ValueError, 0, 0, 0);
          __PYX_ERR(0, 2087, __pyx_L7_error)

          /* "cytimes/pddatetime.py":2086
 *                 if num == -1:
 *                     return -1  # exit
 *                 if not 1 <= num <= 12:             # <<<<<<<<<<<<<<
 *                     raise ValueError
 *                 return num  # exit
 */
        }

        /* "cytimes/pddatetime.py":2088
 *                 if not 1 <= num <= 12:
 *                     raise ValueError
 *                 return num  # exit             # <<<<<<<<<<<<<<
 *             except Exception as err:
 *                 raise errors.InvalidMonthError(
 */
        __pyx_r = __pyx_v_num;
        goto __pyx_L11_try_return;

        /* "cytimes/pddatetime.py":2082
 *         # <'int'>
 *         if isinstance(month, int):
 *             try:             # <<<<<<<<<<<<<<
 *                 num: cython.int = month
 *                 if num == -1:
 */
      }
      __pyx_L7_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cytimes/pddatetime.py":2089
 *                     raise ValueError
 *                 return num  # exit
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nInvalid 'month' value '%d', must between "
 */
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_4, &__pyx_t_7) < 0) __PYX_ERR(0, 2089, __pyx_L9_except_error)
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v_err = __pyx_t_4;
        /*try:*/ {

          /* "cytimes/pddatetime.py":2090
 *                 return num  # exit
 *             except Exception as err:
 *                 raise errors.InvalidMonthError(             # <<<<<<<<<<<<<<
 *                     "<'%s'>\nInvalid 'month' value '%d', must between "
 *                     "1(Jan)..12(Dec)." % (self.__class__.__name__, month)
 */
          __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_errors); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2090, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_InvalidMonthError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2090, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

          /* "cytimes/pddatetime.py":2091
 *             except Exception as err:
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nInvalid 'month' value '%d', must between "             # <<<<<<<<<<<<<<
 *                     "1(Jan)..12(Dec)." % (self.__class__.__name__, month)
 *                 ) from err
 */
          __pyx_t_8 = PyTuple_New(5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2091, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_5 = 0;
          __pyx_t_6 = 127;
          __Pyx_INCREF(__pyx_kp_u__17);
          __pyx_t_5 += 2;
          __Pyx_GIVEREF(__pyx_kp_u__17);
          PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_u__17);

          /* "cytimes/pddatetime.py":2092
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nInvalid 'month' value '%d', must between "
 *                     "1(Jan)..12(Dec)." % (self.__class__.__name__, month)             # <<<<<<<<<<<<<<
 *                 ) from err
 * 
 */
          __pyx_t_15 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2092, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_15);
          __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_n_s_name_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2092, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_16);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_16), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2092, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
          __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_6;
          __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_15);
          __pyx_t_15 = 0;
          __Pyx_INCREF(__pyx_kp_u_Invalid_month_value);
          __pyx_t_5 += 26;
          __Pyx_GIVEREF(__pyx_kp_u_Invalid_month_value);
          PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_kp_u_Invalid_month_value);
          __pyx_t_15 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_IntOrLong(__pyx_v_month), __pyx_n_u_d); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2092, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_15);
          __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_6;
          __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_15);
          __pyx_t_15 = 0;
          __Pyx_INCREF(__pyx_kp_u_must_between_1_Jan_12_Dec);
          __pyx_t_5 += 32;
          __Pyx_GIVEREF(__pyx_kp_u_must_between_1_Jan_12_Dec);
          PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_kp_u_must_between_1_Jan_12_Dec);

          /* "cytimes/pddatetime.py":2091
 *             except Exception as err:
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nInvalid 'month' value '%d', must between "             # <<<<<<<<<<<<<<
 *                     "1(Jan)..12(Dec)." % (self.__class__.__name__, month)
 *                 ) from err
 */
          __pyx_t_15 = __Pyx_PyUnicode_Join(__pyx_t_8, 5, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2091, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = NULL;
          __pyx_t_9 = 0;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_14))) {
            __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_14);
            if (likely(__pyx_t_8)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14);
              __Pyx_INCREF(__pyx_t_8);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_14, function);
              __pyx_t_9 = 1;
            }
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_15};
            __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_14, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
            __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
            __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2090, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          }

          /* "cytimes/pddatetime.py":2093
 *                     "<'%s'>\nInvalid 'month' value '%d', must between "
 *                     "1(Jan)..12(Dec)." % (self.__class__.__name__, month)
 *                 ) from err             # <<<<<<<<<<<<<<
 * 
 *         # Incorrect data type
 */
          __Pyx_Raise(__pyx_t_2, 0, 0, __pyx_v_err);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __PYX_ERR(0, 2090, __pyx_L20_error)
        }

        /* "cytimes/pddatetime.py":2089
 *                     raise ValueError
 *                 return num  # exit
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidMonthError(
 *                     "<'%s'>\nInvalid 'month' value '%d', must between "
 */
        /*finally:*/ {
          __pyx_L20_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
            __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
            __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_22);
            __Pyx_XGOTREF(__pyx_t_23);
            __Pyx_XGOTREF(__pyx_t_24);
            __pyx_t_9 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_22);
              __Pyx_XGIVEREF(__pyx_t_23);
              __Pyx_XGIVEREF(__pyx_t_24);
              __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24);
            }
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
            __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18;
            goto __pyx_L9_except_error;
          }
        }
      }
      goto __pyx_L9_except_error;

      /* "cytimes/pddatetime.py":2082
 *         # <'int'>
 *         if isinstance(month, int):
 *             try:             # <<<<<<<<<<<<<<
 *                 num: cython.int = month
 *                 if num == -1:
 */
      __pyx_L9_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L11_try_return:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L0;
    }

    /* "cytimes/pddatetime.py":2081
 * 
 *         # <'int'>
 *         if isinstance(month, int):             # <<<<<<<<<<<<<<
 *             try:
 *                 num: cython.int = month
 */
  }

  /* "cytimes/pddatetime.py":2096
 * 
 *         # Incorrect data type
 *         raise errors.InvalidMonthError(             # <<<<<<<<<<<<<<
 *             "<'%s'>\nInvalid 'month' data type: %s %r."
 *             % (self.__class__.__name__, type(month), month)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_errors); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_InvalidMonthError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":2097
 *         # Incorrect data type
 *         raise errors.InvalidMonthError(
 *             "<'%s'>\nInvalid 'month' data type: %s %r."             # <<<<<<<<<<<<<<
 *             % (self.__class__.__name__, type(month), month)
 *         )
 */
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 0;
  __pyx_t_6 = 127;
  __Pyx_INCREF(__pyx_kp_u__17);
  __pyx_t_5 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__17);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u__17);

  /* "cytimes/pddatetime.py":2098
 *         raise errors.InvalidMonthError(
 *             "<'%s'>\nInvalid 'month' data type: %s %r."
 *             % (self.__class__.__name__, type(month), month)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_14);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_14), __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
  __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) : __pyx_t_6;
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __pyx_t_2 = 0;
  __Pyx_INCREF(__pyx_kp_u_Invalid_month_data_type);
  __pyx_t_5 += 30;
  __Pyx_GIVEREF(__pyx_kp_u_Invalid_month_data_type);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_Invalid_month_data_type);
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_month))), __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) : __pyx_t_6;
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __pyx_t_2 = 0;
  __Pyx_INCREF(__pyx_kp_u__7);
  __pyx_t_5 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__7);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u__7);
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_month), __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) : __pyx_t_6;
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_2);
  __pyx_t_2 = 0;
  __Pyx_INCREF(__pyx_kp_u__8);
  __pyx_t_5 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__8);
  PyTuple_SET_ITEM(__pyx_t_4, 6, __pyx_kp_u__8);

  /* "cytimes/pddatetime.py":2097
 *         # Incorrect data type
 *         raise errors.InvalidMonthError(
 *             "<'%s'>\nInvalid 'month' data type: %s %r."             # <<<<<<<<<<<<<<
 *             % (self.__class__.__name__, type(month), month)
 *         )
 */
  __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_4, 7, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  __pyx_t_17 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_17 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_2};
    __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_17, 1+__pyx_t_17);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2096, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_Raise(__pyx_t_7, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __PYX_ERR(0, 2096, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2054
 *         return dt
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     @cython.exceptval(-2, check=False)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_month", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -2;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_mth);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2101
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     @cython.exceptval(-2, check=False)
 */

static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__parse_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_weekday) {
  PyObject *__pyx_v_wkd = 0;
  PyObject *__pyx_v_val;
  int __pyx_v_num;
  PyObject *__pyx_v_err = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  Py_UCS4 __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_t_17;
  char const *__pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_parse_weekday", 1);

  /* "cytimes/pddatetime.py":2110
 *         is None or -1, else raise `InvalidWeekdayError`."""
 *         # <'NoneType'>
 *         if weekday is None:             # <<<<<<<<<<<<<<
 *             return -1  # exit
 * 
 */
  __pyx_t_1 = (__pyx_v_weekday == Py_None);
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2111
 *         # <'NoneType'>
 *         if weekday is None:
 *             return -1  # exit             # <<<<<<<<<<<<<<
 * 
 *         # <'str'>
 */
    __pyx_r = -1;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2110
 *         is None or -1, else raise `InvalidWeekdayError`."""
 *         # <'NoneType'>
 *         if weekday is None:             # <<<<<<<<<<<<<<
 *             return -1  # exit
 * 
 */
  }

  /* "cytimes/pddatetime.py":2114
 * 
 *         # <'str'>
 *         if isinstance(weekday, str):             # <<<<<<<<<<<<<<
 *             wkd: str = weekday
 *             val = dict_getitem(
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_weekday); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2115
 *         # <'str'>
 *         if isinstance(weekday, str):
 *             wkd: str = weekday             # <<<<<<<<<<<<<<
 *             val = dict_getitem(
 *                 CONFIG_WEEKDAY if self._cfg is None else self._cfg._weekday,
 */
    if (!(likely(PyUnicode_CheckExact(__pyx_v_weekday))||((__pyx_v_weekday) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_weekday))) __PYX_ERR(0, 2115, __pyx_L1_error)
    __pyx_t_2 = __pyx_v_weekday;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_wkd = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cytimes/pddatetime.py":2117
 *             wkd: str = weekday
 *             val = dict_getitem(
 *                 CONFIG_WEEKDAY if self._cfg is None else self._cfg._weekday,             # <<<<<<<<<<<<<<
 *                 wkd.lower(),
 *             )
 */
    __pyx_t_1 = (((PyObject *)__pyx_v_self->_cfg) == Py_None);
    if (__pyx_t_1) {
      __Pyx_INCREF(__pyx_v_7cytimes_8cyparser_CONFIG_WEEKDAY);
      __pyx_t_2 = __pyx_v_7cytimes_8cyparser_CONFIG_WEEKDAY;
    } else {
      __Pyx_INCREF(__pyx_v_self->_cfg->_weekday);
      __pyx_t_2 = __pyx_v_self->_cfg->_weekday;
    }

    /* "cytimes/pddatetime.py":2118
 *             val = dict_getitem(
 *                 CONFIG_WEEKDAY if self._cfg is None else self._cfg._weekday,
 *                 wkd.lower(),             # <<<<<<<<<<<<<<
 *             )
 *             if val == cython.NULL:
 */
    __pyx_t_3 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyUnicode_Type_lower, __pyx_v_wkd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "cytimes/pddatetime.py":2116
 *         if isinstance(weekday, str):
 *             wkd: str = weekday
 *             val = dict_getitem(             # <<<<<<<<<<<<<<
 *                 CONFIG_WEEKDAY if self._cfg is None else self._cfg._weekday,
 *                 wkd.lower(),
 */
    __pyx_v_val = PyDict_GetItem(__pyx_t_2, __pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cytimes/pddatetime.py":2120
 *                 wkd.lower(),
 *             )
 *             if val == cython.NULL:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nFailed to parse 'weekday' string: '%s'."
 */
    __pyx_t_1 = (__pyx_v_val == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cytimes/pddatetime.py":2121
 *             )
 *             if val == cython.NULL:
 *                 raise errors.InvalidWeekdayError(             # <<<<<<<<<<<<<<
 *                     "<'%s'>\nFailed to parse 'weekday' string: '%s'."
 *                     % (self.__class__.__name__, weekday)
 */
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_errors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2121, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_InvalidWeekdayError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2121, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cytimes/pddatetime.py":2122
 *             if val == cython.NULL:
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nFailed to parse 'weekday' string: '%s'."             # <<<<<<<<<<<<<<
 *                     % (self.__class__.__name__, weekday)
 *                 )
 */
      __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = 0;
      __pyx_t_6 = 127;
      __Pyx_INCREF(__pyx_kp_u__17);
      __pyx_t_5 += 2;
      __Pyx_GIVEREF(__pyx_kp_u__17);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u__17);

      /* "cytimes/pddatetime.py":2123
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nFailed to parse 'weekday' string: '%s'."
 *                     % (self.__class__.__name__, weekday)             # <<<<<<<<<<<<<<
 *                 )
 *             return cython.cast(object, val)  # exit
 */
      __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2123, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_name_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2123, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_8), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2123, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
      __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_7);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7);
      __pyx_t_7 = 0;
      __Pyx_INCREF(__pyx_kp_u_Failed_to_parse_weekday_string);
      __pyx_t_5 += 38;
      __Pyx_GIVEREF(__pyx_kp_u_Failed_to_parse_weekday_string);
      PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_kp_u_Failed_to_parse_weekday_string);
      __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_weekday), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2123, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
      __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_7);
      PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_7);
      __pyx_t_7 = 0;
      __Pyx_INCREF(__pyx_kp_u__19);
      __pyx_t_5 += 2;
      __Pyx_GIVEREF(__pyx_kp_u__19);
      PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_kp_u__19);

      /* "cytimes/pddatetime.py":2122
 *             if val == cython.NULL:
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nFailed to parse 'weekday' string: '%s'."             # <<<<<<<<<<<<<<
 *                     % (self.__class__.__name__, weekday)
 *                 )
 */
      __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_2, 5, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = NULL;
      __pyx_t_9 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
          __pyx_t_9 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
        __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2121, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 2121, __pyx_L1_error)

      /* "cytimes/pddatetime.py":2120
 *                 wkd.lower(),
 *             )
 *             if val == cython.NULL:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nFailed to parse 'weekday' string: '%s'."
 */
    }

    /* "cytimes/pddatetime.py":2125
 *                     % (self.__class__.__name__, weekday)
 *                 )
 *             return cython.cast(object, val)  # exit             # <<<<<<<<<<<<<<
 * 
 *         # <'int'>
 */
    __pyx_t_9 = __Pyx_PyInt_As_int(((PyObject *)__pyx_v_val)); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2125, __pyx_L1_error)
    __pyx_r = __pyx_t_9;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2114
 * 
 *         # <'str'>
 *         if isinstance(weekday, str):             # <<<<<<<<<<<<<<
 *             wkd: str = weekday
 *             val = dict_getitem(
 */
  }

  /* "cytimes/pddatetime.py":2128
 * 
 *         # <'int'>
 *         if isinstance(weekday, int):             # <<<<<<<<<<<<<<
 *             try:
 *                 num: cython.int = weekday
 */
  __pyx_t_1 = PyInt_Check(__pyx_v_weekday); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2129
 *         # <'int'>
 *         if isinstance(weekday, int):
 *             try:             # <<<<<<<<<<<<<<
 *                 num: cython.int = weekday
 *                 if num == -1:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cytimes/pddatetime.py":2130
 *         if isinstance(weekday, int):
 *             try:
 *                 num: cython.int = weekday             # <<<<<<<<<<<<<<
 *                 if num == -1:
 *                     return num  # exit
 */
        __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_weekday); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2130, __pyx_L7_error)
        __pyx_v_num = __pyx_t_9;

        /* "cytimes/pddatetime.py":2131
 *             try:
 *                 num: cython.int = weekday
 *                 if num == -1:             # <<<<<<<<<<<<<<
 *                     return num  # exit
 *                 if not 0 <= num <= 6:
 */
        __pyx_t_1 = (__pyx_v_num == -1L);
        if (__pyx_t_1) {

          /* "cytimes/pddatetime.py":2132
 *                 num: cython.int = weekday
 *                 if num == -1:
 *                     return num  # exit             # <<<<<<<<<<<<<<
 *                 if not 0 <= num <= 6:
 *                     raise ValueError
 */
          __pyx_r = __pyx_v_num;
          goto __pyx_L11_try_return;

          /* "cytimes/pddatetime.py":2131
 *             try:
 *                 num: cython.int = weekday
 *                 if num == -1:             # <<<<<<<<<<<<<<
 *                     return num  # exit
 *                 if not 0 <= num <= 6:
 */
        }

        /* "cytimes/pddatetime.py":2133
 *                 if num == -1:
 *                     return num  # exit
 *                 if not 0 <= num <= 6:             # <<<<<<<<<<<<<<
 *                     raise ValueError
 *                 return num  # exit
 */
        __pyx_t_1 = (0 <= __pyx_v_num);
        if (__pyx_t_1) {
          __pyx_t_1 = (__pyx_v_num <= 6);
        }
        __pyx_t_13 = (!__pyx_t_1);
        if (unlikely(__pyx_t_13)) {

          /* "cytimes/pddatetime.py":2134
 *                     return num  # exit
 *                 if not 0 <= num <= 6:
 *                     raise ValueError             # <<<<<<<<<<<<<<
 *                 return num  # exit
 *             except Exception as err:
 */
          __Pyx_Raise(__pyx_builtin_ValueError, 0, 0, 0);
          __PYX_ERR(0, 2134, __pyx_L7_error)

          /* "cytimes/pddatetime.py":2133
 *                 if num == -1:
 *                     return num  # exit
 *                 if not 0 <= num <= 6:             # <<<<<<<<<<<<<<
 *                     raise ValueError
 *                 return num  # exit
 */
        }

        /* "cytimes/pddatetime.py":2135
 *                 if not 0 <= num <= 6:
 *                     raise ValueError
 *                 return num  # exit             # <<<<<<<<<<<<<<
 *             except Exception as err:
 *                 raise errors.InvalidWeekdayError(
 */
        __pyx_r = __pyx_v_num;
        goto __pyx_L11_try_return;

        /* "cytimes/pddatetime.py":2129
 *         # <'int'>
 *         if isinstance(weekday, int):
 *             try:             # <<<<<<<<<<<<<<
 *                 num: cython.int = weekday
 *                 if num == -1:
 */
      }
      __pyx_L7_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cytimes/pddatetime.py":2136
 *                     raise ValueError
 *                 return num  # exit
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nInvalid 'weekday' value '%d', must between "
 */
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_4, &__pyx_t_7) < 0) __PYX_ERR(0, 2136, __pyx_L9_except_error)
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v_err = __pyx_t_4;
        /*try:*/ {

          /* "cytimes/pddatetime.py":2137
 *                 return num  # exit
 *             except Exception as err:
 *                 raise errors.InvalidWeekdayError(             # <<<<<<<<<<<<<<
 *                     "<'%s'>\nInvalid 'weekday' value '%d', must between "
 *                     "0(Monday)..6(Sunday)." % (self.__class__.__name__, weekday)
 */
          __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_errors); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2137, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_InvalidWeekdayError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2137, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

          /* "cytimes/pddatetime.py":2138
 *             except Exception as err:
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nInvalid 'weekday' value '%d', must between "             # <<<<<<<<<<<<<<
 *                     "0(Monday)..6(Sunday)." % (self.__class__.__name__, weekday)
 *                 ) from err
 */
          __pyx_t_8 = PyTuple_New(5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2138, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_5 = 0;
          __pyx_t_6 = 127;
          __Pyx_INCREF(__pyx_kp_u__17);
          __pyx_t_5 += 2;
          __Pyx_GIVEREF(__pyx_kp_u__17);
          PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_u__17);

          /* "cytimes/pddatetime.py":2139
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nInvalid 'weekday' value '%d', must between "
 *                     "0(Monday)..6(Sunday)." % (self.__class__.__name__, weekday)             # <<<<<<<<<<<<<<
 *                 ) from err
 * 
 */
          __pyx_t_15 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2139, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_15);
          __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_n_s_name_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2139, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_16);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_16), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2139, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
          __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_6;
          __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_15);
          __pyx_t_15 = 0;
          __Pyx_INCREF(__pyx_kp_u_Invalid_weekday_value);
          __pyx_t_5 += 28;
          __Pyx_GIVEREF(__pyx_kp_u_Invalid_weekday_value);
          PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_kp_u_Invalid_weekday_value);
          __pyx_t_15 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_IntOrLong(__pyx_v_weekday), __pyx_n_u_d); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2139, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_15);
          __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_6;
          __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_15);
          __pyx_t_15 = 0;
          __Pyx_INCREF(__pyx_kp_u_must_between_0_Monday_6_Sunday);
          __pyx_t_5 += 37;
          __Pyx_GIVEREF(__pyx_kp_u_must_between_0_Monday_6_Sunday);
          PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_kp_u_must_between_0_Monday_6_Sunday);

          /* "cytimes/pddatetime.py":2138
 *             except Exception as err:
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nInvalid 'weekday' value '%d', must between "             # <<<<<<<<<<<<<<
 *                     "0(Monday)..6(Sunday)." % (self.__class__.__name__, weekday)
 *                 ) from err
 */
          __pyx_t_15 = __Pyx_PyUnicode_Join(__pyx_t_8, 5, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2138, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = NULL;
          __pyx_t_9 = 0;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_14))) {
            __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_14);
            if (likely(__pyx_t_8)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14);
              __Pyx_INCREF(__pyx_t_8);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_14, function);
              __pyx_t_9 = 1;
            }
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_15};
            __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_14, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
            __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
            __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2137, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          }

          /* "cytimes/pddatetime.py":2140
 *                     "<'%s'>\nInvalid 'weekday' value '%d', must between "
 *                     "0(Monday)..6(Sunday)." % (self.__class__.__name__, weekday)
 *                 ) from err             # <<<<<<<<<<<<<<
 * 
 *         # Incorrect data type
 */
          __Pyx_Raise(__pyx_t_2, 0, 0, __pyx_v_err);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __PYX_ERR(0, 2137, __pyx_L20_error)
        }

        /* "cytimes/pddatetime.py":2136
 *                     raise ValueError
 *                 return num  # exit
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidWeekdayError(
 *                     "<'%s'>\nInvalid 'weekday' value '%d', must between "
 */
        /*finally:*/ {
          __pyx_L20_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
            __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
            __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_22);
            __Pyx_XGOTREF(__pyx_t_23);
            __Pyx_XGOTREF(__pyx_t_24);
            __pyx_t_9 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_22);
              __Pyx_XGIVEREF(__pyx_t_23);
              __Pyx_XGIVEREF(__pyx_t_24);
              __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24);
            }
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
            __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18;
            goto __pyx_L9_except_error;
          }
        }
      }
      goto __pyx_L9_except_error;

      /* "cytimes/pddatetime.py":2129
 *         # <'int'>
 *         if isinstance(weekday, int):
 *             try:             # <<<<<<<<<<<<<<
 *                 num: cython.int = weekday
 *                 if num == -1:
 */
      __pyx_L9_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L11_try_return:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L0;
    }

    /* "cytimes/pddatetime.py":2128
 * 
 *         # <'int'>
 *         if isinstance(weekday, int):             # <<<<<<<<<<<<<<
 *             try:
 *                 num: cython.int = weekday
 */
  }

  /* "cytimes/pddatetime.py":2143
 * 
 *         # Incorrect data type
 *         raise errors.InvalidWeekdayError(             # <<<<<<<<<<<<<<
 *             "<'%s'>\nInvalid 'weekday' data type: %s %r."
 *             % (self.__class__.__name__, type(weekday), weekday)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_errors); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_InvalidWeekdayError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":2144
 *         # Incorrect data type
 *         raise errors.InvalidWeekdayError(
 *             "<'%s'>\nInvalid 'weekday' data type: %s %r."             # <<<<<<<<<<<<<<
 *             % (self.__class__.__name__, type(weekday), weekday)
 *         )
 */
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 0;
  __pyx_t_6 = 127;
  __Pyx_INCREF(__pyx_kp_u__17);
  __pyx_t_5 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__17);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u__17);

  /* "cytimes/pddatetime.py":2145
 *         raise errors.InvalidWeekdayError(
 *             "<'%s'>\nInvalid 'weekday' data type: %s %r."
 *             % (self.__class__.__name__, type(weekday), weekday)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_14);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_14), __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
  __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) : __pyx_t_6;
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __pyx_t_2 = 0;
  __Pyx_INCREF(__pyx_kp_u_Invalid_weekday_data_type);
  __pyx_t_5 += 32;
  __Pyx_GIVEREF(__pyx_kp_u_Invalid_weekday_data_type);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_Invalid_weekday_data_type);
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_weekday))), __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) : __pyx_t_6;
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __pyx_t_2 = 0;
  __Pyx_INCREF(__pyx_kp_u__7);
  __pyx_t_5 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__7);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u__7);
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_weekday), __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) : __pyx_t_6;
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_2);
  __pyx_t_2 = 0;
  __Pyx_INCREF(__pyx_kp_u__8);
  __pyx_t_5 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__8);
  PyTuple_SET_ITEM(__pyx_t_4, 6, __pyx_kp_u__8);

  /* "cytimes/pddatetime.py":2144
 *         # Incorrect data type
 *         raise errors.InvalidWeekdayError(
 *             "<'%s'>\nInvalid 'weekday' data type: %s %r."             # <<<<<<<<<<<<<<
 *             % (self.__class__.__name__, type(weekday), weekday)
 *         )
 */
  __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_4, 7, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  __pyx_t_17 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_17 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_2};
    __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_17, 1+__pyx_t_17);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2143, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_Raise(__pyx_t_7, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __PYX_ERR(0, 2143, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2101
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     @cython.exceptval(-2, check=False)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -2;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_wkd);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2148
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _parse_frequency(self, freq: object) -> object:
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__parse_frequency(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_freq) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  Py_UCS4 __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_parse_frequency", 1);

  /* "cytimes/pddatetime.py":2152
 *     def _parse_frequency(self, freq: object) -> object:
 *         """(cfunc) Prase 'freq' into coresponding string value `<'str'>`."""
 *         if freq == "m":             # <<<<<<<<<<<<<<
 *             return "min"
 *         if set_contains(UNIT_FREQUENCY, freq):
 */
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_freq, __pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 2152, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2153
 *         """(cfunc) Prase 'freq' into coresponding string value `<'str'>`."""
 *         if freq == "m":
 *             return "min"             # <<<<<<<<<<<<<<
 *         if set_contains(UNIT_FREQUENCY, freq):
 *             return freq
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_n_u_min);
    __pyx_r = __pyx_n_u_min;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2152
 *     def _parse_frequency(self, freq: object) -> object:
 *         """(cfunc) Prase 'freq' into coresponding string value `<'str'>`."""
 *         if freq == "m":             # <<<<<<<<<<<<<<
 *             return "min"
 *         if set_contains(UNIT_FREQUENCY, freq):
 */
  }

  /* "cytimes/pddatetime.py":2154
 *         if freq == "m":
 *             return "min"
 *         if set_contains(UNIT_FREQUENCY, freq):             # <<<<<<<<<<<<<<
 *             return freq
 *         raise errors.InvalidFrequencyError(
 */
  __pyx_t_2 = __pyx_v_7cytimes_10pddatetime_UNIT_FREQUENCY;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_1 = PySet_Contains(__pyx_t_2, __pyx_v_freq); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2155
 *             return "min"
 *         if set_contains(UNIT_FREQUENCY, freq):
 *             return freq             # <<<<<<<<<<<<<<
 *         raise errors.InvalidFrequencyError(
 *             "<'%s'>\nInvalid 'freq' input: %r. Must be one of the following <'str'>: "
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_freq);
    __pyx_r = __pyx_v_freq;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2154
 *         if freq == "m":
 *             return "min"
 *         if set_contains(UNIT_FREQUENCY, freq):             # <<<<<<<<<<<<<<
 *             return freq
 *         raise errors.InvalidFrequencyError(
 */
  }

  /* "cytimes/pddatetime.py":2156
 *         if set_contains(UNIT_FREQUENCY, freq):
 *             return freq
 *         raise errors.InvalidFrequencyError(             # <<<<<<<<<<<<<<
 *             "<'%s'>\nInvalid 'freq' input: %r. Must be one of the following <'str'>: "
 *             "['D', 'h', 'm', 's', 'ms', 'us']." % (self.__class__.__name__, freq)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_errors); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_InvalidFrequencyError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":2157
 *             return freq
 *         raise errors.InvalidFrequencyError(
 *             "<'%s'>\nInvalid 'freq' input: %r. Must be one of the following <'str'>: "             # <<<<<<<<<<<<<<
 *             "['D', 'h', 'm', 's', 'ms', 'us']." % (self.__class__.__name__, freq)
 *         )
 */
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 0;
  __pyx_t_6 = 127;
  __Pyx_INCREF(__pyx_kp_u__17);
  __pyx_t_5 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__17);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u__17);

  /* "cytimes/pddatetime.py":2158
 *         raise errors.InvalidFrequencyError(
 *             "<'%s'>\nInvalid 'freq' input: %r. Must be one of the following <'str'>: "
 *             "['D', 'h', 'm', 's', 'ms', 'us']." % (self.__class__.__name__, freq)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_name_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_8), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_7);
  __pyx_t_7 = 0;
  __Pyx_INCREF(__pyx_kp_u_Invalid_freq_input);
  __pyx_t_5 += 25;
  __Pyx_GIVEREF(__pyx_kp_u_Invalid_freq_input);
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_Invalid_freq_input);
  __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_freq), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_7);
  __pyx_t_7 = 0;
  __Pyx_INCREF(__pyx_kp_u_Must_be_one_of_the_following_st);
  __pyx_t_5 += 73;
  __Pyx_GIVEREF(__pyx_kp_u_Must_be_one_of_the_following_st);
  PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_kp_u_Must_be_one_of_the_following_st);

  /* "cytimes/pddatetime.py":2157
 *             return freq
 *         raise errors.InvalidFrequencyError(
 *             "<'%s'>\nInvalid 'freq' input: %r. Must be one of the following <'str'>: "             # <<<<<<<<<<<<<<
 *             "['D', 'h', 'm', 's', 'ms', 'us']." % (self.__class__.__name__, freq)
 *         )
 */
  __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_3, 5, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  __pyx_t_9 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_9 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
    __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2156, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 2156, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2148
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _parse_frequency(self, freq: object) -> object:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._parse_frequency", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2161
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _adjust_unit(
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dt, PyObject *__pyx_v_unit, int __pyx_v_copy) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_UCS4 __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_t_17;
  char const *__pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_adjust_unit", 1);

  /* "cytimes/pddatetime.py":2170
 *     ) -> object:
 *         """(cfunc) Adjust Series to specific time 'unit' resolution `<'Series[Timestamp]'>`."""
 *         if unit is not None and cydt.get_dt64series_unit(dt) != unit:             # <<<<<<<<<<<<<<
 *             try:
 *                 return dt.dt.as_unit(unit)
 */
  __pyx_t_2 = (__pyx_v_unit != Py_None);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_f_7cytimes_10cydatetime_get_dt64series_unit(__pyx_v_dt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_v_unit, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2171
 *         """(cfunc) Adjust Series to specific time 'unit' resolution `<'Series[Timestamp]'>`."""
 *         if unit is not None and cydt.get_dt64series_unit(dt) != unit:
 *             try:             # <<<<<<<<<<<<<<
 *                 return dt.dt.as_unit(unit)
 *             except Exception as err:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);
      /*try:*/ {

        /* "cytimes/pddatetime.py":2172
 *         if unit is not None and cydt.get_dt64series_unit(dt) != unit:
 *             try:
 *                 return dt.dt.as_unit(unit)             # <<<<<<<<<<<<<<
 *             except Exception as err:
 *                 raise errors.InvalidTimeUnitError(
 */
        __Pyx_XDECREF(__pyx_r);
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2172, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_as_unit); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2172, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = NULL;
        __pyx_t_9 = 0;
        #if CYTHON_UNPACK_METHODS
        if (likely(PyMethod_Check(__pyx_t_8))) {
          __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
          if (likely(__pyx_t_7)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
            __Pyx_INCREF(__pyx_t_7);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_8, function);
            __pyx_t_9 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_unit};
          __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2172, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        }
        __pyx_r = __pyx_t_3;
        __pyx_t_3 = 0;
        goto __pyx_L10_try_return;

        /* "cytimes/pddatetime.py":2171
 *         """(cfunc) Adjust Series to specific time 'unit' resolution `<'Series[Timestamp]'>`."""
 *         if unit is not None and cydt.get_dt64series_unit(dt) != unit:
 *             try:             # <<<<<<<<<<<<<<
 *                 return dt.dt.as_unit(unit)
 *             except Exception as err:
 */
      }
      __pyx_L6_error:;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cytimes/pddatetime.py":2173
 *             try:
 *                 return dt.dt.as_unit(unit)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidTimeUnitError(
 *                     "<'%s'>\nUnable to adjust time unit from '[%s]' to '[%s]': %s."
 */
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cytimes.pddatetime.pddt._adjust_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_8, &__pyx_t_7) < 0) __PYX_ERR(0, 2173, __pyx_L8_except_error)
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_v_err = __pyx_t_8;
        /*try:*/ {

          /* "cytimes/pddatetime.py":2174
 *                 return dt.dt.as_unit(unit)
 *             except Exception as err:
 *                 raise errors.InvalidTimeUnitError(             # <<<<<<<<<<<<<<
 *                     "<'%s'>\nUnable to adjust time unit from '[%s]' to '[%s]': %s."
 *                     % (self.__class__.__name__, cydt.get_dt64series_unit(dt), unit, err)
 */
          __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_errors); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2174, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_InvalidTimeUnitError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2174, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

          /* "cytimes/pddatetime.py":2175
 *             except Exception as err:
 *                 raise errors.InvalidTimeUnitError(
 *                     "<'%s'>\nUnable to adjust time unit from '[%s]' to '[%s]': %s."             # <<<<<<<<<<<<<<
 *                     % (self.__class__.__name__, cydt.get_dt64series_unit(dt), unit, err)
 *                 ) from err
 */
          __pyx_t_11 = PyTuple_New(9); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2175, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_13 = 0;
          __pyx_t_14 = 127;
          __Pyx_INCREF(__pyx_kp_u__17);
          __pyx_t_13 += 2;
          __Pyx_GIVEREF(__pyx_kp_u__17);
          PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u__17);

          /* "cytimes/pddatetime.py":2176
 *                 raise errors.InvalidTimeUnitError(
 *                     "<'%s'>\nUnable to adjust time unit from '[%s]' to '[%s]': %s."
 *                     % (self.__class__.__name__, cydt.get_dt64series_unit(dt), unit, err)             # <<<<<<<<<<<<<<
 *                 ) from err
 *         return dt.copy(True) if copy else dt
 */
          __pyx_t_15 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2176, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_15);
          __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_n_s_name_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2176, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_16);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_16), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2176, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
          __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
          __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_15);
          __pyx_t_15 = 0;
          __Pyx_INCREF(__pyx_kp_u_Unable_to_adjust_time_unit_from);
          __pyx_t_13 += 37;
          __Pyx_GIVEREF(__pyx_kp_u_Unable_to_adjust_time_unit_from);
          PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_kp_u_Unable_to_adjust_time_unit_from);
          __pyx_t_15 = __pyx_f_7cytimes_10cydatetime_get_dt64series_unit(__pyx_v_dt); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2176, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_15);
          __pyx_t_16 = __Pyx_PyUnicode_Unicode(__pyx_t_15); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2176, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_16);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_16) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_16) : __pyx_t_14;
          __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_16);
          __Pyx_GIVEREF(__pyx_t_16);
          PyTuple_SET_ITEM(__pyx_t_11, 3, __pyx_t_16);
          __pyx_t_16 = 0;
          __Pyx_INCREF(__pyx_kp_u_to);
          __pyx_t_13 += 8;
          __Pyx_GIVEREF(__pyx_kp_u_to);
          PyTuple_SET_ITEM(__pyx_t_11, 4, __pyx_kp_u_to);
          __pyx_t_16 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_unit), __pyx_empty_unicode); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2176, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_16);
          __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_16) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_16) : __pyx_t_14;
          __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_16);
          __Pyx_GIVEREF(__pyx_t_16);
          PyTuple_SET_ITEM(__pyx_t_11, 5, __pyx_t_16);
          __pyx_t_16 = 0;
          __Pyx_INCREF(__pyx_kp_u__20);
          __pyx_t_13 += 4;
          __Pyx_GIVEREF(__pyx_kp_u__20);
          PyTuple_SET_ITEM(__pyx_t_11, 6, __pyx_kp_u__20);
          __pyx_t_16 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_err), __pyx_empty_unicode); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2176, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_16);
          __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_16) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_16) : __pyx_t_14;
          __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_16);
          __Pyx_GIVEREF(__pyx_t_16);
          PyTuple_SET_ITEM(__pyx_t_11, 7, __pyx_t_16);
          __pyx_t_16 = 0;
          __Pyx_INCREF(__pyx_kp_u__8);
          __pyx_t_13 += 1;
          __Pyx_GIVEREF(__pyx_kp_u__8);
          PyTuple_SET_ITEM(__pyx_t_11, 8, __pyx_kp_u__8);

          /* "cytimes/pddatetime.py":2175
 *             except Exception as err:
 *                 raise errors.InvalidTimeUnitError(
 *                     "<'%s'>\nUnable to adjust time unit from '[%s]' to '[%s]': %s."             # <<<<<<<<<<<<<<
 *                     % (self.__class__.__name__, cydt.get_dt64series_unit(dt), unit, err)
 *                 ) from err
 */
          __pyx_t_16 = __Pyx_PyUnicode_Join(__pyx_t_11, 9, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2175, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_16);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          __pyx_t_11 = NULL;
          __pyx_t_9 = 0;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_12))) {
            __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_12);
            if (likely(__pyx_t_11)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
              __Pyx_INCREF(__pyx_t_11);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_12, function);
              __pyx_t_9 = 1;
            }
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_16};
            __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2174, __pyx_L17_error)
            __Pyx_GOTREF(__pyx_t_10);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          }

          /* "cytimes/pddatetime.py":2177
 *                     "<'%s'>\nUnable to adjust time unit from '[%s]' to '[%s]': %s."
 *                     % (self.__class__.__name__, cydt.get_dt64series_unit(dt), unit, err)
 *                 ) from err             # <<<<<<<<<<<<<<
 *         return dt.copy(True) if copy else dt
 * 
 */
          __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_err);
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          __PYX_ERR(0, 2174, __pyx_L17_error)
        }

        /* "cytimes/pddatetime.py":2173
 *             try:
 *                 return dt.dt.as_unit(unit)
 *             except Exception as err:             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidTimeUnitError(
 *                     "<'%s'>\nUnable to adjust time unit from '[%s]' to '[%s]': %s."
 */
        /*finally:*/ {
          __pyx_L17_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
            __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
            __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_21);
            __Pyx_XGOTREF(__pyx_t_22);
            __Pyx_XGOTREF(__pyx_t_23);
            __Pyx_XGOTREF(__pyx_t_24);
            __pyx_t_9 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_22);
              __Pyx_XGIVEREF(__pyx_t_23);
              __Pyx_XGIVEREF(__pyx_t_24);
              __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24);
            }
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_XGIVEREF(__pyx_t_21);
            __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21);
            __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
            __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18;
            goto __pyx_L8_except_error;
          }
        }
      }
      goto __pyx_L8_except_error;

      /* "cytimes/pddatetime.py":2171
 *         """(cfunc) Adjust Series to specific time 'unit' resolution `<'Series[Timestamp]'>`."""
 *         if unit is not None and cydt.get_dt64series_unit(dt) != unit:
 *             try:             # <<<<<<<<<<<<<<
 *                 return dt.dt.as_unit(unit)
 *             except Exception as err:
 */
      __pyx_L8_except_error:;
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_6);
      __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
      goto __pyx_L1_error;
      __pyx_L10_try_return:;
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_6);
      __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
      goto __pyx_L0;
    }

    /* "cytimes/pddatetime.py":2170
 *     ) -> object:
 *         """(cfunc) Adjust Series to specific time 'unit' resolution `<'Series[Timestamp]'>`."""
 *         if unit is not None and cydt.get_dt64series_unit(dt) != unit:             # <<<<<<<<<<<<<<
 *             try:
 *                 return dt.dt.as_unit(unit)
 */
  }

  /* "cytimes/pddatetime.py":2178
 *                     % (self.__class__.__name__, cydt.get_dt64series_unit(dt), unit, err)
 *                 ) from err
 *         return dt.copy(True) if copy else dt             # <<<<<<<<<<<<<<
 * 
 *     @cython.cfunc
 */
  __Pyx_XDECREF(__pyx_r);
  if (__pyx_v_copy) {
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_copy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2178, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = NULL;
    __pyx_t_17 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
        __pyx_t_17 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, Py_True};
      __pyx_t_8 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_17, 1+__pyx_t_17);
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2178, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __pyx_t_7 = __pyx_t_8;
    __pyx_t_8 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dt);
    __pyx_t_7 = __pyx_v_dt;
  }
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2161
 *         )
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _adjust_unit(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._adjust_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2180
 *         return dt.copy(True) if copy else dt
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _arr_to_series(self, arr: object) -> object:
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_arr) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_arr_to_series", 1);

  /* "cytimes/pddatetime.py":2184
 *     def _arr_to_series(self, arr: object) -> object:
 *         """(cfunc) Generate Series from the numpy ndarray `<'Series'>`."""
 *         return typeref.SERIES(arr, index=self._dt.index, name=self._dt.name)             # <<<<<<<<<<<<<<
 * 
 *     @cython.cfunc
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_arr);
  __Pyx_GIVEREF(__pyx_v_arr);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_arr)) __PYX_ERR(0, 2184, __pyx_L1_error);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_index, __pyx_t_3) < 0) __PYX_ERR(0, 2184, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_t_3) < 0) __PYX_ERR(0, 2184, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2180
 *         return dt.copy(True) if copy else dt
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _arr_to_series(self, arr: object) -> object:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._arr_to_series", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2186
 *         return typeref.SERIES(arr, index=self._dt.index, name=self._dt.name)
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _arr_to_tdindex(self, arr: object, unit: object) -> object:
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_arr, PyObject *__pyx_v_unit) {
  PyObject *__pyx_v_td = NULL;
  PyObject *__pyx_v_dt_unit = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_arr_to_tdindex", 1);

  /* "cytimes/pddatetime.py":2190
 *     def _arr_to_tdindex(self, arr: object, unit: object) -> object:
 *         """(cfunc) Generate TimedeltaIndex from the numpy ndarray `<'TimedeltaIndex'>`"""
 *         td: TimedeltaIndex = FN_PD_TOTIMEDELTA(arr, unit)             # <<<<<<<<<<<<<<
 *         dt_unit: str = cydt.get_dt64series_unit(self._dt)
 *         if dt_unit != cydt.get_td64series_unit(td):
 */
  __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_PD_TOTIMEDELTA);
  __pyx_t_2 = __pyx_v_7cytimes_10pddatetime_FN_PD_TOTIMEDELTA; __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_arr, __pyx_v_unit};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 2+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2190, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_v_td = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2191
 *         """(cfunc) Generate TimedeltaIndex from the numpy ndarray `<'TimedeltaIndex'>`"""
 *         td: TimedeltaIndex = FN_PD_TOTIMEDELTA(arr, unit)
 *         dt_unit: str = cydt.get_dt64series_unit(self._dt)             # <<<<<<<<<<<<<<
 *         if dt_unit != cydt.get_td64series_unit(td):
 *             td = td.as_unit(dt_unit)
 */
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_get_dt64series_unit(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_dt_unit = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":2192
 *         td: TimedeltaIndex = FN_PD_TOTIMEDELTA(arr, unit)
 *         dt_unit: str = cydt.get_dt64series_unit(self._dt)
 *         if dt_unit != cydt.get_td64series_unit(td):             # <<<<<<<<<<<<<<
 *             td = td.as_unit(dt_unit)
 *         return td
 */
  __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_get_td64series_unit(__pyx_v_td); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_dt_unit, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 2192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_5) {

    /* "cytimes/pddatetime.py":2193
 *         dt_unit: str = cydt.get_dt64series_unit(self._dt)
 *         if dt_unit != cydt.get_td64series_unit(td):
 *             td = td.as_unit(dt_unit)             # <<<<<<<<<<<<<<
 *         return td
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_td, __pyx_n_s_as_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2193, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = NULL;
    __pyx_t_4 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
        __pyx_t_4 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dt_unit};
      __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2193, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF_SET(__pyx_v_td, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cytimes/pddatetime.py":2192
 *         td: TimedeltaIndex = FN_PD_TOTIMEDELTA(arr, unit)
 *         dt_unit: str = cydt.get_dt64series_unit(self._dt)
 *         if dt_unit != cydt.get_td64series_unit(td):             # <<<<<<<<<<<<<<
 *             td = td.as_unit(dt_unit)
 *         return td
 */
  }

  /* "cytimes/pddatetime.py":2194
 *         if dt_unit != cydt.get_td64series_unit(td):
 *             td = td.as_unit(dt_unit)
 *         return td             # <<<<<<<<<<<<<<
 * 
 *     @cython.cfunc
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_td);
  __pyx_r = __pyx_v_td;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2186
 *         return typeref.SERIES(arr, index=self._dt.index, name=self._dt.name)
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _arr_to_tdindex(self, arr: object, unit: object) -> object:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._arr_to_tdindex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_td);
  __Pyx_XDECREF(__pyx_v_dt_unit);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2196
 *         return td
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _obj_to_pddt(self, obj: object, name: object, unit: object) -> object:
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__obj_to_pddt(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_name, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_obj_to_pddt", 1);

  /* "cytimes/pddatetime.py":2203
 *         For Incompatible object, return the object itself.
 *         Used for internal arithmetic operations."""
 *         if isinstance(obj, typeref.SERIES):             # <<<<<<<<<<<<<<
 *             if isinstance(obj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 return self._new(obj, name, unit, False)
 */
  __pyx_t_1 = __pyx_v_7cytimes_7typeref_SERIES;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2203, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2204
 *         Used for internal arithmetic operations."""
 *         if isinstance(obj, typeref.SERIES):
 *             if isinstance(obj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):             # <<<<<<<<<<<<<<
 *                 return self._new(obj, name, unit, False)
 *             return obj
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_n_s_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2204, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_7cytimes_7typeref_DT64_ARRAY);
    __pyx_t_3 = __pyx_v_7cytimes_7typeref_DT64_ARRAY;
    __Pyx_INCREF(__pyx_v_7cytimes_7typeref_DT64TZ_ARRAY);
    __pyx_t_4 = __pyx_v_7cytimes_7typeref_DT64TZ_ARRAY;
    __pyx_t_5 = PyObject_IsInstance(__pyx_t_1, __pyx_t_3); 
    if (!__pyx_t_5) {
    } else {
      __pyx_t_2 = __pyx_t_5;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_5 = PyObject_IsInstance(__pyx_t_1, __pyx_t_4); 
    __pyx_t_2 = __pyx_t_5;
    __pyx_L5_bool_binop_done:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_2) {

      /* "cytimes/pddatetime.py":2205
 *         if isinstance(obj, typeref.SERIES):
 *             if isinstance(obj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 return self._new(obj, name, unit, False)             # <<<<<<<<<<<<<<
 *             return obj
 *         elif isinstance(obj, typeref.DATETIMEINDEX):
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_obj, __pyx_v_name, __pyx_v_unit, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2205, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* "cytimes/pddatetime.py":2204
 *         Used for internal arithmetic operations."""
 *         if isinstance(obj, typeref.SERIES):
 *             if isinstance(obj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):             # <<<<<<<<<<<<<<
 *                 return self._new(obj, name, unit, False)
 *             return obj
 */
    }

    /* "cytimes/pddatetime.py":2206
 *             if isinstance(obj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 return self._new(obj, name, unit, False)
 *             return obj             # <<<<<<<<<<<<<<
 *         elif isinstance(obj, typeref.DATETIMEINDEX):
 *             return self._new(obj, name, unit, False)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_obj);
    __pyx_r = __pyx_v_obj;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2203
 *         For Incompatible object, return the object itself.
 *         Used for internal arithmetic operations."""
 *         if isinstance(obj, typeref.SERIES):             # <<<<<<<<<<<<<<
 *             if isinstance(obj.dtype, (typeref.DT64_ARRAY, typeref.DT64TZ_ARRAY)):
 *                 return self._new(obj, name, unit, False)
 */
  }

  /* "cytimes/pddatetime.py":2207
 *                 return self._new(obj, name, unit, False)
 *             return obj
 *         elif isinstance(obj, typeref.DATETIMEINDEX):             # <<<<<<<<<<<<<<
 *             return self._new(obj, name, unit, False)
 *         else:
 */
  __pyx_t_1 = __pyx_v_7cytimes_7typeref_DATETIMEINDEX;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2208
 *             return obj
 *         elif isinstance(obj, typeref.DATETIMEINDEX):
 *             return self._new(obj, name, unit, False)             # <<<<<<<<<<<<<<
 *         else:
 *             return obj
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_obj, __pyx_v_name, __pyx_v_unit, Py_False)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2207
 *                 return self._new(obj, name, unit, False)
 *             return obj
 *         elif isinstance(obj, typeref.DATETIMEINDEX):             # <<<<<<<<<<<<<<
 *             return self._new(obj, name, unit, False)
 *         else:
 */
  }

  /* "cytimes/pddatetime.py":2210
 *             return self._new(obj, name, unit, False)
 *         else:
 *             return obj             # <<<<<<<<<<<<<<
 * 
 *     @cython.cfunc
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_obj);
    __pyx_r = __pyx_v_obj;
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.py":2196
 *         return td
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _obj_to_pddt(self, obj: object, name: object, unit: object) -> object:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._obj_to_pddt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2212
 *             return obj
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _obj_to_series(self, obj: object) -> object:
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_obj_to_series", 1);

  /* "cytimes/pddatetime.py":2220
 *         Used for internal arithmetic operations."""
 *         # <'pddt'>
 *         if isinstance(obj, pddt):             # <<<<<<<<<<<<<<
 *             return access_pddt(obj)  # type: ignore
 *         # <'Series/TimedeltaIndex/Timedelta/offsets'>
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_7cytimes_10pddatetime_pddt); 
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2221
 *         # <'pddt'>
 *         if isinstance(obj, pddt):
 *             return access_pddt(obj)  # type: ignore             # <<<<<<<<<<<<<<
 *         # <'Series/TimedeltaIndex/Timedelta/offsets'>
 *         if isinstance(
 */
    __Pyx_XDECREF(__pyx_r);
    if (!(likely(((__pyx_v_obj) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_obj, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 2221, __pyx_L1_error)
    __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_access_pddt(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_obj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2220
 *         Used for internal arithmetic operations."""
 *         # <'pddt'>
 *         if isinstance(obj, pddt):             # <<<<<<<<<<<<<<
 *             return access_pddt(obj)  # type: ignore
 *         # <'Series/TimedeltaIndex/Timedelta/offsets'>
 */
  }

  /* "cytimes/pddatetime.py":2226
 *             obj,
 *             (
 *                 typeref.SERIES,             # <<<<<<<<<<<<<<
 *                 typeref.TIMEDELTAINDEX,
 *                 typeref.TIMEDELTA,
 */
  __Pyx_INCREF(__pyx_v_7cytimes_7typeref_SERIES);
  __pyx_t_2 = __pyx_v_7cytimes_7typeref_SERIES;

  /* "cytimes/pddatetime.py":2227
 *             (
 *                 typeref.SERIES,
 *                 typeref.TIMEDELTAINDEX,             # <<<<<<<<<<<<<<
 *                 typeref.TIMEDELTA,
 *                 typeref.BASEOFFSET,
 */
  __Pyx_INCREF(__pyx_v_7cytimes_7typeref_TIMEDELTAINDEX);
  __pyx_t_3 = __pyx_v_7cytimes_7typeref_TIMEDELTAINDEX;

  /* "cytimes/pddatetime.py":2228
 *                 typeref.SERIES,
 *                 typeref.TIMEDELTAINDEX,
 *                 typeref.TIMEDELTA,             # <<<<<<<<<<<<<<
 *                 typeref.BASEOFFSET,
 *                 np.ndarray,
 */
  __Pyx_INCREF(__pyx_v_7cytimes_7typeref_TIMEDELTA);
  __pyx_t_4 = __pyx_v_7cytimes_7typeref_TIMEDELTA;

  /* "cytimes/pddatetime.py":2229
 *                 typeref.TIMEDELTAINDEX,
 *                 typeref.TIMEDELTA,
 *                 typeref.BASEOFFSET,             # <<<<<<<<<<<<<<
 *                 np.ndarray,
 *                 datetime.timedelta,
 */
  __Pyx_INCREF(__pyx_v_7cytimes_7typeref_BASEOFFSET);
  __pyx_t_5 = __pyx_v_7cytimes_7typeref_BASEOFFSET;

  /* "cytimes/pddatetime.py":2232
 *                 np.ndarray,
 *                 datetime.timedelta,
 *                 typeref.TIMEDELTA64,             # <<<<<<<<<<<<<<
 *                 typeref.DATETIME64,
 *             ),
 */
  __Pyx_INCREF(__pyx_v_7cytimes_7typeref_TIMEDELTA64);
  __pyx_t_6 = __pyx_v_7cytimes_7typeref_TIMEDELTA64;

  /* "cytimes/pddatetime.py":2233
 *                 datetime.timedelta,
 *                 typeref.TIMEDELTA64,
 *                 typeref.DATETIME64,             # <<<<<<<<<<<<<<
 *             ),
 *         ):
 */
  __Pyx_INCREF(__pyx_v_7cytimes_7typeref_DATETIME64);
  __pyx_t_7 = __pyx_v_7cytimes_7typeref_DATETIME64;

  /* "cytimes/pddatetime.py":2226
 *             obj,
 *             (
 *                 typeref.SERIES,             # <<<<<<<<<<<<<<
 *                 typeref.TIMEDELTAINDEX,
 *                 typeref.TIMEDELTA,
 */
  __pyx_t_8 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_2); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L5_bool_binop_done;
  }

  /* "cytimes/pddatetime.py":2227
 *             (
 *                 typeref.SERIES,
 *                 typeref.TIMEDELTAINDEX,             # <<<<<<<<<<<<<<
 *                 typeref.TIMEDELTA,
 *                 typeref.BASEOFFSET,
 */
  __pyx_t_8 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_3); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L5_bool_binop_done;
  }

  /* "cytimes/pddatetime.py":2228
 *                 typeref.SERIES,
 *                 typeref.TIMEDELTAINDEX,
 *                 typeref.TIMEDELTA,             # <<<<<<<<<<<<<<
 *                 typeref.BASEOFFSET,
 *                 np.ndarray,
 */
  __pyx_t_8 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_4); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L5_bool_binop_done;
  }

  /* "cytimes/pddatetime.py":2229
 *                 typeref.TIMEDELTAINDEX,
 *                 typeref.TIMEDELTA,
 *                 typeref.BASEOFFSET,             # <<<<<<<<<<<<<<
 *                 np.ndarray,
 *                 datetime.timedelta,
 */
  __pyx_t_8 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_5); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L5_bool_binop_done;
  }

  /* "cytimes/pddatetime.py":2230
 *                 typeref.TIMEDELTA,
 *                 typeref.BASEOFFSET,
 *                 np.ndarray,             # <<<<<<<<<<<<<<
 *                 datetime.timedelta,
 *                 typeref.TIMEDELTA64,
 */
  __pyx_t_8 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_5numpy_ndarray); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L5_bool_binop_done;
  }

  /* "cytimes/pddatetime.py":2231
 *                 typeref.BASEOFFSET,
 *                 np.ndarray,
 *                 datetime.timedelta,             # <<<<<<<<<<<<<<
 *                 typeref.TIMEDELTA64,
 *                 typeref.DATETIME64,
 */
  __pyx_t_8 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_7cpython_8datetime_timedelta); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L5_bool_binop_done;
  }

  /* "cytimes/pddatetime.py":2232
 *                 np.ndarray,
 *                 datetime.timedelta,
 *                 typeref.TIMEDELTA64,             # <<<<<<<<<<<<<<
 *                 typeref.DATETIME64,
 *             ),
 */
  __pyx_t_8 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_6); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L5_bool_binop_done;
  }

  /* "cytimes/pddatetime.py":2233
 *                 datetime.timedelta,
 *                 typeref.TIMEDELTA64,
 *                 typeref.DATETIME64,             # <<<<<<<<<<<<<<
 *             ),
 *         ):
 */
  __pyx_t_8 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_7); 
  __pyx_t_1 = __pyx_t_8;
  __pyx_L5_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":2223
 *             return access_pddt(obj)  # type: ignore
 *         # <'Series/TimedeltaIndex/Timedelta/offsets'>
 *         if isinstance(             # <<<<<<<<<<<<<<
 *             obj,
 *             (
 */
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2236
 *             ),
 *         ):
 *             return obj             # <<<<<<<<<<<<<<
 *         # <'datetime/str/pydt'>
 *         if isinstance(obj, (datetime.date, str, pydt)):
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_obj);
    __pyx_r = __pyx_v_obj;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2223
 *             return access_pddt(obj)  # type: ignore
 *         # <'Series/TimedeltaIndex/Timedelta/offsets'>
 *         if isinstance(             # <<<<<<<<<<<<<<
 *             obj,
 *             (
 */
  }

  /* "cytimes/pddatetime.py":2238
 *             return obj
 *         # <'datetime/str/pydt'>
 *         if isinstance(obj, (datetime.date, str, pydt)):             # <<<<<<<<<<<<<<
 *             return self._parse_dtobj(obj, self._default, False)
 *         # Other
 */
  __pyx_t_8 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_7cpython_8datetime_date); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L14_bool_binop_done;
  }
  __pyx_t_8 = PyUnicode_Check(__pyx_v_obj); 
  if (!__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L14_bool_binop_done;
  }
  __pyx_t_8 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_7cytimes_10pydatetime_pydt); 
  __pyx_t_1 = __pyx_t_8;
  __pyx_L14_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2239
 *         # <'datetime/str/pydt'>
 *         if isinstance(obj, (datetime.date, str, pydt)):
 *             return self._parse_dtobj(obj, self._default, False)             # <<<<<<<<<<<<<<
 *         # Other
 *         try:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_v_self->_default;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtobj(__pyx_v_self, __pyx_v_obj, __pyx_t_2, 0)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2238
 *             return obj
 *         # <'datetime/str/pydt'>
 *         if isinstance(obj, (datetime.date, str, pydt)):             # <<<<<<<<<<<<<<
 *             return self._parse_dtobj(obj, self._default, False)
 *         # Other
 */
  }

  /* "cytimes/pddatetime.py":2241
 *             return self._parse_dtobj(obj, self._default, False)
 *         # Other
 *         try:             # <<<<<<<<<<<<<<
 *             return self._parse_dtsobj(obj, self._default, None, self._c_unit(), False)
 *         except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
    __Pyx_XGOTREF(__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_10);
    __Pyx_XGOTREF(__pyx_t_11);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2242
 *         # Other
 *         try:
 *             return self._parse_dtsobj(obj, self._default, None, self._c_unit(), False)             # <<<<<<<<<<<<<<
 *         except Exception:
 *             return obj
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = __pyx_v_self->_default;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__c_unit(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2242, __pyx_L17_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj(__pyx_v_self, __pyx_v_obj, __pyx_t_3, Py_None, __pyx_t_2, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2242, __pyx_L17_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L21_try_return;

      /* "cytimes/pddatetime.py":2241
 *             return self._parse_dtobj(obj, self._default, False)
 *         # Other
 *         try:             # <<<<<<<<<<<<<<
 *             return self._parse_dtsobj(obj, self._default, None, self._c_unit(), False)
 *         except Exception:
 */
    }
    __pyx_L17_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cytimes/pddatetime.py":2243
 *         try:
 *             return self._parse_dtsobj(obj, self._default, None, self._c_unit(), False)
 *         except Exception:             # <<<<<<<<<<<<<<
 *             return obj
 * 
 */
    __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_12) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt._obj_to_series", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_2, &__pyx_t_3) < 0) __PYX_ERR(0, 2243, __pyx_L19_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_3);

      /* "cytimes/pddatetime.py":2244
 *             return self._parse_dtsobj(obj, self._default, None, self._c_unit(), False)
 *         except Exception:
 *             return obj             # <<<<<<<<<<<<<<
 * 
 *     @cython.cfunc
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_obj);
      __pyx_r = __pyx_v_obj;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      goto __pyx_L20_except_return;
    }
    goto __pyx_L19_except_error;

    /* "cytimes/pddatetime.py":2241
 *             return self._parse_dtobj(obj, self._default, False)
 *         # Other
 *         try:             # <<<<<<<<<<<<<<
 *             return self._parse_dtsobj(obj, self._default, None, self._c_unit(), False)
 *         except Exception:
 */
    __pyx_L19_except_error:;
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_11);
    __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
    goto __pyx_L1_error;
    __pyx_L21_try_return:;
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_11);
    __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
    goto __pyx_L0;
    __pyx_L20_except_return:;
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_11);
    __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.py":2212
 *             return obj
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _obj_to_series(self, obj: object) -> object:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._obj_to_series", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2246
 *             return obj
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     @cython.exceptval(-1, check=False)
 */

static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__validate_amb_nonex(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_validate_amb_nonex", 1);

  /* "cytimes/pddatetime.py":2255
 *     ) -> cython.bint:
 *         """(cfunc) Validate the 'ambiguous' and 'nonexistent' arguments `<'bool'>`."""
 *         if ambiguous == "NaT":             # <<<<<<<<<<<<<<
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nArgument `ambiguous='NaT'` is not supported."
 */
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_ambiguous, __pyx_n_u_NaT, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 2255, __pyx_L1_error)
  if (unlikely(__pyx_t_1)) {

    /* "cytimes/pddatetime.py":2256
 *         """(cfunc) Validate the 'ambiguous' and 'nonexistent' arguments `<'bool'>`."""
 *         if ambiguous == "NaT":
 *             raise errors.InvalidTimezoneError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\nArgument `ambiguous='NaT'` is not supported."
 *                 % self.__class__.__name__
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_errors); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_InvalidTimezoneError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cytimes/pddatetime.py":2258
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nArgument `ambiguous='NaT'` is not supported."
 *                 % self.__class__.__name__             # <<<<<<<<<<<<<<
 *             )
 *         if nonexistent == "NaT":
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2258, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2258, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_s_Argument_ambiguous_NaT_is_not, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2258, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = NULL;
    __pyx_t_6 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
        __pyx_t_6 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2256, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2256, __pyx_L1_error)

    /* "cytimes/pddatetime.py":2255
 *     ) -> cython.bint:
 *         """(cfunc) Validate the 'ambiguous' and 'nonexistent' arguments `<'bool'>`."""
 *         if ambiguous == "NaT":             # <<<<<<<<<<<<<<
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nArgument `ambiguous='NaT'` is not supported."
 */
  }

  /* "cytimes/pddatetime.py":2260
 *                 % self.__class__.__name__
 *             )
 *         if nonexistent == "NaT":             # <<<<<<<<<<<<<<
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nArgument `nonexistent='NaT'` is not supported."
 */
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_nonexistent, __pyx_n_u_NaT, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 2260, __pyx_L1_error)
  if (unlikely(__pyx_t_1)) {

    /* "cytimes/pddatetime.py":2261
 *             )
 *         if nonexistent == "NaT":
 *             raise errors.InvalidTimezoneError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\nArgument `nonexistent='NaT'` is not supported."
 *                 % self.__class__.__name__
 */
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_errors); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_InvalidTimezoneError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":2263
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nArgument `nonexistent='NaT'` is not supported."
 *                 % self.__class__.__name__             # <<<<<<<<<<<<<<
 *             )
 *         return True
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_s_Argument_nonexistent_NaT_is_n, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = NULL;
    __pyx_t_6 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
        __pyx_t_6 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2261, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2261, __pyx_L1_error)

    /* "cytimes/pddatetime.py":2260
 *                 % self.__class__.__name__
 *             )
 *         if nonexistent == "NaT":             # <<<<<<<<<<<<<<
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nArgument `nonexistent='NaT'` is not supported."
 */
  }

  /* "cytimes/pddatetime.py":2265
 *                 % self.__class__.__name__
 *             )
 *         return True             # <<<<<<<<<<<<<<
 * 
 *     @cython.cfunc
 */
  __pyx_r = 1;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2246
 *             return obj
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     @cython.exceptval(-1, check=False)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._validate_amb_nonex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2267
 *         return True
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     @cython.exceptval(-1, check=False)
 */

static CYTHON_INLINE int __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_err, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error *__pyx_optional_args) {

  /* "cytimes/pddatetime.py":2270
 *     @cython.inline(True)
 *     @cython.exceptval(-1, check=False)
 *     def _raise_error(self, err: Exception, msg: str = None) -> cython.bint:             # <<<<<<<<<<<<<<
 *         if isinstance(err, (OverflowError, OutOfBoundsDatetime)):
 *             if msg is None:
 */
  PyObject *__pyx_v_msg = ((PyObject*)Py_None);
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  Py_ssize_t __pyx_t_10;
  Py_UCS4 __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_raise_error", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_msg = __pyx_optional_args->msg;
    }
  }
  __Pyx_INCREF(__pyx_v_msg);

  /* "cytimes/pddatetime.py":2271
 *     @cython.exceptval(-1, check=False)
 *     def _raise_error(self, err: Exception, msg: str = None) -> cython.bint:
 *         if isinstance(err, (OverflowError, OutOfBoundsDatetime)):             # <<<<<<<<<<<<<<
 *             if msg is None:
 *                 try:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_OutOfBoundsDatetime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyObject_IsInstance(__pyx_v_err, __pyx_builtin_OverflowError); 
  if (!__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = PyObject_IsInstance(__pyx_v_err, __pyx_t_1); 
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2272
 *     def _raise_error(self, err: Exception, msg: str = None) -> cython.bint:
 *         if isinstance(err, (OverflowError, OutOfBoundsDatetime)):
 *             if msg is None:             # <<<<<<<<<<<<<<
 *                 try:
 *                     msg = (
 */
    __pyx_t_2 = (__pyx_v_msg == ((PyObject*)Py_None));
    if (__pyx_t_2) {

      /* "cytimes/pddatetime.py":2273
 *         if isinstance(err, (OverflowError, OutOfBoundsDatetime)):
 *             if msg is None:
 *                 try:             # <<<<<<<<<<<<<<
 *                     msg = (
 *                         "Value out of bounds for datetime64[%s]"
 */
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_6);
        /*try:*/ {

          /* "cytimes/pddatetime.py":2276
 *                     msg = (
 *                         "Value out of bounds for datetime64[%s]"
 *                         % cydt.get_dt64series_unit(self._dt)             # <<<<<<<<<<<<<<
 *                     )
 *                 except Exception:
 */
          __pyx_t_1 = __pyx_v_self->_dt;
          __Pyx_INCREF(__pyx_t_1);
          __pyx_t_7 = __pyx_f_7cytimes_10cydatetime_get_dt64series_unit(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2276, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_t_1 = PyUnicode_Format(__pyx_kp_u_Value_out_of_bounds_for_datetime, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2276, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF_SET(__pyx_v_msg, ((PyObject*)__pyx_t_1));
          __pyx_t_1 = 0;

          /* "cytimes/pddatetime.py":2273
 *         if isinstance(err, (OverflowError, OutOfBoundsDatetime)):
 *             if msg is None:
 *                 try:             # <<<<<<<<<<<<<<
 *                     msg = (
 *                         "Value out of bounds for datetime64[%s]"
 */
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L12_try_end;
        __pyx_L7_error:;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "cytimes/pddatetime.py":2278
 *                         % cydt.get_dt64series_unit(self._dt)
 *                     )
 *                 except Exception:             # <<<<<<<<<<<<<<
 *                     msg = "Value out of bounds"
 *             raise errors.DatetimeOutOfBoundsError(
 */
        __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
        if (__pyx_t_8) {
          __Pyx_AddTraceback("cytimes.pddatetime.pddt._raise_error", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_7, &__pyx_t_9) < 0) __PYX_ERR(0, 2278, __pyx_L9_except_error)
          __Pyx_XGOTREF(__pyx_t_1);
          __Pyx_XGOTREF(__pyx_t_7);
          __Pyx_XGOTREF(__pyx_t_9);

          /* "cytimes/pddatetime.py":2279
 *                     )
 *                 except Exception:
 *                     msg = "Value out of bounds"             # <<<<<<<<<<<<<<
 *             raise errors.DatetimeOutOfBoundsError(
 *                 "<'%s'>\n%s: %s." % (self.__class__.__name__, msg, err)
 */
          __Pyx_INCREF(__pyx_kp_u_Value_out_of_bounds);
          __Pyx_DECREF_SET(__pyx_v_msg, __pyx_kp_u_Value_out_of_bounds);
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          goto __pyx_L8_exception_handled;
        }
        goto __pyx_L9_except_error;

        /* "cytimes/pddatetime.py":2273
 *         if isinstance(err, (OverflowError, OutOfBoundsDatetime)):
 *             if msg is None:
 *                 try:             # <<<<<<<<<<<<<<
 *                     msg = (
 *                         "Value out of bounds for datetime64[%s]"
 */
        __pyx_L9_except_error:;
        __Pyx_XGIVEREF(__pyx_t_4);
        __Pyx_XGIVEREF(__pyx_t_5);
        __Pyx_XGIVEREF(__pyx_t_6);
        __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
        goto __pyx_L1_error;
        __pyx_L8_exception_handled:;
        __Pyx_XGIVEREF(__pyx_t_4);
        __Pyx_XGIVEREF(__pyx_t_5);
        __Pyx_XGIVEREF(__pyx_t_6);
        __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
        __pyx_L12_try_end:;
      }

      /* "cytimes/pddatetime.py":2272
 *     def _raise_error(self, err: Exception, msg: str = None) -> cython.bint:
 *         if isinstance(err, (OverflowError, OutOfBoundsDatetime)):
 *             if msg is None:             # <<<<<<<<<<<<<<
 *                 try:
 *                     msg = (
 */
    }

    /* "cytimes/pddatetime.py":2280
 *                 except Exception:
 *                     msg = "Value out of bounds"
 *             raise errors.DatetimeOutOfBoundsError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\n%s: %s." % (self.__class__.__name__, msg, err)
 *             ) from err
 */
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_errors); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_DatetimeOutOfBoundsError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cytimes/pddatetime.py":2281
 *                     msg = "Value out of bounds"
 *             raise errors.DatetimeOutOfBoundsError(
 *                 "<'%s'>\n%s: %s." % (self.__class__.__name__, msg, err)             # <<<<<<<<<<<<<<
 *             ) from err
 *         elif msg is not None:
 */
    __pyx_t_7 = PyTuple_New(7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_10 = 0;
    __pyx_t_11 = 127;
    __Pyx_INCREF(__pyx_kp_u__17);
    __pyx_t_10 += 2;
    __Pyx_GIVEREF(__pyx_kp_u__17);
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_u__17);
    __pyx_t_12 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_name_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_13), __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_11 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) > __pyx_t_11) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) : __pyx_t_11;
    __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_12);
    __Pyx_GIVEREF(__pyx_t_12);
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_12);
    __pyx_t_12 = 0;
    __Pyx_INCREF(__pyx_kp_u__21);
    __pyx_t_10 += 3;
    __Pyx_GIVEREF(__pyx_kp_u__21);
    PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u__21);
    __pyx_t_12 = __Pyx_PyUnicode_Unicode(__pyx_v_msg); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_11 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) > __pyx_t_11) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) : __pyx_t_11;
    __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_12);
    __Pyx_GIVEREF(__pyx_t_12);
    PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_12);
    __pyx_t_12 = 0;
    __Pyx_INCREF(__pyx_kp_u__22);
    __pyx_t_10 += 2;
    __Pyx_GIVEREF(__pyx_kp_u__22);
    PyTuple_SET_ITEM(__pyx_t_7, 4, __pyx_kp_u__22);
    __pyx_t_12 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_err), __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_11 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) > __pyx_t_11) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) : __pyx_t_11;
    __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_12);
    __Pyx_GIVEREF(__pyx_t_12);
    PyTuple_SET_ITEM(__pyx_t_7, 5, __pyx_t_12);
    __pyx_t_12 = 0;
    __Pyx_INCREF(__pyx_kp_u__8);
    __pyx_t_10 += 1;
    __Pyx_GIVEREF(__pyx_kp_u__8);
    PyTuple_SET_ITEM(__pyx_t_7, 6, __pyx_kp_u__8);
    __pyx_t_12 = __Pyx_PyUnicode_Join(__pyx_t_7, 7, __pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    __pyx_t_8 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
        __pyx_t_8 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_12};
      __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2280, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "cytimes/pddatetime.py":2282
 *             raise errors.DatetimeOutOfBoundsError(
 *                 "<'%s'>\n%s: %s." % (self.__class__.__name__, msg, err)
 *             ) from err             # <<<<<<<<<<<<<<
 *         elif msg is not None:
 *             raise errors.PddtValueError(
 */
    __Pyx_Raise(__pyx_t_9, 0, 0, __pyx_v_err);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __PYX_ERR(0, 2280, __pyx_L1_error)

    /* "cytimes/pddatetime.py":2271
 *     @cython.exceptval(-1, check=False)
 *     def _raise_error(self, err: Exception, msg: str = None) -> cython.bint:
 *         if isinstance(err, (OverflowError, OutOfBoundsDatetime)):             # <<<<<<<<<<<<<<
 *             if msg is None:
 *                 try:
 */
  }

  /* "cytimes/pddatetime.py":2283
 *                 "<'%s'>\n%s: %s." % (self.__class__.__name__, msg, err)
 *             ) from err
 *         elif msg is not None:             # <<<<<<<<<<<<<<
 *             raise errors.PddtValueError(
 *                 "<'%s'>\n%s: %s" % (self.__class__.__name__, msg, err)
 */
  __pyx_t_2 = (__pyx_v_msg != ((PyObject*)Py_None));
  if (unlikely(__pyx_t_2)) {

    /* "cytimes/pddatetime.py":2284
 *             ) from err
 *         elif msg is not None:
 *             raise errors.PddtValueError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\n%s: %s" % (self.__class__.__name__, msg, err)
 *             ) from err
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_errors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_PddtValueError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2285
 *         elif msg is not None:
 *             raise errors.PddtValueError(
 *                 "<'%s'>\n%s: %s" % (self.__class__.__name__, msg, err)             # <<<<<<<<<<<<<<
 *             ) from err
 *         elif msg is None:
 */
    __pyx_t_1 = PyTuple_New(6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_10 = 0;
    __pyx_t_11 = 127;
    __Pyx_INCREF(__pyx_kp_u__17);
    __pyx_t_10 += 2;
    __Pyx_GIVEREF(__pyx_kp_u__17);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u__17);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_name_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_13), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_11 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_11) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_11;
    __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_INCREF(__pyx_kp_u__21);
    __pyx_t_10 += 3;
    __Pyx_GIVEREF(__pyx_kp_u__21);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__21);
    __pyx_t_7 = __Pyx_PyUnicode_Unicode(__pyx_v_msg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_11 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_11) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_11;
    __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_INCREF(__pyx_kp_u__22);
    __pyx_t_10 += 2;
    __Pyx_GIVEREF(__pyx_kp_u__22);
    PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__22);
    __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_err), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_11 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_11) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_11;
    __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_7);
    __pyx_t_7 = 0;
    __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_1, 6, __pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    __pyx_t_8 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_12))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_12);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_12, function);
        __pyx_t_8 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_7};
      __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2284, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    }

    /* "cytimes/pddatetime.py":2286
 *             raise errors.PddtValueError(
 *                 "<'%s'>\n%s: %s" % (self.__class__.__name__, msg, err)
 *             ) from err             # <<<<<<<<<<<<<<
 *         elif msg is None:
 *             raise errors.PddtValueError(
 */
    __Pyx_Raise(__pyx_t_9, 0, 0, __pyx_v_err);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __PYX_ERR(0, 2284, __pyx_L1_error)

    /* "cytimes/pddatetime.py":2283
 *                 "<'%s'>\n%s: %s." % (self.__class__.__name__, msg, err)
 *             ) from err
 *         elif msg is not None:             # <<<<<<<<<<<<<<
 *             raise errors.PddtValueError(
 *                 "<'%s'>\n%s: %s" % (self.__class__.__name__, msg, err)
 */
  }

  /* "cytimes/pddatetime.py":2287
 *                 "<'%s'>\n%s: %s" % (self.__class__.__name__, msg, err)
 *             ) from err
 *         elif msg is None:             # <<<<<<<<<<<<<<
 *             raise errors.PddtValueError(
 *                 "<'%s'>\n%s" % (self.__class__.__name__, err)
 */
  __pyx_t_2 = (__pyx_v_msg == ((PyObject*)Py_None));
  if (unlikely(__pyx_t_2)) {

    /* "cytimes/pddatetime.py":2288
 *             ) from err
 *         elif msg is None:
 *             raise errors.PddtValueError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\n%s" % (self.__class__.__name__, err)
 *             ) from err
 */
    __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_errors); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_PddtValueError); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

    /* "cytimes/pddatetime.py":2289
 *         elif msg is None:
 *             raise errors.PddtValueError(
 *                 "<'%s'>\n%s" % (self.__class__.__name__, err)             # <<<<<<<<<<<<<<
 *             ) from err
 *         else:
 */
    __pyx_t_12 = PyTuple_New(4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_10 = 0;
    __pyx_t_11 = 127;
    __Pyx_INCREF(__pyx_kp_u__17);
    __pyx_t_10 += 2;
    __Pyx_GIVEREF(__pyx_kp_u__17);
    PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_kp_u__17);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_name_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_13), __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_11 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_11) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_11;
    __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_INCREF(__pyx_kp_u__21);
    __pyx_t_10 += 3;
    __Pyx_GIVEREF(__pyx_kp_u__21);
    PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_kp_u__21);
    __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_err), __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_11 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_11) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_11;
    __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_12, 3, __pyx_t_1);
    __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_12, 4, __pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = NULL;
    __pyx_t_8 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_12)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_12);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
        __pyx_t_8 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_1};
      __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2288, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    }

    /* "cytimes/pddatetime.py":2290
 *             raise errors.PddtValueError(
 *                 "<'%s'>\n%s" % (self.__class__.__name__, err)
 *             ) from err             # <<<<<<<<<<<<<<
 *         else:
 *             return -1
 */
    __Pyx_Raise(__pyx_t_9, 0, 0, __pyx_v_err);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __PYX_ERR(0, 2288, __pyx_L1_error)

    /* "cytimes/pddatetime.py":2287
 *                 "<'%s'>\n%s: %s" % (self.__class__.__name__, msg, err)
 *             ) from err
 *         elif msg is None:             # <<<<<<<<<<<<<<
 *             raise errors.PddtValueError(
 *                 "<'%s'>\n%s" % (self.__class__.__name__, err)
 */
  }

  /* "cytimes/pddatetime.py":2292
 *             ) from err
 *         else:
 *             return -1             # <<<<<<<<<<<<<<
 * 
 *     # Special methods: addition ---------------------------------------------------------------
 */
  /*else*/ {
    __pyx_r = -1;
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.py":2267
 *         return True
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     @cython.exceptval(-1, check=False)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._raise_error", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_msg);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2295
 * 
 *     # Special methods: addition ---------------------------------------------------------------
 *     def __add__(self, o: object) -> pddt:             # <<<<<<<<<<<<<<
 *         try:
 *             obj = self._dt + o
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_137__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_137__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__add__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_136__add__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_136__add__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_obj = NULL;
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__add__", 1);

  /* "cytimes/pddatetime.py":2296
 *     # Special methods: addition ---------------------------------------------------------------
 *     def __add__(self, o: object) -> pddt:
 *         try:             # <<<<<<<<<<<<<<
 *             obj = self._dt + o
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2297
 *     def __add__(self, o: object) -> pddt:
 *         try:
 *             obj = self._dt + o             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Addition failed")
 */
      __pyx_t_4 = PyNumber_Add(__pyx_v_self->_dt, __pyx_v_o); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2297, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_v_obj = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cytimes/pddatetime.py":2296
 *     # Special methods: addition ---------------------------------------------------------------
 *     def __add__(self, o: object) -> pddt:
 *         try:             # <<<<<<<<<<<<<<
 *             obj = self._dt + o
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":2298
 *         try:
 *             obj = self._dt + o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Addition failed")
 *         return self._new(obj, self._dt.name, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__add__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2298, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2299
 *             obj = self._dt + o
 *         except Exception as err:
 *             self._raise_error(err, "Addition failed")             # <<<<<<<<<<<<<<
 *         return self._new(obj, self._dt.name, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2299, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Addition_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2299, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2298
 *         try:
 *             obj = self._dt + o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Addition failed")
 *         return self._new(obj, self._dt.name, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2296
 *     # Special methods: addition ---------------------------------------------------------------
 *     def __add__(self, o: object) -> pddt:
 *         try:             # <<<<<<<<<<<<<<
 *             obj = self._dt + o
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":2300
 *         except Exception as err:
 *             self._raise_error(err, "Addition failed")
 *         return self._new(obj, self._dt.name, None, False)             # <<<<<<<<<<<<<<
 * 
 *     def __radd__(self, o: object) -> pddt:
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(!__pyx_v_obj)) { __Pyx_RaiseUnboundLocalError("obj"); __PYX_ERR(0, 2300, __pyx_L1_error) }
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_obj, __pyx_t_7, Py_None, Py_False)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2295
 * 
 *     # Special methods: addition ---------------------------------------------------------------
 *     def __add__(self, o: object) -> pddt:             # <<<<<<<<<<<<<<
 *         try:
 *             obj = self._dt + o
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__add__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_obj);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2302
 *         return self._new(obj, self._dt.name, None, False)
 * 
 *     def __radd__(self, o: object) -> pddt:             # <<<<<<<<<<<<<<
 *         try:
 *             obj = o + self._dt
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_139__radd__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_139__radd__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__radd__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_138__radd__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_138__radd__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_obj = NULL;
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__radd__", 1);

  /* "cytimes/pddatetime.py":2303
 * 
 *     def __radd__(self, o: object) -> pddt:
 *         try:             # <<<<<<<<<<<<<<
 *             obj = o + self._dt
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2304
 *     def __radd__(self, o: object) -> pddt:
 *         try:
 *             obj = o + self._dt             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Addition failed")
 */
      __pyx_t_4 = PyNumber_Add(__pyx_v_o, __pyx_v_self->_dt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2304, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_v_obj = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cytimes/pddatetime.py":2303
 * 
 *     def __radd__(self, o: object) -> pddt:
 *         try:             # <<<<<<<<<<<<<<
 *             obj = o + self._dt
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":2305
 *         try:
 *             obj = o + self._dt
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Addition failed")
 *         return self._new(obj, self._dt.name, None, False)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__radd__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2305, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2306
 *             obj = o + self._dt
 *         except Exception as err:
 *             self._raise_error(err, "Addition failed")             # <<<<<<<<<<<<<<
 *         return self._new(obj, self._dt.name, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2306, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Addition_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2306, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2305
 *         try:
 *             obj = o + self._dt
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Addition failed")
 *         return self._new(obj, self._dt.name, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2303
 * 
 *     def __radd__(self, o: object) -> pddt:
 *         try:             # <<<<<<<<<<<<<<
 *             obj = o + self._dt
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":2307
 *         except Exception as err:
 *             self._raise_error(err, "Addition failed")
 *         return self._new(obj, self._dt.name, None, False)             # <<<<<<<<<<<<<<
 * 
 *     # Special methods: substraction -----------------------------------------------------------
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(!__pyx_v_obj)) { __Pyx_RaiseUnboundLocalError("obj"); __PYX_ERR(0, 2307, __pyx_L1_error) }
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_obj, __pyx_t_7, Py_None, Py_False)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2302
 *         return self._new(obj, self._dt.name, None, False)
 * 
 *     def __radd__(self, o: object) -> pddt:             # <<<<<<<<<<<<<<
 *         try:
 *             obj = o + self._dt
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__radd__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_obj);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2310
 * 
 *     # Special methods: substraction -----------------------------------------------------------
 *     def __sub__(self, o: object) -> pddt | Series:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_141__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_141__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__sub__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_140__sub__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_140__sub__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_obj = NULL;
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__sub__", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2311
 *     # Special methods: substraction -----------------------------------------------------------
 *     def __sub__(self, o: object) -> pddt | Series:
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             obj = self._dt - o
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2312
 *     def __sub__(self, o: object) -> pddt | Series:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             obj = self._dt - o
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2313
 *         o = self._obj_to_series(o)
 *         try:
 *             obj = self._dt - o             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Substraction failed")
 */
      __pyx_t_1 = PyNumber_Subtract(__pyx_v_self->_dt, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2313, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_obj = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":2312
 *     def __sub__(self, o: object) -> pddt | Series:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             obj = self._dt - o
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2314
 *         try:
 *             obj = self._dt - o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Substraction failed")
 *         return self._obj_to_pddt(obj, self._dt.name, None)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__sub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2314, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2315
 *             obj = self._dt - o
 *         except Exception as err:
 *             self._raise_error(err, "Substraction failed")             # <<<<<<<<<<<<<<
 *         return self._obj_to_pddt(obj, self._dt.name, None)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2315, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Substraction_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2315, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2314
 *         try:
 *             obj = self._dt - o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Substraction failed")
 *         return self._obj_to_pddt(obj, self._dt.name, None)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2312
 *     def __sub__(self, o: object) -> pddt | Series:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             obj = self._dt - o
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":2316
 *         except Exception as err:
 *             self._raise_error(err, "Substraction failed")
 *         return self._obj_to_pddt(obj, self._dt.name, None)             # <<<<<<<<<<<<<<
 * 
 *     def __rsub__(self, o: object) -> pddt | Series:
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(!__pyx_v_obj)) { __Pyx_RaiseUnboundLocalError("obj"); __PYX_ERR(0, 2316, __pyx_L1_error) }
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_pddt(__pyx_v_self, __pyx_v_obj, __pyx_t_7, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2310
 * 
 *     # Special methods: substraction -----------------------------------------------------------
 *     def __sub__(self, o: object) -> pddt | Series:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__sub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_obj);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2318
 *         return self._obj_to_pddt(obj, self._dt.name, None)
 * 
 *     def __rsub__(self, o: object) -> pddt | Series:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_143__rsub__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_143__rsub__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__rsub__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_142__rsub__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_142__rsub__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_obj = NULL;
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__rsub__", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2319
 * 
 *     def __rsub__(self, o: object) -> pddt | Series:
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             obj = o - self._dt
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2320
 *     def __rsub__(self, o: object) -> pddt | Series:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             obj = o - self._dt
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2321
 *         o = self._obj_to_series(o)
 *         try:
 *             obj = o - self._dt             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Substraction failed")
 */
      __pyx_t_1 = PyNumber_Subtract(__pyx_v_o, __pyx_v_self->_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2321, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_obj = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":2320
 *     def __rsub__(self, o: object) -> pddt | Series:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             obj = o - self._dt
 *         except Exception as err:
 */
    }
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2322
 *         try:
 *             obj = o - self._dt
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Substraction failed")
 *         return self._obj_to_pddt(obj, self._dt.name, None)
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__rsub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2322, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2323
 *             obj = o - self._dt
 *         except Exception as err:
 *             self._raise_error(err, "Substraction failed")             # <<<<<<<<<<<<<<
 *         return self._obj_to_pddt(obj, self._dt.name, None)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2323, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Substraction_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2323, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2322
 *         try:
 *             obj = o - self._dt
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Substraction failed")
 *         return self._obj_to_pddt(obj, self._dt.name, None)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2320
 *     def __rsub__(self, o: object) -> pddt | Series:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             obj = o - self._dt
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":2324
 *         except Exception as err:
 *             self._raise_error(err, "Substraction failed")
 *         return self._obj_to_pddt(obj, self._dt.name, None)             # <<<<<<<<<<<<<<
 * 
 *     # Special methods - comparison ------------------------------------------------------------
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(!__pyx_v_obj)) { __Pyx_RaiseUnboundLocalError("obj"); __PYX_ERR(0, 2324, __pyx_L1_error) }
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_pddt(__pyx_v_self, __pyx_v_obj, __pyx_t_7, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2318
 *         return self._obj_to_pddt(obj, self._dt.name, None)
 * 
 *     def __rsub__(self, o: object) -> pddt | Series:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__rsub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_obj);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2327
 * 
 *     # Special methods - comparison ------------------------------------------------------------
 *     def __eq__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_145__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_145__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_144__eq__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_144__eq__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__eq__", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2328
 *     # Special methods - comparison ------------------------------------------------------------
 *     def __eq__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._dt == o
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2329
 *     def __eq__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt == o
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2330
 *         o = self._obj_to_series(o)
 *         try:
 *             return self._dt == o             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_self->_dt, __pyx_v_o, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2330, __pyx_L3_error)
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L7_try_return;

      /* "cytimes/pddatetime.py":2329
 *     def __eq__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt == o
 *         except Exception as err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2331
 *         try:
 *             return self._dt == o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2331, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2332
 *             return self._dt == o
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")             # <<<<<<<<<<<<<<
 * 
 *     def __ne__(self, o: object) -> Series[bool]:
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2332, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Comparison_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2332, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2331
 *         try:
 *             return self._dt == o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2329
 *     def __eq__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt == o
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
  }

  /* "cytimes/pddatetime.py":2327
 * 
 *     # Special methods - comparison ------------------------------------------------------------
 *     def __eq__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2334
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __ne__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_147__ne__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_147__ne__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__ne__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_146__ne__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_146__ne__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__ne__", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2335
 * 
 *     def __ne__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._dt != o
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2336
 *     def __ne__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt != o
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2337
 *         o = self._obj_to_series(o)
 *         try:
 *             return self._dt != o             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_self->_dt, __pyx_v_o, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2337, __pyx_L3_error)
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L7_try_return;

      /* "cytimes/pddatetime.py":2336
 *     def __ne__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt != o
 *         except Exception as err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2338
 *         try:
 *             return self._dt != o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__ne__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2338, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2339
 *             return self._dt != o
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")             # <<<<<<<<<<<<<<
 * 
 *     def __gt__(self, o: object) -> Series[bool]:
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2339, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Comparison_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2339, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2338
 *         try:
 *             return self._dt != o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2336
 *     def __ne__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt != o
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
  }

  /* "cytimes/pddatetime.py":2334
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __ne__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__ne__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2341
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __gt__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_149__gt__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_149__gt__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__gt__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_148__gt__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_148__gt__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__gt__", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2342
 * 
 *     def __gt__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._dt > o
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2343
 *     def __gt__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt > o
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2344
 *         o = self._obj_to_series(o)
 *         try:
 *             return self._dt > o             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_self->_dt, __pyx_v_o, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2344, __pyx_L3_error)
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L7_try_return;

      /* "cytimes/pddatetime.py":2343
 *     def __gt__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt > o
 *         except Exception as err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2345
 *         try:
 *             return self._dt > o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__gt__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2345, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2346
 *             return self._dt > o
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")             # <<<<<<<<<<<<<<
 * 
 *     def __ge__(self, o: object) -> Series[bool]:
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2346, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Comparison_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2345
 *         try:
 *             return self._dt > o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2343
 *     def __gt__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt > o
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
  }

  /* "cytimes/pddatetime.py":2341
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __gt__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__gt__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2348
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __ge__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_151__ge__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_151__ge__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__ge__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_150__ge__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_150__ge__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__ge__", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2349
 * 
 *     def __ge__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._dt >= o
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2350
 *     def __ge__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt >= o
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2351
 *         o = self._obj_to_series(o)
 *         try:
 *             return self._dt >= o             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_self->_dt, __pyx_v_o, Py_GE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2351, __pyx_L3_error)
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L7_try_return;

      /* "cytimes/pddatetime.py":2350
 *     def __ge__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt >= o
 *         except Exception as err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2352
 *         try:
 *             return self._dt >= o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__ge__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2352, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2353
 *             return self._dt >= o
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")             # <<<<<<<<<<<<<<
 * 
 *     def __lt__(self, o: object) -> Series[bool]:
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2353, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Comparison_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2352
 *         try:
 *             return self._dt >= o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2350
 *     def __ge__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt >= o
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
  }

  /* "cytimes/pddatetime.py":2348
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __ge__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__ge__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2355
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __lt__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_153__lt__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_153__lt__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__lt__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_152__lt__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_152__lt__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__lt__", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2356
 * 
 *     def __lt__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._dt < o
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2357
 *     def __lt__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt < o
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2358
 *         o = self._obj_to_series(o)
 *         try:
 *             return self._dt < o             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_self->_dt, __pyx_v_o, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2358, __pyx_L3_error)
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L7_try_return;

      /* "cytimes/pddatetime.py":2357
 *     def __lt__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt < o
 *         except Exception as err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2359
 *         try:
 *             return self._dt < o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__lt__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2359, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2360
 *             return self._dt < o
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")             # <<<<<<<<<<<<<<
 * 
 *     def __le__(self, o: object) -> Series[bool]:
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2360, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Comparison_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2360, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2359
 *         try:
 *             return self._dt < o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2357
 *     def __lt__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt < o
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
  }

  /* "cytimes/pddatetime.py":2355
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __lt__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__lt__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2362
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __le__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_155__le__(PyObject *__pyx_v_self, PyObject *__pyx_v_o); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_155__le__(PyObject *__pyx_v_self, PyObject *__pyx_v_o) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__le__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_154__le__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_o));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_154__le__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__le__", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2363
 * 
 *     def __le__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._dt <= o
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2364
 *     def __le__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt <= o
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2365
 *         o = self._obj_to_series(o)
 *         try:
 *             return self._dt <= o             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_self->_dt, __pyx_v_o, Py_LE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2365, __pyx_L3_error)
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L7_try_return;

      /* "cytimes/pddatetime.py":2364
 *     def __le__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt <= o
 *         except Exception as err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2366
 *         try:
 *             return self._dt <= o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.__le__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2366, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2367
 *             return self._dt <= o
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")             # <<<<<<<<<<<<<<
 * 
 *     def equals(self, o: object) -> bool:
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2367, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Comparison_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2367, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2366
 *         try:
 *             return self._dt <= o
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_5 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2364
 *     def __le__(self, o: object) -> Series[bool]:
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt <= o
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
  }

  /* "cytimes/pddatetime.py":2362
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def __le__(self, o: object) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         o = self._obj_to_series(o)
 *         try:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__le__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2369
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def equals(self, o: object) -> bool:             # <<<<<<<<<<<<<<
 *         """Test whether two objects contain the same elements `<'bool'>`.
 *         (Equivalent to `pandas.Series.equal()` method).
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_157equals(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_156equals, "Test whether two objects contain the same elements `<'bool'>`.\n        (Equivalent to `pandas.Series.equal()` method).\n\n        Support comparison between `pddt` and `pandas.Series`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_157equals = {"equals", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_157equals, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_156equals};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_157equals(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_o = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("equals (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_o,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_o)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2369, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "equals") < 0)) __PYX_ERR(0, 2369, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_o = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("equals", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 2369, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.equals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_156equals(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_o);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_156equals(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_o) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error __pyx_t_9;
  int __pyx_t_10;
  char const *__pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("equals", 0);
  __Pyx_INCREF(__pyx_v_o);

  /* "cytimes/pddatetime.py":2374
 * 
 *         Support comparison between `pddt` and `pandas.Series`."""
 *         o = self._obj_to_series(o)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._dt.equals(o)
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series(__pyx_v_self, __pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_o, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cytimes/pddatetime.py":2375
 *         Support comparison between `pddt` and `pandas.Series`."""
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt.equals(o)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2376
 *         o = self._obj_to_series(o)
 *         try:
 *             return self._dt.equals(o)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_equals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2376, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = NULL;
      __pyx_t_7 = 0;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
          __pyx_t_7 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_o};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2376, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      }
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L7_try_return;

      /* "cytimes/pddatetime.py":2375
 *         Support comparison between `pddt` and `pandas.Series`."""
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt.equals(o)
 *         except Exception as err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cytimes/pddatetime.py":2377
 *         try:
 *             return self._dt.equals(o)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
    __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_7) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt.equals", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 2377, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_v_err = __pyx_t_5;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2378
 *             return self._dt.equals(o)
 *         except Exception as err:
 *             self._raise_error(err, "Comparison failed")             # <<<<<<<<<<<<<<
 * 
 *     # Special methods - copy ------------------------------------------------------------------
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2378, __pyx_L14_error)
        __pyx_t_9.__pyx_n = 1;
        __pyx_t_9.msg = __pyx_kp_u_Comparison_failed;
        __pyx_t_8 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), &__pyx_t_9); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 2378, __pyx_L14_error)
      }

      /* "cytimes/pddatetime.py":2377
 *         try:
 *             return self._dt.equals(o)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err, "Comparison failed")
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L15;
        }
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __pyx_t_7 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          }
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14);
          __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0;
          __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11;
          goto __pyx_L5_except_error;
        }
        __pyx_L15:;
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2375
 *         Support comparison between `pddt` and `pandas.Series`."""
 *         o = self._obj_to_series(o)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._dt.equals(o)
 *         except Exception as err:
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
  }

  /* "cytimes/pddatetime.py":2369
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def equals(self, o: object) -> bool:             # <<<<<<<<<<<<<<
 *         """Test whether two objects contain the same elements `<'bool'>`.
 *         (Equivalent to `pandas.Series.equal()` method).
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.equals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_o);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2381
 * 
 *     # Special methods - copy ------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def copy(self) -> pddt:
 *         "Make a (deep)copy of the `<'pddt'>`."
 */

static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_159copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt_copy(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("copy", 1);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2381, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_7cytimes_10pddatetime_4pddt_159copy)) {
        __Pyx_XDECREF((PyObject *)__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2381, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_7cytimes_10pddatetime_pddt))))) __PYX_ERR(0, 2381, __pyx_L1_error)
        __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "cytimes/pddatetime.py":2384
 *     def copy(self) -> pddt:
 *         "Make a (deep)copy of the `<'pddt'>`."
 *         return self._new(self._dt, None, None, True)             # <<<<<<<<<<<<<<
 * 
 *     def __copy__(self, *args, **kwargs) -> pddt:
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_1, Py_None, Py_None, Py_True)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2381
 * 
 *     # Special methods - copy ------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def copy(self) -> pddt:
 *         "Make a (deep)copy of the `<'pddt'>`."
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_159copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_7cytimes_10pddatetime_4pddt_158copy, "Make a (deep)copy of the `<'pddt'>`.");
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_159copy = {"copy", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_159copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_158copy};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_159copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("copy (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("copy", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "copy", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_158copy(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_158copy(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("copy", 1);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt_copy(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2386
 *         return self._new(self._dt, None, None, True)
 * 
 *     def __copy__(self, *args, **kwargs) -> pddt:             # <<<<<<<<<<<<<<
 *         return self._new(self._dt, None, None, True)
 * 
 */

/* Python wrapper */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_161__copy__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_161__copy__ = {"__copy__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_161__copy__, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_161__copy__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__copy__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__copy__", 1))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_160__copy__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_160__copy__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__copy__", 1);

  /* "cytimes/pddatetime.py":2387
 * 
 *     def __copy__(self, *args, **kwargs) -> pddt:
 *         return self._new(self._dt, None, None, True)             # <<<<<<<<<<<<<<
 * 
 *     def __deepcopy__(self, *args, **kwargs) -> pddt:
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_1, Py_None, Py_None, Py_True)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2386
 *         return self._new(self._dt, None, None, True)
 * 
 *     def __copy__(self, *args, **kwargs) -> pddt:             # <<<<<<<<<<<<<<
 *         return self._new(self._dt, None, None, True)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__copy__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2389
 *         return self._new(self._dt, None, None, True)
 * 
 *     def __deepcopy__(self, *args, **kwargs) -> pddt:             # <<<<<<<<<<<<<<
 *         return self._new(self._dt, None, None, True)
 * 
 */

/* Python wrapper */
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_163__deepcopy__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_163__deepcopy__ = {"__deepcopy__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_163__deepcopy__, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pw_7cytimes_10pddatetime_4pddt_163__deepcopy__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__deepcopy__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__deepcopy__", 1))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_162__deepcopy__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_pf_7cytimes_10pddatetime_4pddt_162__deepcopy__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__deepcopy__", 1);

  /* "cytimes/pddatetime.py":2390
 * 
 *     def __deepcopy__(self, *args, **kwargs) -> pddt:
 *         return self._new(self._dt, None, None, True)             # <<<<<<<<<<<<<<
 * 
 *     # Special methods: represent --------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_t_1, Py_None, Py_None, Py_True)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2389
 *         return self._new(self._dt, None, None, True)
 * 
 *     def __deepcopy__(self, *args, **kwargs) -> pddt:             # <<<<<<<<<<<<<<
 *         return self._new(self._dt, None, None, True)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__deepcopy__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2393
 * 
 *     # Special methods: represent --------------------------------------------------------------
 *     def __repr__(self) -> str:             # <<<<<<<<<<<<<<
 *         return "<%s(\n%s)>" % (self.__class__.__name__, self._dt.__repr__())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_165__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_165__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_164__repr__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_164__repr__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 1);

  /* "cytimes/pddatetime.py":2394
 *     # Special methods: represent --------------------------------------------------------------
 *     def __repr__(self) -> str:
 *         return "<%s(\n%s)>" % (self.__class__.__name__, self._dt.__repr__())             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self) -> str:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u__23);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__23);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u__23);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_5), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__24);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__24);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__24);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_repr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
      __pyx_t_7 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 0+__pyx_t_7);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__25);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__25);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__25);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2393
 * 
 *     # Special methods: represent --------------------------------------------------------------
 *     def __repr__(self) -> str:             # <<<<<<<<<<<<<<
 *         return "<%s(\n%s)>" % (self.__class__.__name__, self._dt.__repr__())
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2396
 *         return "<%s(\n%s)>" % (self.__class__.__name__, self._dt.__repr__())
 * 
 *     def __str__(self) -> str:             # <<<<<<<<<<<<<<
 *         return self._dt.__repr__()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_167__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_167__str__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_166__str__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_166__str__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 1);

  /* "cytimes/pddatetime.py":2397
 * 
 *     def __str__(self) -> str:
 *         return self._dt.__repr__()             # <<<<<<<<<<<<<<
 * 
 *     # Special methods: others -----------------------------------------------------------------
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_repr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2396
 *         return "<%s(\n%s)>" % (self.__class__.__name__, self._dt.__repr__())
 * 
 *     def __str__(self) -> str:             # <<<<<<<<<<<<<<
 *         return self._dt.__repr__()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2400
 * 
 *     # Special methods: others -----------------------------------------------------------------
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return len(self._dt)
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_7cytimes_10pddatetime_4pddt_169__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_7cytimes_10pddatetime_4pddt_169__len__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_168__len__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_7cytimes_10pddatetime_4pddt_168__len__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__len__", 1);

  /* "cytimes/pddatetime.py":2401
 *     # Special methods: others -----------------------------------------------------------------
 *     def __len__(self) -> int:
 *         return len(self._dt)             # <<<<<<<<<<<<<<
 * 
 *     def __contains__(self, key) -> bool:
 */
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2401, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2400
 * 
 *     # Special methods: others -----------------------------------------------------------------
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return len(self._dt)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2403
 *         return len(self._dt)
 * 
 *     def __contains__(self, key) -> bool:             # <<<<<<<<<<<<<<
 *         return self._dt.__contains__(key)
 * 
 */

/* Python wrapper */
static int __pyx_pw_7cytimes_10pddatetime_4pddt_171__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static int __pyx_pw_7cytimes_10pddatetime_4pddt_171__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__contains__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_170__contains__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_7cytimes_10pddatetime_4pddt_170__contains__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__contains__", 1);

  /* "cytimes/pddatetime.py":2404
 * 
 *     def __contains__(self, key) -> bool:
 *         return self._dt.__contains__(key)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, key) -> Timestamp:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_contains); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_key};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2404, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2403
 *         return len(self._dt)
 * 
 *     def __contains__(self, key) -> bool:             # <<<<<<<<<<<<<<
 *         return self._dt.__contains__(key)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2406
 *         return self._dt.__contains__(key)
 * 
 *     def __getitem__(self, key) -> Timestamp:             # <<<<<<<<<<<<<<
 *         return self._dt.__getitem__(key)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_173__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_173__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_172__getitem__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_172__getitem__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 1);

  /* "cytimes/pddatetime.py":2407
 * 
 *     def __getitem__(self, key) -> Timestamp:
 *         return self._dt.__getitem__(key)             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self) -> Iterator[Timestamp]:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_getitem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_key};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2406
 *         return self._dt.__contains__(key)
 * 
 *     def __getitem__(self, key) -> Timestamp:             # <<<<<<<<<<<<<<
 *         return self._dt.__getitem__(key)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2409
 *         return self._dt.__getitem__(key)
 * 
 *     def __iter__(self) -> Iterator[Timestamp]:             # <<<<<<<<<<<<<<
 *         return self._dt.__iter__()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_175__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_175__iter__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_174__iter__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_174__iter__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iter__", 1);

  /* "cytimes/pddatetime.py":2410
 * 
 *     def __iter__(self) -> Iterator[Timestamp]:
 *         return self._dt.__iter__()             # <<<<<<<<<<<<<<
 * 
 *     def __array__(self) -> np.ndarray:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_iter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2409
 *         return self._dt.__getitem__(key)
 * 
 *     def __iter__(self) -> Iterator[Timestamp]:             # <<<<<<<<<<<<<<
 *         return self._dt.__iter__()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2412
 *         return self._dt.__iter__()
 * 
 *     def __array__(self) -> np.ndarray:             # <<<<<<<<<<<<<<
 *         return self._dt.__array__()
 * 
 */

/* Python wrapper */
static PyArrayObject *__pyx_pw_7cytimes_10pddatetime_4pddt_177__array__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_177__array__ = {"__array__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_177__array__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyArrayObject *__pyx_pw_7cytimes_10pddatetime_4pddt_177__array__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyArrayObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__array__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("__array__", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__array__", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_176__array__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyArrayObject *__pyx_pf_7cytimes_10pddatetime_4pddt_176__array__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyArrayObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__array__", 1);

  /* "cytimes/pddatetime.py":2413
 * 
 *     def __array__(self) -> np.ndarray:
 *         return self._dt.__array__()             # <<<<<<<<<<<<<<
 * 
 *     # C-API: Access ---------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2413, __pyx_L1_error)
  __pyx_r = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2412
 *         return self._dt.__iter__()
 * 
 *     def __array__(self) -> np.ndarray:             # <<<<<<<<<<<<<<
 *         return self._dt.__array__()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__array__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2416
 * 
 *     # C-API: Access ---------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_unit(self) -> str:
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_unit(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_c_unit", 1);

  /* "cytimes/pddatetime.py":2421
 *         """(cfunc) Access the time unit of the Series `<'str'>`.
 *         Such as 'ns', 'us', 'ms', 's'."""
 *         return cydt.get_dt64series_unit(self._dt)             # <<<<<<<<<<<<<<
 * 
 *     # C-API: Weekday --------------------------------------------------------------------------
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_self->_dt;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_7cytimes_10cydatetime_get_dt64series_unit(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2416
 * 
 *     # C-API: Access ---------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_unit(self) -> str:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._c_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2424
 * 
 *     # C-API: Weekday --------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_to_curr_weekday(self, weekday: cython.int) -> pddt:
 */

static CYTHON_INLINE struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, int __pyx_v_weekday) {
  PyObject *__pyx_v_dt = NULL;
  PyObject *__pyx_v_err = NULL;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_t_9;
  char const *__pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_c_to_curr_weekday", 1);

  /* "cytimes/pddatetime.py":2429
 *         """(cfunc) Go to specific 'weekday (<'int'>)'
 *         of the current week `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             if weekday == 0:
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2430
 *         of the current week `<'pddt'>`."""
 *         try:
 *             if weekday == 0:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 *                     self._dt.dt.weekday.values, "D"
 */
      __pyx_t_4 = (__pyx_v_weekday == 0);
      if (__pyx_t_4) {

        /* "cytimes/pddatetime.py":2432
 *             if weekday == 0:
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 *                     self._dt.dt.weekday.values, "D"             # <<<<<<<<<<<<<<
 *                 )
 *             else:
 */
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2432, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_weekday); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2432, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2432, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cytimes/pddatetime.py":2431
 *         try:
 *             if weekday == 0:
 *                 dt: Series = self._dt - self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     self._dt.dt.weekday.values, "D"
 *                 )
 */
        __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_5, __pyx_n_u_D); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2431, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = PyNumber_Subtract(__pyx_v_self->_dt, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2431, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_dt = __pyx_t_5;
        __pyx_t_5 = 0;

        /* "cytimes/pddatetime.py":2430
 *         of the current week `<'pddt'>`."""
 *         try:
 *             if weekday == 0:             # <<<<<<<<<<<<<<
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 *                     self._dt.dt.weekday.values, "D"
 */
        goto __pyx_L9;
      }

      /* "cytimes/pddatetime.py":2435
 *                 )
 *             else:
 *                 dt: Series = self._dt - self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     self._dt.dt.weekday.values - weekday, "D"
 *                 )
 */
      /*else*/ {

        /* "cytimes/pddatetime.py":2436
 *             else:
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 *                     self._dt.dt.weekday.values - weekday, "D"             # <<<<<<<<<<<<<<
 *                 )
 *         except Exception as err:
 */
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2436, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_weekday); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2436, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2436, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_weekday); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2436, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = PyNumber_Subtract(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2436, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cytimes/pddatetime.py":2435
 *                 )
 *             else:
 *                 dt: Series = self._dt - self._arr_to_tdindex(             # <<<<<<<<<<<<<<
 *                     self._dt.dt.weekday.values - weekday, "D"
 *                 )
 */
        __pyx_t_6 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex(__pyx_v_self, __pyx_t_7, __pyx_n_u_D); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2435, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_Subtract(__pyx_v_self->_dt, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2435, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_dt = __pyx_t_7;
        __pyx_t_7 = 0;
      }
      __pyx_L9:;

      /* "cytimes/pddatetime.py":2429
 *         """(cfunc) Go to specific 'weekday (<'int'>)'
 *         of the current week `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             if weekday == 0:
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cytimes/pddatetime.py":2438
 *                     self._dt.dt.weekday.values - weekday, "D"
 *                 )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
    __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_8) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt._c_to_curr_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_5) < 0) __PYX_ERR(0, 2438, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_v_err = __pyx_t_6;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2439
 *                 )
 *         except Exception as err:
 *             self._raise_error(err)             # <<<<<<<<<<<<<<
 *         return self._new(dt, None, None, False)
 * 
 */
        if (!(likely(__Pyx_PyException_Check(__pyx_v_err))||((__pyx_v_err) == Py_None) || __Pyx_RaiseUnexpectedTypeError("Exception", __pyx_v_err))) __PYX_ERR(0, 2439, __pyx_L15_error)
        __pyx_t_4 = __pyx_f_7cytimes_10pddatetime_4pddt__raise_error(__pyx_v_self, ((PyObject*)__pyx_v_err), NULL); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2439, __pyx_L15_error)
      }

      /* "cytimes/pddatetime.py":2438
 *                     self._dt.dt.weekday.values - weekday, "D"
 *                 )
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)
 */
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          goto __pyx_L16;
        }
        __pyx_L15_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_12);
          __Pyx_XGOTREF(__pyx_t_13);
          __Pyx_XGOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __pyx_t_8 = __pyx_lineno; __pyx_t_9 = __pyx_clineno; __pyx_t_10 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_14);
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_15, __pyx_t_16);
          }
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_ErrRestore(__pyx_t_11, __pyx_t_12, __pyx_t_13);
          __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0;
          __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_9; __pyx_filename = __pyx_t_10;
          goto __pyx_L5_except_error;
        }
        __pyx_L16:;
      }
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cytimes/pddatetime.py":2429
 *         """(cfunc) Go to specific 'weekday (<'int'>)'
 *         of the current week `<'pddt'>`."""
 *         try:             # <<<<<<<<<<<<<<
 *             if weekday == 0:
 *                 dt: Series = self._dt - self._arr_to_tdindex(
 */
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "cytimes/pddatetime.py":2440
 *         except Exception as err:
 *             self._raise_error(err)
 *         return self._new(dt, None, None, False)             # <<<<<<<<<<<<<<
 * 
 *     # C-API: Timezone -------------------------------------------------------------------------
 */
  __Pyx_XDECREF((PyObject *)__pyx_r);
  if (unlikely(!__pyx_v_dt)) { __Pyx_RaiseUnboundLocalError("dt"); __PYX_ERR(0, 2440, __pyx_L1_error) }
  __pyx_t_5 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__new(__pyx_v_self, __pyx_v_dt, Py_None, Py_None, Py_False)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_r = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_t_5);
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2424
 * 
 *     # C-API: Weekday --------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_to_curr_weekday(self, weekday: cython.int) -> pddt:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._c_to_curr_weekday", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2443
 * 
 *     # C-API: Timezone -------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_tz_localize(
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_tz_localize(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dt, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_UCS4 __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_t_17;
  char const *__pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_c_tz_localize", 1);

  /* "cytimes/pddatetime.py":2455
 *         Equivalent to `Series.dt.tz_localize(tz)`."""
 *         # No need to change timezone
 *         if tz is None and tz is dt.dt.tz:             # <<<<<<<<<<<<<<
 *             return dt
 *         # Localize to timezone
 */
  __pyx_t_2 = (__pyx_v_tz == Py_None);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_tz); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (__pyx_v_tz == __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cytimes/pddatetime.py":2456
 *         # No need to change timezone
 *         if tz is None and tz is dt.dt.tz:
 *             return dt             # <<<<<<<<<<<<<<
 *         # Localize to timezone
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_dt);
    __pyx_r = __pyx_v_dt;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2455
 *         Equivalent to `Series.dt.tz_localize(tz)`."""
 *         # No need to change timezone
 *         if tz is None and tz is dt.dt.tz:             # <<<<<<<<<<<<<<
 *             return dt
 *         # Localize to timezone
 */
  }

  /* "cytimes/pddatetime.py":2458
 *             return dt
 *         # Localize to timezone
 *         self._validate_amb_nonex(ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         try:
 *             return dt.dt.tz_localize(tz, ambiguous, nonexistent)
 */
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__validate_amb_nonex(__pyx_v_self, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2458, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2459
 *         # Localize to timezone
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         try:             # <<<<<<<<<<<<<<
 *             return dt.dt.tz_localize(tz, ambiguous, nonexistent)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2460
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         try:
 *             return dt.dt.tz_localize(tz, ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             raise errors.InvalidTimezoneError(
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2460, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_tz_localize); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2460, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = NULL;
      __pyx_t_9 = 0;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_8, function);
          __pyx_t_9 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_tz, __pyx_v_ambiguous, __pyx_v_nonexistent};
        __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_9, 3+__pyx_t_9);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2460, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      }
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L10_try_return;

      /* "cytimes/pddatetime.py":2459
 *         # Localize to timezone
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         try:             # <<<<<<<<<<<<<<
 *             return dt.dt.tz_localize(tz, ambiguous, nonexistent)
 *         except Exception as err:
 */
    }
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cytimes/pddatetime.py":2461
 *         try:
 *             return dt.dt.tz_localize(tz, ambiguous, nonexistent)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)
 */
    __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_9) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt._c_tz_localize", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_8, &__pyx_t_3) < 0) __PYX_ERR(0, 2461, __pyx_L8_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_8);
      __pyx_v_err = __pyx_t_8;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2462
 *             return dt.dt.tz_localize(tz, ambiguous, nonexistent)
 *         except Exception as err:
 *             raise errors.InvalidTimezoneError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)
 *             ) from err
 */
        __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_errors); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2462, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_InvalidTimezoneError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2462, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

        /* "cytimes/pddatetime.py":2463
 *         except Exception as err:
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)             # <<<<<<<<<<<<<<
 *             ) from err
 * 
 */
        __pyx_t_11 = PyTuple_New(4); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2463, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_13 = 0;
        __pyx_t_14 = 127;
        __Pyx_INCREF(__pyx_kp_u__17);
        __pyx_t_13 += 2;
        __Pyx_GIVEREF(__pyx_kp_u__17);
        PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u__17);
        __pyx_t_15 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2463, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_n_s_name_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2463, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_16);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_16), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2463, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
        __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_15);
        __pyx_t_15 = 0;
        __Pyx_INCREF(__pyx_kp_u_Invalid_tz_timezone);
        __pyx_t_13 += 26;
        __Pyx_GIVEREF(__pyx_kp_u_Invalid_tz_timezone);
        PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_kp_u_Invalid_tz_timezone);
        __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_tz), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2463, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
        __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_11, 3, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_15 = __Pyx_PyUnicode_Join(__pyx_t_11, 4, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2463, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_t_11 = NULL;
        __pyx_t_9 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_12))) {
          __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_12);
          if (likely(__pyx_t_11)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
            __Pyx_INCREF(__pyx_t_11);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_12, function);
            __pyx_t_9 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2462, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        }

        /* "cytimes/pddatetime.py":2464
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)
 *             ) from err             # <<<<<<<<<<<<<<
 * 
 *     @cython.cfunc
 */
        __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_err);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __PYX_ERR(0, 2462, __pyx_L17_error)
      }

      /* "cytimes/pddatetime.py":2461
 *         try:
 *             return dt.dt.tz_localize(tz, ambiguous, nonexistent)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)
 */
      /*finally:*/ {
        __pyx_L17_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_19);
          __Pyx_XGOTREF(__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_24);
          __pyx_t_9 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_22);
            __Pyx_XGIVEREF(__pyx_t_23);
            __Pyx_XGIVEREF(__pyx_t_24);
            __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24);
          }
          __Pyx_XGIVEREF(__pyx_t_19);
          __Pyx_XGIVEREF(__pyx_t_20);
          __Pyx_XGIVEREF(__pyx_t_21);
          __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21);
          __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
          __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18;
          goto __pyx_L8_except_error;
        }
      }
    }
    goto __pyx_L8_except_error;

    /* "cytimes/pddatetime.py":2459
 *         # Localize to timezone
 *         self._validate_amb_nonex(ambiguous, nonexistent)
 *         try:             # <<<<<<<<<<<<<<
 *             return dt.dt.tz_localize(tz, ambiguous, nonexistent)
 *         except Exception as err:
 */
    __pyx_L8_except_error:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
    goto __pyx_L1_error;
    __pyx_L10_try_return:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.py":2443
 * 
 *     # C-API: Timezone -------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_tz_localize(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._c_tz_localize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2466
 *             ) from err
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_tz_convert(
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_tz_convert(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_dt, PyObject *__pyx_v_tz, PyObject *__pyx_v_ambiguous, PyObject *__pyx_v_nonexistent) {
  PyObject *__pyx_v_curr_tz = NULL;
  PyObject *__pyx_v_targ_tz = NULL;
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  struct __pyx_opt_args_7cytimes_10cydatetime_gen_tzinfo_local __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_UCS4 __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_t_17;
  char const *__pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  PyObject *__pyx_t_23 = NULL;
  PyObject *__pyx_t_24 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_c_tz_convert", 0);
  __Pyx_INCREF(__pyx_v_dt);

  /* "cytimes/pddatetime.py":2477
 *         """(cfunc) Convert 'dt' Series to a specific 'tz' timezone `<'Series[Timestamp]'>`."""
 *         # Resolve target timezone
 *         curr_tz = dt.dt.tz             # <<<<<<<<<<<<<<
 *         if tz is None:
 *             targ_tz = cydt.gen_tzinfo_local(None)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_tz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_curr_tz = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cytimes/pddatetime.py":2478
 *         # Resolve target timezone
 *         curr_tz = dt.dt.tz
 *         if tz is None:             # <<<<<<<<<<<<<<
 *             targ_tz = cydt.gen_tzinfo_local(None)
 *             if curr_tz is None:
 */
  __pyx_t_3 = (__pyx_v_tz == Py_None);
  if (__pyx_t_3) {

    /* "cytimes/pddatetime.py":2479
 *         curr_tz = dt.dt.tz
 *         if tz is None:
 *             targ_tz = cydt.gen_tzinfo_local(None)             # <<<<<<<<<<<<<<
 *             if curr_tz is None:
 *                 return self._c_tz_localize(dt, targ_tz, ambiguous, nonexistent)
 */
    __pyx_t_4.__pyx_n = 1;
    __pyx_t_4.dt = ((PyDateTime_DateTime *)Py_None);
    __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_gen_tzinfo_local(&__pyx_t_4)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2479, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_targ_tz = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cytimes/pddatetime.py":2480
 *         if tz is None:
 *             targ_tz = cydt.gen_tzinfo_local(None)
 *             if curr_tz is None:             # <<<<<<<<<<<<<<
 *                 return self._c_tz_localize(dt, targ_tz, ambiguous, nonexistent)
 *         else:
 */
    __pyx_t_3 = (__pyx_v_curr_tz == Py_None);
    if (__pyx_t_3) {

      /* "cytimes/pddatetime.py":2481
 *             targ_tz = cydt.gen_tzinfo_local(None)
 *             if curr_tz is None:
 *                 return self._c_tz_localize(dt, targ_tz, ambiguous, nonexistent)             # <<<<<<<<<<<<<<
 *         else:
 *             targ_tz = tz
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = __pyx_f_7cytimes_10pddatetime_4pddt__c_tz_localize(__pyx_v_self, __pyx_v_dt, __pyx_v_targ_tz, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2481, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L0;

      /* "cytimes/pddatetime.py":2480
 *         if tz is None:
 *             targ_tz = cydt.gen_tzinfo_local(None)
 *             if curr_tz is None:             # <<<<<<<<<<<<<<
 *                 return self._c_tz_localize(dt, targ_tz, ambiguous, nonexistent)
 *         else:
 */
    }

    /* "cytimes/pddatetime.py":2478
 *         # Resolve target timezone
 *         curr_tz = dt.dt.tz
 *         if tz is None:             # <<<<<<<<<<<<<<
 *             targ_tz = cydt.gen_tzinfo_local(None)
 *             if curr_tz is None:
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":2483
 *                 return self._c_tz_localize(dt, targ_tz, ambiguous, nonexistent)
 *         else:
 *             targ_tz = tz             # <<<<<<<<<<<<<<
 *         # Resolve current timezone
 *         if curr_tz is None:
 */
  /*else*/ {
    __Pyx_INCREF(__pyx_v_tz);
    __pyx_v_targ_tz = __pyx_v_tz;
  }
  __pyx_L3:;

  /* "cytimes/pddatetime.py":2485
 *             targ_tz = tz
 *         # Resolve current timezone
 *         if curr_tz is None:             # <<<<<<<<<<<<<<
 *             dt = self._c_tz_localize(
 *                 dt, cydt.gen_tzinfo_local(None), ambiguous, nonexistent
 */
  __pyx_t_3 = (__pyx_v_curr_tz == Py_None);
  if (__pyx_t_3) {

    /* "cytimes/pddatetime.py":2487
 *         if curr_tz is None:
 *             dt = self._c_tz_localize(
 *                 dt, cydt.gen_tzinfo_local(None), ambiguous, nonexistent             # <<<<<<<<<<<<<<
 *             )
 *         # Convert timezone
 */
    __pyx_t_4.__pyx_n = 1;
    __pyx_t_4.dt = ((PyDateTime_DateTime *)Py_None);
    __pyx_t_2 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_gen_tzinfo_local(&__pyx_t_4)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2487, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cytimes/pddatetime.py":2486
 *         # Resolve current timezone
 *         if curr_tz is None:
 *             dt = self._c_tz_localize(             # <<<<<<<<<<<<<<
 *                 dt, cydt.gen_tzinfo_local(None), ambiguous, nonexistent
 *             )
 */
    __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__c_tz_localize(__pyx_v_self, __pyx_v_dt, __pyx_t_2, __pyx_v_ambiguous, __pyx_v_nonexistent); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2486, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2485
 *             targ_tz = tz
 *         # Resolve current timezone
 *         if curr_tz is None:             # <<<<<<<<<<<<<<
 *             dt = self._c_tz_localize(
 *                 dt, cydt.gen_tzinfo_local(None), ambiguous, nonexistent
 */
  }

  /* "cytimes/pddatetime.py":2490
 *             )
 *         # Convert timezone
 *         try:             # <<<<<<<<<<<<<<
 *             return dt.dt.tz_convert(targ_tz)
 *         except Exception as err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    /*try:*/ {

      /* "cytimes/pddatetime.py":2491
 *         # Convert timezone
 *         try:
 *             return dt.dt.tz_convert(targ_tz)             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             raise errors.InvalidTimezoneError(
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2491, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_tz_convert); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2491, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = NULL;
      __pyx_t_9 = 0;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_8);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_8, function);
          __pyx_t_9 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_targ_tz};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2491, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      }
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L10_try_return;

      /* "cytimes/pddatetime.py":2490
 *             )
 *         # Convert timezone
 *         try:             # <<<<<<<<<<<<<<
 *             return dt.dt.tz_convert(targ_tz)
 *         except Exception as err:
 */
    }
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cytimes/pddatetime.py":2492
 *         try:
 *             return dt.dt.tz_convert(targ_tz)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)
 */
    __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_9) {
      __Pyx_AddTraceback("cytimes.pddatetime.pddt._c_tz_convert", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 2492, __pyx_L8_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_8);
      __pyx_v_err = __pyx_t_8;
      /*try:*/ {

        /* "cytimes/pddatetime.py":2493
 *             return dt.dt.tz_convert(targ_tz)
 *         except Exception as err:
 *             raise errors.InvalidTimezoneError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)
 *             ) from err
 */
        __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_errors); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2493, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_InvalidTimezoneError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2493, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

        /* "cytimes/pddatetime.py":2494
 *         except Exception as err:
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)             # <<<<<<<<<<<<<<
 *             ) from err
 * 
 */
        __pyx_t_11 = PyTuple_New(4); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2494, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_13 = 0;
        __pyx_t_14 = 127;
        __Pyx_INCREF(__pyx_kp_u__17);
        __pyx_t_13 += 2;
        __Pyx_GIVEREF(__pyx_kp_u__17);
        PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u__17);
        __pyx_t_15 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2494, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_n_s_name_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2494, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_16);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_16), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2494, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
        __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_15);
        __pyx_t_15 = 0;
        __Pyx_INCREF(__pyx_kp_u_Invalid_tz_timezone);
        __pyx_t_13 += 26;
        __Pyx_GIVEREF(__pyx_kp_u_Invalid_tz_timezone);
        PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_kp_u_Invalid_tz_timezone);
        __pyx_t_15 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_tz), __pyx_empty_unicode); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2494, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_15) : __pyx_t_14;
        __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_11, 3, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_15 = __Pyx_PyUnicode_Join(__pyx_t_11, 4, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2494, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_t_11 = NULL;
        __pyx_t_9 = 0;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_12))) {
          __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_12);
          if (likely(__pyx_t_11)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
            __Pyx_INCREF(__pyx_t_11);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_12, function);
            __pyx_t_9 = 1;
          }
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9);
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2493, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        }

        /* "cytimes/pddatetime.py":2495
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)
 *             ) from err             # <<<<<<<<<<<<<<
 * 
 *     # C-API: Delta -----------------------------------------------------------------------------
 */
        __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_err);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __PYX_ERR(0, 2493, __pyx_L17_error)
      }

      /* "cytimes/pddatetime.py":2492
 *         try:
 *             return dt.dt.tz_convert(targ_tz)
 *         except Exception as err:             # <<<<<<<<<<<<<<
 *             raise errors.InvalidTimezoneError(
 *                 "<'%s'>\nInvalid 'tz' timezone: %r" % (self.__class__.__name__, tz)
 */
      /*finally:*/ {
        __pyx_L17_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_19);
          __Pyx_XGOTREF(__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_23);
          __Pyx_XGOTREF(__pyx_t_24);
          __pyx_t_9 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_22);
            __Pyx_XGIVEREF(__pyx_t_23);
            __Pyx_XGIVEREF(__pyx_t_24);
            __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24);
          }
          __Pyx_XGIVEREF(__pyx_t_19);
          __Pyx_XGIVEREF(__pyx_t_20);
          __Pyx_XGIVEREF(__pyx_t_21);
          __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21);
          __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
          __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18;
          goto __pyx_L8_except_error;
        }
      }
    }
    goto __pyx_L8_except_error;

    /* "cytimes/pddatetime.py":2490
 *             )
 *         # Convert timezone
 *         try:             # <<<<<<<<<<<<<<
 *             return dt.dt.tz_convert(targ_tz)
 *         except Exception as err:
 */
    __pyx_L8_except_error:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
    goto __pyx_L1_error;
    __pyx_L10_try_return:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
    goto __pyx_L0;
  }

  /* "cytimes/pddatetime.py":2466
 *             ) from err
 * 
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_tz_convert(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._c_tz_convert", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_curr_tz);
  __Pyx_XDECREF(__pyx_v_targ_tz);
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_dt);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cytimes/pddatetime.py":2498
 * 
 *     # C-API: Delta -----------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_cal_delta(
 */

static CYTHON_INLINE PyObject *__pyx_f_7cytimes_10pddatetime_4pddt__c_cal_delta(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_unit, PyObject *__pyx_v_inclusive) {
  PyObject *__pyx_v_o_dt = NULL;
  int __pyx_v_incl;
  PyObject *__pyx_v_delta = NULL;
  PyObject *__pyx_v_m_val = NULL;
  PyObject *__pyx_v_o_val = NULL;
  PyObject *__pyx_v_adj = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_UCS4 __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_c_cal_delta", 0);
  __Pyx_INCREF(__pyx_v_other);

  /* "cytimes/pddatetime.py":2515
 *         """
 *         # Parse 'other' to Series
 *         if isinstance(other, (datetime.date, str, pydt, typeref.DATETIME64)):             # <<<<<<<<<<<<<<
 *             other = self._parse_dtobj(other, self._default, False)
 *             o_dt: Series = self._parse_dtsobj(
 */
  __Pyx_INCREF(__pyx_v_7cytimes_7typeref_DATETIME64);
  __pyx_t_1 = __pyx_v_7cytimes_7typeref_DATETIME64;
  __pyx_t_3 = __Pyx_TypeCheck(__pyx_v_other, __pyx_ptype_7cpython_8datetime_date); 
  if (!__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = PyUnicode_Check(__pyx_v_other); 
  if (!__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __Pyx_TypeCheck(__pyx_v_other, __pyx_ptype_7cytimes_10pydatetime_pydt); 
  if (!__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = PyObject_IsInstance(__pyx_v_other, __pyx_t_1); 
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2516
 *         # Parse 'other' to Series
 *         if isinstance(other, (datetime.date, str, pydt, typeref.DATETIME64)):
 *             other = self._parse_dtobj(other, self._default, False)             # <<<<<<<<<<<<<<
 *             o_dt: Series = self._parse_dtsobj(
 *                 typeref.SERIES(other, index=self._dt.index), None, None, None, False
 */
    __pyx_t_1 = __pyx_v_self->_default;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_4 = ((PyObject *)__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtobj(__pyx_v_self, __pyx_v_other, __pyx_t_1, 0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_other, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":2518
 *             other = self._parse_dtobj(other, self._default, False)
 *             o_dt: Series = self._parse_dtsobj(
 *                 typeref.SERIES(other, index=self._dt.index), None, None, None, False             # <<<<<<<<<<<<<<
 *             )
 *         else:
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v_other);
    __Pyx_GIVEREF(__pyx_v_other);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_other)) __PYX_ERR(0, 2518, __pyx_L1_error);
    __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_index, __pyx_t_5) < 0) __PYX_ERR(0, 2518, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_7cytimes_7typeref_SERIES, __pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2517
 *         if isinstance(other, (datetime.date, str, pydt, typeref.DATETIME64)):
 *             other = self._parse_dtobj(other, self._default, False)
 *             o_dt: Series = self._parse_dtsobj(             # <<<<<<<<<<<<<<
 *                 typeref.SERIES(other, index=self._dt.index), None, None, None, False
 *             )
 */
    __pyx_t_1 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj(__pyx_v_self, __pyx_t_5, Py_None, Py_None, Py_None, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_o_dt = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2515
 *         """
 *         # Parse 'other' to Series
 *         if isinstance(other, (datetime.date, str, pydt, typeref.DATETIME64)):             # <<<<<<<<<<<<<<
 *             other = self._parse_dtobj(other, self._default, False)
 *             o_dt: Series = self._parse_dtsobj(
 */
    goto __pyx_L3;
  }

  /* "cytimes/pddatetime.py":2521
 *             )
 *         else:
 *             o_dt: Series = self._parse_dtsobj(other, self._default, None, None, False)             # <<<<<<<<<<<<<<
 *             if len(self) != len(o_dt):
 *                 raise errors.InvalidDatetimeObjectError(
 */
  /*else*/ {
    __pyx_t_1 = __pyx_v_self->_default;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_5 = __pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj(__pyx_v_self, __pyx_v_other, __pyx_t_1, Py_None, Py_None, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_o_dt = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":2522
 *         else:
 *             o_dt: Series = self._parse_dtsobj(other, self._default, None, None, False)
 *             if len(self) != len(o_dt):             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'>\nCannot calculate 'delta' for object with different shape: "
 */
    __pyx_t_6 = PyObject_Length(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2522, __pyx_L1_error)
    __pyx_t_7 = PyObject_Length(__pyx_v_o_dt); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2522, __pyx_L1_error)
    __pyx_t_2 = (__pyx_t_6 != __pyx_t_7);
    if (unlikely(__pyx_t_2)) {

      /* "cytimes/pddatetime.py":2523
 *             o_dt: Series = self._parse_dtsobj(other, self._default, None, None, False)
 *             if len(self) != len(o_dt):
 *                 raise errors.InvalidDatetimeObjectError(             # <<<<<<<<<<<<<<
 *                     "<'%s'>\nCannot calculate 'delta' for object with different shape: "
 *                     "%d vs %d." % (self.__class__.__name__, len(self._dt), len(o_dt))
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_errors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2523, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_InvalidDatetimeObjectError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2523, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cytimes/pddatetime.py":2524
 *             if len(self) != len(o_dt):
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'>\nCannot calculate 'delta' for object with different shape: "             # <<<<<<<<<<<<<<
 *                     "%d vs %d." % (self.__class__.__name__, len(self._dt), len(o_dt))
 *                 )
 */
      __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2524, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = 0;
      __pyx_t_8 = 127;
      __Pyx_INCREF(__pyx_kp_u__17);
      __pyx_t_7 += 2;
      __Pyx_GIVEREF(__pyx_kp_u__17);
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u__17);

      /* "cytimes/pddatetime.py":2525
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'>\nCannot calculate 'delta' for object with different shape: "
 *                     "%d vs %d." % (self.__class__.__name__, len(self._dt), len(o_dt))             # <<<<<<<<<<<<<<
 *                 )
 * 
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2525, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_name_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2525, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_10), __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2525, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_8;
      __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9);
      __Pyx_GIVEREF(__pyx_t_9);
      PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_9);
      __pyx_t_9 = 0;
      __Pyx_INCREF(__pyx_kp_u_Cannot_calculate_delta_for_obje);
      __pyx_t_7 += 61;
      __Pyx_GIVEREF(__pyx_kp_u_Cannot_calculate_delta_for_obje);
      PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_Cannot_calculate_delta_for_obje);
      __pyx_t_9 = __pyx_v_self->_dt;
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_6 = PyObject_Length(__pyx_t_9); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2525, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_6, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2525, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9);
      __Pyx_GIVEREF(__pyx_t_9);
      PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_9);
      __pyx_t_9 = 0;
      __Pyx_INCREF(__pyx_kp_u_vs);
      __pyx_t_7 += 4;
      __Pyx_GIVEREF(__pyx_kp_u_vs);
      PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u_vs);
      __pyx_t_6 = PyObject_Length(__pyx_v_o_dt); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2525, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_6, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2525, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9);
      __Pyx_GIVEREF(__pyx_t_9);
      PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_9);
      __pyx_t_9 = 0;
      __Pyx_INCREF(__pyx_kp_u__8);
      __pyx_t_7 += 1;
      __Pyx_GIVEREF(__pyx_kp_u__8);
      PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__8);

      /* "cytimes/pddatetime.py":2524
 *             if len(self) != len(o_dt):
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'>\nCannot calculate 'delta' for object with different shape: "             # <<<<<<<<<<<<<<
 *                     "%d vs %d." % (self.__class__.__name__, len(self._dt), len(o_dt))
 *                 )
 */
      __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2524, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = NULL;
      __pyx_t_11 = 0;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_1)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_1);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
          __pyx_t_11 = 1;
        }
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_9};
        __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2523, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
      __Pyx_Raise(__pyx_t_5, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __PYX_ERR(0, 2523, __pyx_L1_error)

      /* "cytimes/pddatetime.py":2522
 *         else:
 *             o_dt: Series = self._parse_dtsobj(other, self._default, None, None, False)
 *             if len(self) != len(o_dt):             # <<<<<<<<<<<<<<
 *                 raise errors.InvalidDatetimeObjectError(
 *                     "<'%s'>\nCannot calculate 'delta' for object with different shape: "
 */
    }
  }
  __pyx_L3:;

  /* "cytimes/pddatetime.py":2530
 *         # Inclusive bounds
 *         incl: cython.int
 *         if inclusive == "both":             # <<<<<<<<<<<<<<
 *             incl = 1
 *         elif inclusive == "one":
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_inclusive, __pyx_n_u_both, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2530, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2531
 *         incl: cython.int
 *         if inclusive == "both":
 *             incl = 1             # <<<<<<<<<<<<<<
 *         elif inclusive == "one":
 *             incl = 0
 */
    __pyx_v_incl = 1;

    /* "cytimes/pddatetime.py":2530
 *         # Inclusive bounds
 *         incl: cython.int
 *         if inclusive == "both":             # <<<<<<<<<<<<<<
 *             incl = 1
 *         elif inclusive == "one":
 */
    goto __pyx_L9;
  }

  /* "cytimes/pddatetime.py":2532
 *         if inclusive == "both":
 *             incl = 1
 *         elif inclusive == "one":             # <<<<<<<<<<<<<<
 *             incl = 0
 *         elif inclusive == "neither":
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_inclusive, __pyx_n_u_one, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2532, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2533
 *             incl = 1
 *         elif inclusive == "one":
 *             incl = 0             # <<<<<<<<<<<<<<
 *         elif inclusive == "neither":
 *             incl = -1
 */
    __pyx_v_incl = 0;

    /* "cytimes/pddatetime.py":2532
 *         if inclusive == "both":
 *             incl = 1
 *         elif inclusive == "one":             # <<<<<<<<<<<<<<
 *             incl = 0
 *         elif inclusive == "neither":
 */
    goto __pyx_L9;
  }

  /* "cytimes/pddatetime.py":2534
 *         elif inclusive == "one":
 *             incl = 0
 *         elif inclusive == "neither":             # <<<<<<<<<<<<<<
 *             incl = -1
 *         else:
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_inclusive, __pyx_n_u_neither, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2534, __pyx_L1_error)
  if (likely(__pyx_t_2)) {

    /* "cytimes/pddatetime.py":2535
 *             incl = 0
 *         elif inclusive == "neither":
 *             incl = -1             # <<<<<<<<<<<<<<
 *         else:
 *             raise errors.InvalidDeltaInclusiveError(
 */
    __pyx_v_incl = -1;

    /* "cytimes/pddatetime.py":2534
 *         elif inclusive == "one":
 *             incl = 0
 *         elif inclusive == "neither":             # <<<<<<<<<<<<<<
 *             incl = -1
 *         else:
 */
    goto __pyx_L9;
  }

  /* "cytimes/pddatetime.py":2537
 *             incl = -1
 *         else:
 *             raise errors.InvalidDeltaInclusiveError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\nInvalid 'inclusive' input: %r. "
 *                 "Must be one of the following <'str'>: ['one', 'both', 'neither']."
 */
  /*else*/ {
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_errors); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_InvalidDeltaInclusiveError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":2538
 *         else:
 *             raise errors.InvalidDeltaInclusiveError(
 *                 "<'%s'>\nInvalid 'inclusive' input: %r. "             # <<<<<<<<<<<<<<
 *                 "Must be one of the following <'str'>: ['one', 'both', 'neither']."
 *                 % (self.__class__.__name__, inclusive)
 */
    __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = 0;
    __pyx_t_8 = 127;
    __Pyx_INCREF(__pyx_kp_u__17);
    __pyx_t_7 += 2;
    __Pyx_GIVEREF(__pyx_kp_u__17);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u__17);

    /* "cytimes/pddatetime.py":2540
 *                 "<'%s'>\nInvalid 'inclusive' input: %r. "
 *                 "Must be one of the following <'str'>: ['one', 'both', 'neither']."
 *                 % (self.__class__.__name__, inclusive)             # <<<<<<<<<<<<<<
 *             )
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_name_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_10), __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_8;
    __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_INCREF(__pyx_kp_u_Invalid_inclusive_input);
    __pyx_t_7 += 30;
    __Pyx_GIVEREF(__pyx_kp_u_Invalid_inclusive_input);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_Invalid_inclusive_input);
    __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_inclusive), __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_8;
    __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_INCREF(__pyx_kp_u_Must_be_one_of_the_following_st_2);
    __pyx_t_7 += 67;
    __Pyx_GIVEREF(__pyx_kp_u_Must_be_one_of_the_following_st_2);
    PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u_Must_be_one_of_the_following_st_2);

    /* "cytimes/pddatetime.py":2538
 *         else:
 *             raise errors.InvalidDeltaInclusiveError(
 *                 "<'%s'>\nInvalid 'inclusive' input: %r. "             # <<<<<<<<<<<<<<
 *                 "Must be one of the following <'str'>: ['one', 'both', 'neither']."
 *                 % (self.__class__.__name__, inclusive)
 */
    __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = NULL;
    __pyx_t_11 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
        __pyx_t_11 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_1};
      __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2537, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_Raise(__pyx_t_5, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_ERR(0, 2537, __pyx_L1_error)
  }
  __pyx_L9:;

  /* "cytimes/pddatetime.py":2544
 * 
 *         # Unit: year
 *         if unit == "Y":             # <<<<<<<<<<<<<<
 *             delta = FN_NP_ABS(self._dt.dt.year.values - o_dt.dt.year.values)
 *             return self._arr_to_series(delta + incl if incl else delta)
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_Y, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2544, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2545
 *         # Unit: year
 *         if unit == "Y":
 *             delta = FN_NP_ABS(self._dt.dt.year.values - o_dt.dt.year.values)             # <<<<<<<<<<<<<<
 *             return self._arr_to_series(delta + incl if incl else delta)
 *         # Unit: month
 */
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_year); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_year); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Subtract(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_ABS);
    __pyx_t_1 = __pyx_v_7cytimes_10pddatetime_FN_NP_ABS; __pyx_t_9 = NULL;
    __pyx_t_11 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
        __pyx_t_11 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_4};
      __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2545, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __pyx_v_delta = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":2546
 *         if unit == "Y":
 *             delta = FN_NP_ABS(self._dt.dt.year.values - o_dt.dt.year.values)
 *             return self._arr_to_series(delta + incl if incl else delta)             # <<<<<<<<<<<<<<
 *         # Unit: month
 *         if unit == "M":
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_incl != 0);
    if (__pyx_t_2) {
      __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_incl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2546, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = PyNumber_Add(__pyx_v_delta, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2546, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_5 = __pyx_t_4;
      __pyx_t_4 = 0;
    } else {
      __Pyx_INCREF(__pyx_v_delta);
      __pyx_t_5 = __pyx_v_delta;
    }
    __pyx_t_4 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2546, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2544
 * 
 *         # Unit: year
 *         if unit == "Y":             # <<<<<<<<<<<<<<
 *             delta = FN_NP_ABS(self._dt.dt.year.values - o_dt.dt.year.values)
 *             return self._arr_to_series(delta + incl if incl else delta)
 */
  }

  /* "cytimes/pddatetime.py":2548
 *             return self._arr_to_series(delta + incl if incl else delta)
 *         # Unit: month
 *         if unit == "M":             # <<<<<<<<<<<<<<
 *             delta = FN_NP_ABS(
 *                 (self._dt.dt.year.values - o_dt.dt.year.values) * 12
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_M, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2548, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2550
 *         if unit == "M":
 *             delta = FN_NP_ABS(
 *                 (self._dt.dt.year.values - o_dt.dt.year.values) * 12             # <<<<<<<<<<<<<<
 *                 + (self._dt.dt.month.values - o_dt.dt.month.values)
 *             )
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_year); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_year); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = PyNumber_Subtract(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyInt_MultiplyObjC(__pyx_t_9, __pyx_int_12, 12, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cytimes/pddatetime.py":2551
 *             delta = FN_NP_ABS(
 *                 (self._dt.dt.year.values - o_dt.dt.year.values) * 12
 *                 + (self._dt.dt.month.values - o_dt.dt.month.values)             # <<<<<<<<<<<<<<
 *             )
 *             return self._arr_to_series(delta + incl if incl else delta)
 */
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_month); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_dt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_month); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = PyNumber_Subtract(__pyx_t_9, __pyx_t_5); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_ABS);
    __pyx_t_10 = __pyx_v_7cytimes_10pddatetime_FN_NP_ABS; __pyx_t_1 = NULL;
    __pyx_t_11 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
        __pyx_t_11 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_5};
      __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_10, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2549, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __pyx_v_delta = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cytimes/pddatetime.py":2553
 *                 + (self._dt.dt.month.values - o_dt.dt.month.values)
 *             )
 *             return self._arr_to_series(delta + incl if incl else delta)             # <<<<<<<<<<<<<<
 *         # Unit: week
 *         if unit == "W":
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_incl != 0);
    if (__pyx_t_2) {
      __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_incl); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2553, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_5 = PyNumber_Add(__pyx_v_delta, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2553, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_4 = __pyx_t_5;
      __pyx_t_5 = 0;
    } else {
      __Pyx_INCREF(__pyx_v_delta);
      __pyx_t_4 = __pyx_v_delta;
    }
    __pyx_t_5 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2553, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2548
 *             return self._arr_to_series(delta + incl if incl else delta)
 *         # Unit: month
 *         if unit == "M":             # <<<<<<<<<<<<<<
 *             delta = FN_NP_ABS(
 *                 (self._dt.dt.year.values - o_dt.dt.year.values) * 12
 */
  }

  /* "cytimes/pddatetime.py":2555
 *             return self._arr_to_series(delta + incl if incl else delta)
 *         # Unit: week
 *         if unit == "W":             # <<<<<<<<<<<<<<
 *             m_val = self._dt.values
 *             o_val = o_dt.values
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_W, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2555, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2556
 *         # Unit: week
 *         if unit == "W":
 *             m_val = self._dt.values             # <<<<<<<<<<<<<<
 *             o_val = o_dt.values
 *             delta = FN_NP_ABS(
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_v_m_val = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":2557
 *         if unit == "W":
 *             m_val = self._dt.values
 *             o_val = o_dt.values             # <<<<<<<<<<<<<<
 *             delta = FN_NP_ABS(
 *                 cydt.dt64array_to_days(m_val) - cydt.dt64array_to_days(o_val)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2557, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_v_o_val = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":2559
 *             o_val = o_dt.values
 *             delta = FN_NP_ABS(
 *                 cydt.dt64array_to_days(m_val) - cydt.dt64array_to_days(o_val)             # <<<<<<<<<<<<<<
 *             )
 *             adj = typeref.DATETIMEINDEX(FN_NP_MIN(m_val, o_val)).weekday.values
 */
    if (!(likely(((__pyx_v_m_val) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_m_val, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2559, __pyx_L1_error)
    __pyx_t_4 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_days(((PyArrayObject *)__pyx_v_m_val))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (!(likely(((__pyx_v_o_val) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_o_val, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2559, __pyx_L1_error)
    __pyx_t_10 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_days(((PyArrayObject *)__pyx_v_o_val))); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_1 = PyNumber_Subtract(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_ABS);
    __pyx_t_10 = __pyx_v_7cytimes_10pddatetime_FN_NP_ABS; __pyx_t_4 = NULL;
    __pyx_t_11 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
        __pyx_t_11 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_1};
      __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_10, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2558, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __pyx_v_delta = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":2561
 *                 cydt.dt64array_to_days(m_val) - cydt.dt64array_to_days(o_val)
 *             )
 *             adj = typeref.DATETIMEINDEX(FN_NP_MIN(m_val, o_val)).weekday.values             # <<<<<<<<<<<<<<
 *             delta = (delta + adj) // 7
 *             return self._arr_to_series(delta + incl if incl else delta)
 */
    __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
    __pyx_t_1 = __pyx_v_7cytimes_10pddatetime_FN_NP_MIN; __pyx_t_4 = NULL;
    __pyx_t_11 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
        __pyx_t_11 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_m_val, __pyx_v_o_val};
      __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_11, 2+__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2561, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_INCREF(__pyx_v_7cytimes_7typeref_DATETIMEINDEX);
    __pyx_t_1 = __pyx_v_7cytimes_7typeref_DATETIMEINDEX; __pyx_t_4 = NULL;
    __pyx_t_11 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
        __pyx_t_11 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_10};
      __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2561, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_weekday); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2561, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2561, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_adj = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cytimes/pddatetime.py":2562
 *             )
 *             adj = typeref.DATETIMEINDEX(FN_NP_MIN(m_val, o_val)).weekday.values
 *             delta = (delta + adj) // 7             # <<<<<<<<<<<<<<
 *             return self._arr_to_series(delta + incl if incl else delta)
 *         # Unit: day
 */
    __pyx_t_5 = PyNumber_Add(__pyx_v_delta, __pyx_v_adj); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyInt_FloorDivideObjC(__pyx_t_5, __pyx_int_7, 7, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_delta, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2563
 *             adj = typeref.DATETIMEINDEX(FN_NP_MIN(m_val, o_val)).weekday.values
 *             delta = (delta + adj) // 7
 *             return self._arr_to_series(delta + incl if incl else delta)             # <<<<<<<<<<<<<<
 *         # Unit: day
 *         if unit == "D":
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_incl != 0);
    if (__pyx_t_2) {
      __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_incl); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_10 = PyNumber_Add(__pyx_v_delta, __pyx_t_5); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_1 = __pyx_t_10;
      __pyx_t_10 = 0;
    } else {
      __Pyx_INCREF(__pyx_v_delta);
      __pyx_t_1 = __pyx_v_delta;
    }
    __pyx_t_10 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2563, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_10;
    __pyx_t_10 = 0;
    goto __pyx_L0;

    /* "cytimes/pddatetime.py":2555
 *             return self._arr_to_series(delta + incl if incl else delta)
 *         # Unit: week
 *         if unit == "W":             # <<<<<<<<<<<<<<
 *             m_val = self._dt.values
 *             o_val = o_dt.values
 */
  }

  /* "cytimes/pddatetime.py":2565
 *             return self._arr_to_series(delta + incl if incl else delta)
 *         # Unit: day
 *         if unit == "D":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_days(self._dt.values)
 *             o_val = cydt.dt64array_to_days(o_dt.values)
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_D, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2565, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2566
 *         # Unit: day
 *         if unit == "D":
 *             m_val = cydt.dt64array_to_days(self._dt.values)             # <<<<<<<<<<<<<<
 *             o_val = cydt.dt64array_to_days(o_dt.values)
 *         # Unit: hour
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (!(likely(((__pyx_t_10) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_10, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2566, __pyx_L1_error)
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_days(((PyArrayObject *)__pyx_t_10))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_v_m_val = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2567
 *         if unit == "D":
 *             m_val = cydt.dt64array_to_days(self._dt.values)
 *             o_val = cydt.dt64array_to_days(o_dt.values)             # <<<<<<<<<<<<<<
 *         # Unit: hour
 *         elif unit == "h":
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2567, __pyx_L1_error)
    __pyx_t_10 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_days(((PyArrayObject *)__pyx_t_1))); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_o_val = __pyx_t_10;
    __pyx_t_10 = 0;

    /* "cytimes/pddatetime.py":2565
 *             return self._arr_to_series(delta + incl if incl else delta)
 *         # Unit: day
 *         if unit == "D":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_days(self._dt.values)
 *             o_val = cydt.dt64array_to_days(o_dt.values)
 */
    goto __pyx_L13;
  }

  /* "cytimes/pddatetime.py":2569
 *             o_val = cydt.dt64array_to_days(o_dt.values)
 *         # Unit: hour
 *         elif unit == "h":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_hours(self._dt.values)
 *             o_val = cydt.dt64array_to_hours(o_dt.values)
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_h, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2569, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2570
 *         # Unit: hour
 *         elif unit == "h":
 *             m_val = cydt.dt64array_to_hours(self._dt.values)             # <<<<<<<<<<<<<<
 *             o_val = cydt.dt64array_to_hours(o_dt.values)
 *         # Unit: minute
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (!(likely(((__pyx_t_10) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_10, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2570, __pyx_L1_error)
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_hours(((PyArrayObject *)__pyx_t_10))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_v_m_val = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2571
 *         elif unit == "h":
 *             m_val = cydt.dt64array_to_hours(self._dt.values)
 *             o_val = cydt.dt64array_to_hours(o_dt.values)             # <<<<<<<<<<<<<<
 *         # Unit: minute
 *         elif unit == "m":
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2571, __pyx_L1_error)
    __pyx_t_10 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_hours(((PyArrayObject *)__pyx_t_1))); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_o_val = __pyx_t_10;
    __pyx_t_10 = 0;

    /* "cytimes/pddatetime.py":2569
 *             o_val = cydt.dt64array_to_days(o_dt.values)
 *         # Unit: hour
 *         elif unit == "h":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_hours(self._dt.values)
 *             o_val = cydt.dt64array_to_hours(o_dt.values)
 */
    goto __pyx_L13;
  }

  /* "cytimes/pddatetime.py":2573
 *             o_val = cydt.dt64array_to_hours(o_dt.values)
 *         # Unit: minute
 *         elif unit == "m":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_minutes(self._dt.values)
 *             o_val = cydt.dt64array_to_minutes(o_dt.values)
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2573, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2574
 *         # Unit: minute
 *         elif unit == "m":
 *             m_val = cydt.dt64array_to_minutes(self._dt.values)             # <<<<<<<<<<<<<<
 *             o_val = cydt.dt64array_to_minutes(o_dt.values)
 *         # Unit: second
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (!(likely(((__pyx_t_10) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_10, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2574, __pyx_L1_error)
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_minutes(((PyArrayObject *)__pyx_t_10))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_v_m_val = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2575
 *         elif unit == "m":
 *             m_val = cydt.dt64array_to_minutes(self._dt.values)
 *             o_val = cydt.dt64array_to_minutes(o_dt.values)             # <<<<<<<<<<<<<<
 *         # Unit: second
 *         elif unit == "s":
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2575, __pyx_L1_error)
    __pyx_t_10 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_minutes(((PyArrayObject *)__pyx_t_1))); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_o_val = __pyx_t_10;
    __pyx_t_10 = 0;

    /* "cytimes/pddatetime.py":2573
 *             o_val = cydt.dt64array_to_hours(o_dt.values)
 *         # Unit: minute
 *         elif unit == "m":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_minutes(self._dt.values)
 *             o_val = cydt.dt64array_to_minutes(o_dt.values)
 */
    goto __pyx_L13;
  }

  /* "cytimes/pddatetime.py":2577
 *             o_val = cydt.dt64array_to_minutes(o_dt.values)
 *         # Unit: second
 *         elif unit == "s":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_seconds(self._dt.values)
 *             o_val = cydt.dt64array_to_seconds(o_dt.values)
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_s, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2577, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2578
 *         # Unit: second
 *         elif unit == "s":
 *             m_val = cydt.dt64array_to_seconds(self._dt.values)             # <<<<<<<<<<<<<<
 *             o_val = cydt.dt64array_to_seconds(o_dt.values)
 *         # Unit: millisecond
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (!(likely(((__pyx_t_10) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_10, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2578, __pyx_L1_error)
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_seconds(((PyArrayObject *)__pyx_t_10))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_v_m_val = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2579
 *         elif unit == "s":
 *             m_val = cydt.dt64array_to_seconds(self._dt.values)
 *             o_val = cydt.dt64array_to_seconds(o_dt.values)             # <<<<<<<<<<<<<<
 *         # Unit: millisecond
 *         elif unit == "ms":
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2579, __pyx_L1_error)
    __pyx_t_10 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_seconds(((PyArrayObject *)__pyx_t_1))); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_o_val = __pyx_t_10;
    __pyx_t_10 = 0;

    /* "cytimes/pddatetime.py":2577
 *             o_val = cydt.dt64array_to_minutes(o_dt.values)
 *         # Unit: second
 *         elif unit == "s":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_seconds(self._dt.values)
 *             o_val = cydt.dt64array_to_seconds(o_dt.values)
 */
    goto __pyx_L13;
  }

  /* "cytimes/pddatetime.py":2581
 *             o_val = cydt.dt64array_to_seconds(o_dt.values)
 *         # Unit: millisecond
 *         elif unit == "ms":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_milliseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_milliseconds(o_dt.values)
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_ms, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2581, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2582
 *         # Unit: millisecond
 *         elif unit == "ms":
 *             m_val = cydt.dt64array_to_milliseconds(self._dt.values)             # <<<<<<<<<<<<<<
 *             o_val = cydt.dt64array_to_milliseconds(o_dt.values)
 *         # Unit: microsecond
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2582, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (!(likely(((__pyx_t_10) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_10, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2582, __pyx_L1_error)
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_milliseconds(((PyArrayObject *)__pyx_t_10))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2582, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_v_m_val = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2583
 *         elif unit == "ms":
 *             m_val = cydt.dt64array_to_milliseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_milliseconds(o_dt.values)             # <<<<<<<<<<<<<<
 *         # Unit: microsecond
 *         elif unit == "us":
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2583, __pyx_L1_error)
    __pyx_t_10 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_milliseconds(((PyArrayObject *)__pyx_t_1))); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_o_val = __pyx_t_10;
    __pyx_t_10 = 0;

    /* "cytimes/pddatetime.py":2581
 *             o_val = cydt.dt64array_to_seconds(o_dt.values)
 *         # Unit: millisecond
 *         elif unit == "ms":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_milliseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_milliseconds(o_dt.values)
 */
    goto __pyx_L13;
  }

  /* "cytimes/pddatetime.py":2585
 *             o_val = cydt.dt64array_to_milliseconds(o_dt.values)
 *         # Unit: microsecond
 *         elif unit == "us":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_microseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_microseconds(o_dt.values)
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_us, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2585, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cytimes/pddatetime.py":2586
 *         # Unit: microsecond
 *         elif unit == "us":
 *             m_val = cydt.dt64array_to_microseconds(self._dt.values)             # <<<<<<<<<<<<<<
 *             o_val = cydt.dt64array_to_microseconds(o_dt.values)
 *         # Unit: nanosecond
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (!(likely(((__pyx_t_10) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_10, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2586, __pyx_L1_error)
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_microseconds(((PyArrayObject *)__pyx_t_10))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_v_m_val = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2587
 *         elif unit == "us":
 *             m_val = cydt.dt64array_to_microseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_microseconds(o_dt.values)             # <<<<<<<<<<<<<<
 *         # Unit: nanosecond
 *         elif unit == "ns":
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2587, __pyx_L1_error)
    __pyx_t_10 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_microseconds(((PyArrayObject *)__pyx_t_1))); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_o_val = __pyx_t_10;
    __pyx_t_10 = 0;

    /* "cytimes/pddatetime.py":2585
 *             o_val = cydt.dt64array_to_milliseconds(o_dt.values)
 *         # Unit: microsecond
 *         elif unit == "us":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_microseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_microseconds(o_dt.values)
 */
    goto __pyx_L13;
  }

  /* "cytimes/pddatetime.py":2589
 *             o_val = cydt.dt64array_to_microseconds(o_dt.values)
 *         # Unit: nanosecond
 *         elif unit == "ns":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_nanoseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_nanoseconds(o_dt.values)
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_unit, __pyx_n_u_ns, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 2589, __pyx_L1_error)
  if (likely(__pyx_t_2)) {

    /* "cytimes/pddatetime.py":2590
 *         # Unit: nanosecond
 *         elif unit == "ns":
 *             m_val = cydt.dt64array_to_nanoseconds(self._dt.values)             # <<<<<<<<<<<<<<
 *             o_val = cydt.dt64array_to_nanoseconds(o_dt.values)
 *         # Invalid unit
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (!(likely(((__pyx_t_10) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_10, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2590, __pyx_L1_error)
    __pyx_t_1 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_nanoseconds(((PyArrayObject *)__pyx_t_10))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_v_m_val = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2591
 *         elif unit == "ns":
 *             m_val = cydt.dt64array_to_nanoseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_nanoseconds(o_dt.values)             # <<<<<<<<<<<<<<
 *         # Invalid unit
 *         else:
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_o_dt, __pyx_n_s_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2591, __pyx_L1_error)
    __pyx_t_10 = ((PyObject *)__pyx_f_7cytimes_10cydatetime_dt64array_to_nanoseconds(((PyArrayObject *)__pyx_t_1))); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_o_val = __pyx_t_10;
    __pyx_t_10 = 0;

    /* "cytimes/pddatetime.py":2589
 *             o_val = cydt.dt64array_to_microseconds(o_dt.values)
 *         # Unit: nanosecond
 *         elif unit == "ns":             # <<<<<<<<<<<<<<
 *             m_val = cydt.dt64array_to_nanoseconds(self._dt.values)
 *             o_val = cydt.dt64array_to_nanoseconds(o_dt.values)
 */
    goto __pyx_L13;
  }

  /* "cytimes/pddatetime.py":2594
 *         # Invalid unit
 *         else:
 *             raise errors.InvalidDeltaUnitError(             # <<<<<<<<<<<<<<
 *                 "<'%s'>\nInvalid delta 'unit' input: %r. "
 *                 "Must be one of the following <'str'>: "
 */
  /*else*/ {
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_errors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_InvalidDeltaUnitError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cytimes/pddatetime.py":2595
 *         else:
 *             raise errors.InvalidDeltaUnitError(
 *                 "<'%s'>\nInvalid delta 'unit' input: %r. "             # <<<<<<<<<<<<<<
 *                 "Must be one of the following <'str'>: "
 *                 "['Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns']."
 */
    __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = 0;
    __pyx_t_8 = 127;
    __Pyx_INCREF(__pyx_kp_u__17);
    __pyx_t_7 += 2;
    __Pyx_GIVEREF(__pyx_kp_u__17);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u__17);

    /* "cytimes/pddatetime.py":2598
 *                 "Must be one of the following <'str'>: "
 *                 "['Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns']."
 *                 % (self.__class__.__name__, unit)             # <<<<<<<<<<<<<<
 *             )
 *         # Return delta
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_9), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_8;
    __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_kp_u_Invalid_delta_unit_input);
    __pyx_t_7 += 31;
    __Pyx_GIVEREF(__pyx_kp_u_Invalid_delta_unit_input);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_Invalid_delta_unit_input);
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_unit), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_8;
    __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_kp_u_Must_be_one_of_the_following_st_3);
    __pyx_t_7 += 94;
    __Pyx_GIVEREF(__pyx_kp_u_Must_be_one_of_the_following_st_3);
    PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u_Must_be_one_of_the_following_st_3);

    /* "cytimes/pddatetime.py":2595
 *         else:
 *             raise errors.InvalidDeltaUnitError(
 *                 "<'%s'>\nInvalid delta 'unit' input: %r. "             # <<<<<<<<<<<<<<
 *                 "Must be one of the following <'str'>: "
 *                 "['Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns']."
 */
    __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    __pyx_t_11 = 0;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
        __pyx_t_11 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_4};
      __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2594, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __Pyx_Raise(__pyx_t_10, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __PYX_ERR(0, 2594, __pyx_L1_error)
  }
  __pyx_L13:;

  /* "cytimes/pddatetime.py":2601
 *             )
 *         # Return delta
 *         delta = FN_NP_ABS(m_val - o_val)             # <<<<<<<<<<<<<<
 *         return self._arr_to_series(delta + incl if incl else delta)
 */
  __pyx_t_5 = PyNumber_Subtract(__pyx_v_m_val, __pyx_v_o_val); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(__pyx_v_7cytimes_10pddatetime_FN_NP_ABS);
  __pyx_t_4 = __pyx_v_7cytimes_10pddatetime_FN_NP_ABS; __pyx_t_1 = NULL;
  __pyx_t_11 = 0;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_11 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_5};
    __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11);
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2601, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __pyx_v_delta = __pyx_t_10;
  __pyx_t_10 = 0;

  /* "cytimes/pddatetime.py":2602
 *         # Return delta
 *         delta = FN_NP_ABS(m_val - o_val)
 *         return self._arr_to_series(delta + incl if incl else delta)             # <<<<<<<<<<<<<<
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = (__pyx_v_incl != 0);
  if (__pyx_t_2) {
    __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_incl); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2602, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyNumber_Add(__pyx_v_delta, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2602, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_10 = __pyx_t_5;
    __pyx_t_5 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_delta);
    __pyx_t_10 = __pyx_v_delta;
  }
  __pyx_t_5 = __pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series(__pyx_v_self, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cytimes/pddatetime.py":2498
 * 
 *     # C-API: Delta -----------------------------------------------------------------------------
 *     @cython.cfunc             # <<<<<<<<<<<<<<
 *     @cython.inline(True)
 *     def _c_cal_delta(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt._c_cal_delta", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_o_dt);
  __Pyx_XDECREF(__pyx_v_delta);
  __Pyx_XDECREF(__pyx_v_m_val);
  __Pyx_XDECREF(__pyx_v_o_val);
  __Pyx_XDECREF(__pyx_v_adj);
  __Pyx_XDECREF(__pyx_v_other);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_179__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_179__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_179__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_179__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) {
    __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;}
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_178__reduce_cython__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_178__reduce_cython__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 1);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self._cfg, self._day1st, self._default, self._dt, self._exact, self._format, self._utc, self._year1st)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyTuple_New(8); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_cfg);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self->_cfg);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self->_cfg))) __PYX_ERR(8, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_day1st);
  __Pyx_GIVEREF(__pyx_v_self->_day1st);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self->_day1st)) __PYX_ERR(8, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_default);
  __Pyx_GIVEREF(__pyx_v_self->_default);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_self->_default)) __PYX_ERR(8, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_dt);
  __Pyx_GIVEREF(__pyx_v_self->_dt);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_self->_dt)) __PYX_ERR(8, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_exact);
  __Pyx_GIVEREF(__pyx_v_self->_exact);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_v_self->_exact)) __PYX_ERR(8, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_format);
  __Pyx_GIVEREF(__pyx_v_self->_format);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_v_self->_format)) __PYX_ERR(8, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_utc);
  __Pyx_GIVEREF(__pyx_v_self->_utc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_v_self->_utc)) __PYX_ERR(8, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_year1st);
  __Pyx_GIVEREF(__pyx_v_self->_year1st);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_v_self->_year1st)) __PYX_ERR(8, 5, __pyx_L1_error);
  __pyx_v_state = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self._cfg, self._day1st, self._default, self._dt, self._exact, self._format, self._utc, self._year1st)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v__dict = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "(tree fragment)":7
 *     state = (self._cfg, self._day1st, self._default, self._dt, self._exact, self._format, self._utc, self._year1st)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_2 = (__pyx_v__dict != Py_None);
  if (__pyx_t_2) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict)) __PYX_ERR(8, 8, __pyx_L1_error);
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self._cfg is not None or self._day1st is not None or self._default is not None or self._dt is not None or self._exact is not None or self._format is not None or self._utc is not None or self._year1st is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self._cfg, self._day1st, self._default, self._dt, self._exact, self._format, self._utc, self._year1st)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self._cfg is not None or self._day1st is not None or self._default is not None or self._dt is not None or self._exact is not None or self._format is not None or self._utc is not None or self._year1st is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, None), state
 */
  /*else*/ {
    __pyx_t_4 = (((PyObject *)__pyx_v_self->_cfg) != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_2 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->_day1st != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_2 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->_default != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_2 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->_dt != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_2 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->_exact != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_2 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->_format != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_2 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->_utc != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_2 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->_year1st != Py_None);
    __pyx_t_2 = __pyx_t_4;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_2;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self._cfg is not None or self._day1st is not None or self._default is not None or self._dt is not None or self._exact is not None or self._format is not None or self._utc is not None or self._year1st is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, None), state
 *     else:
 */
  if (__pyx_v_use_setstate) {

    /* "(tree fragment)":13
 *         use_setstate = self._cfg is not None or self._day1st is not None or self._default is not None or self._dt is not None or self._exact is not None or self._format is not None or self._utc is not None or self._year1st is not None
 *     if use_setstate:
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_pddt); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))))) __PYX_ERR(8, 13, __pyx_L1_error);
    __Pyx_INCREF(__pyx_int_221774984);
    __Pyx_GIVEREF(__pyx_int_221774984);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_221774984)) __PYX_ERR(8, 13, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(8, 13, __pyx_L1_error);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3)) __PYX_ERR(8, 13, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(8, 13, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state)) __PYX_ERR(8, 13, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self._cfg is not None or self._day1st is not None or self._default is not None or self._dt is not None or self._exact is not None or self._format is not None or self._utc is not None or self._year1st is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, None), state
 *     else:
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_pddt__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_pddt); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))))) __PYX_ERR(8, 15, __pyx_L1_error);
    __Pyx_INCREF(__pyx_int_221774984);
    __Pyx_GIVEREF(__pyx_int_221774984);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_221774984)) __PYX_ERR(8, 15, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(8, 15, __pyx_L1_error);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(8, 15, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(8, 15, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_pddt__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_181__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_4pddt_181__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_181__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_7cytimes_10pddatetime_4pddt_181__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 16, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(8, 16, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 16, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime_4pddt_180__setstate_cython__(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime_4pddt_180__setstate_cython__(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 1);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_pddt__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(8, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_7cytimes_10pddatetime___pyx_unpickle_pddt__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_pddt__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cytimes.pddatetime.pddt.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_pddt(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_7cytimes_10pddatetime_1__pyx_unpickle_pddt(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_7cytimes_10pddatetime_1__pyx_unpickle_pddt = {"__pyx_unpickle_pddt", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_1__pyx_unpickle_pddt, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_7cytimes_10pddatetime_1__pyx_unpickle_pddt(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_pddt (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_MACROS
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 1, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[1]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 1, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_pddt", 1, 3, 3, 1); __PYX_ERR(8, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) {
          (void)__Pyx_Arg_NewRef_FASTCALL(values[2]);
          kw_args--;
        }
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 1, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_pddt", 1, 3, 3, 2); __PYX_ERR(8, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_pddt") < 0)) __PYX_ERR(8, 1, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
      values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(8, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_pddt", 1, 3, 3, __pyx_nargs); __PYX_ERR(8, 1, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_AddTraceback("cytimes.pddatetime.__pyx_unpickle_pddt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_7cytimes_10pddatetime___pyx_unpickle_pddt(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  {
    Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
      __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
    }
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_7cytimes_10pddatetime___pyx_unpickle_pddt(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_pddt", 1);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum not in (0xd380488, 0xd03eb29, 0xe34a994):             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))" % __pyx_checksum
 */
  __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__26, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum not in (0xd380488, 0xd03eb29, 0xe34a994):
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))" % __pyx_checksum
 *     __pyx_result = pddt.__new__(__pyx_type)
 */
    __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(8, 5, __pyx_L1_error);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_1);
    __pyx_v___pyx_PickleError = __pyx_t_1;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum not in (0xd380488, 0xd03eb29, 0xe34a994):
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))" % __pyx_checksum             # <<<<<<<<<<<<<<
 *     __pyx_result = pddt.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(8, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum not in (0xd380488, 0xd03eb29, 0xe34a994):             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))" % __pyx_checksum
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))" % __pyx_checksum
 *     __pyx_result = pddt.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_pddt__set_state(<pddt> __pyx_result, __pyx_state)
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_5 = 1;
    }
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 7, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_v___pyx_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))" % __pyx_checksum
 *     __pyx_result = pddt.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_pddt__set_state(<pddt> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_2 = (__pyx_v___pyx_state != Py_None);
  if (__pyx_t_2) {

    /* "(tree fragment)":9
 *     __pyx_result = pddt.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_pddt__set_state(<pddt> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_pddt__set_state(pddt __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(8, 9, __pyx_L1_error)
    __pyx_t_1 = __pyx_f_7cytimes_10pddatetime___pyx_unpickle_pddt__set_state(((struct __pyx_obj_7cytimes_10pddatetime_pddt *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))" % __pyx_checksum
 *     __pyx_result = pddt.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_pddt__set_state(<pddt> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_pddt__set_state(<pddt> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_pddt__set_state(pddt __pyx_result, tuple __pyx_state):
 *     __pyx_result._cfg = __pyx_state[0]; __pyx_result._day1st = __pyx_state[1]; __pyx_result._default = __pyx_state[2]; __pyx_result._dt = __pyx_state[3]; __pyx_result._exact = __pyx_state[4]; __pyx_result._format = __pyx_state[5]; __pyx_result._utc = __pyx_state[6]; __pyx_result._year1st = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_pddt(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cytimes.pddatetime.__pyx_unpickle_pddt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_pddt__set_state(<pddt> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_pddt__set_state(pddt __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result._cfg = __pyx_state[0]; __pyx_result._day1st = __pyx_state[1]; __pyx_result._default = __pyx_state[2]; __pyx_result._dt = __pyx_state[3]; __pyx_result._exact = __pyx_state[4]; __pyx_result._format = __pyx_state[5]; __pyx_result._utc = __pyx_state[6]; __pyx_result._year1st = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_7cytimes_10pddatetime___pyx_unpickle_pddt__set_state(struct __pyx_obj_7cytimes_10pddatetime_pddt *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_pddt__set_state", 1);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_pddt__set_state(pddt __pyx_result, tuple __pyx_state):
 *     __pyx_result._cfg = __pyx_state[0]; __pyx_result._day1st = __pyx_state[1]; __pyx_result._default = __pyx_state[2]; __pyx_result._dt = __pyx_state[3]; __pyx_result._exact = __pyx_state[4]; __pyx_result._format = __pyx_state[5]; __pyx_result._utc = __pyx_state[6]; __pyx_result._year1st = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(8, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0), __pyx_ptype_7cytimes_8cyparser_Config))))) __PYX_ERR(8, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 0);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->_cfg);
  __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->_cfg);
  __pyx_v___pyx_result->_cfg = ((struct __pyx_obj_7cytimes_8cyparser_Config *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(8, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_day1st);
  __Pyx_DECREF(__pyx_v___pyx_result->_day1st);
  __pyx_v___pyx_result->_day1st = __pyx_t_1;
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(8, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_default);
  __Pyx_DECREF(__pyx_v___pyx_result->_default);
  __pyx_v___pyx_result->_default = __pyx_t_1;
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(8, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 3);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_dt);
  __Pyx_DECREF(__pyx_v___pyx_result->_dt);
  __pyx_v___pyx_result->_dt = __pyx_t_1;
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(8, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_exact);
  __Pyx_DECREF(__pyx_v___pyx_result->_exact);
  __pyx_v___pyx_result->_exact = __pyx_t_1;
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(8, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 5);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_format);
  __Pyx_DECREF(__pyx_v___pyx_result->_format);
  __pyx_v___pyx_result->_format = __pyx_t_1;
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(8, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_utc);
  __Pyx_DECREF(__pyx_v___pyx_result->_utc);
  __pyx_v___pyx_result->_utc = __pyx_t_1;
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(8, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_year1st);
  __Pyx_DECREF(__pyx_v___pyx_result->_year1st);
  __pyx_v___pyx_result->_year1st = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_pddt__set_state(pddt __pyx_result, tuple __pyx_state):
 *     __pyx_result._cfg = __pyx_state[0]; __pyx_result._day1st = __pyx_state[1]; __pyx_result._default = __pyx_state[2]; __pyx_result._dt = __pyx_state[3]; __pyx_result._exact = __pyx_state[4]; __pyx_result._format = __pyx_state[5]; __pyx_result._utc = __pyx_state[6]; __pyx_result._year1st = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(8, 13, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(8, 13, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_3 > 8);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(8, 13, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_4;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "(tree fragment)":14
 *     __pyx_result._cfg = __pyx_state[0]; __pyx_result._day1st = __pyx_state[1]; __pyx_result._default = __pyx_state[2]; __pyx_result._dt = __pyx_state[3]; __pyx_result._exact = __pyx_state[4]; __pyx_result._format = __pyx_state[5]; __pyx_result._utc = __pyx_state[6]; __pyx_result._year1st = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(8, 14, __pyx_L1_error)
    }
    __pyx_t_5 = NULL;
    __pyx_t_7 = 0;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
        __pyx_t_7 = 1;
      }
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)};
      __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 14, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_pddt__set_state(pddt __pyx_result, tuple __pyx_state):
 *     __pyx_result._cfg = __pyx_state[0]; __pyx_result._day1st = __pyx_state[1]; __pyx_result._default = __pyx_state[2]; __pyx_result._dt = __pyx_state[3]; __pyx_result._exact = __pyx_state[4]; __pyx_result._format = __pyx_state[5]; __pyx_result._utc = __pyx_state[6]; __pyx_result._year1st = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_pddt__set_state(<pddt> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_pddt__set_state(pddt __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result._cfg = __pyx_state[0]; __pyx_result._day1st = __pyx_state[1]; __pyx_result._default = __pyx_state[2]; __pyx_result._dt = __pyx_state[3]; __pyx_result._exact = __pyx_state[4]; __pyx_result._format = __pyx_state[5]; __pyx_result._utc = __pyx_state[6]; __pyx_result._year1st = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cytimes.pddatetime.__pyx_unpickle_pddt__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static struct __pyx_vtabstruct_7cytimes_10pddatetime_pddt __pyx_vtable_7cytimes_10pddatetime_pddt;

static PyObject *__pyx_tp_new_7cytimes_10pddatetime_pddt(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *p;
  PyObject *o;
  #if CYTHON_COMPILING_IN_LIMITED_API
  allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc);
  o = alloc_func(t, 0);
  #else
  if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  #endif
  p = ((struct __pyx_obj_7cytimes_10pddatetime_pddt *)o);
  p->__pyx_vtab = __pyx_vtabptr_7cytimes_10pddatetime_pddt;
  p->_dt = Py_None; Py_INCREF(Py_None);
  p->_cfg = ((struct __pyx_obj_7cytimes_8cyparser_Config *)Py_None); Py_INCREF(Py_None);
  p->_day1st = Py_None; Py_INCREF(Py_None);
  p->_year1st = Py_None; Py_INCREF(Py_None);
  p->_utc = Py_None; Py_INCREF(Py_None);
  p->_format = Py_None; Py_INCREF(Py_None);
  p->_exact = Py_None; Py_INCREF(Py_None);
  p->_default = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_7cytimes_10pddatetime_pddt(PyObject *o) {
  struct __pyx_obj_7cytimes_10pddatetime_pddt *p = (struct __pyx_obj_7cytimes_10pddatetime_pddt *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_7cytimes_10pddatetime_pddt) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->_dt);
  Py_CLEAR(p->_cfg);
  Py_CLEAR(p->_day1st);
  Py_CLEAR(p->_year1st);
  Py_CLEAR(p->_utc);
  Py_CLEAR(p->_format);
  Py_CLEAR(p->_exact);
  Py_CLEAR(p->_default);
  #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY
  (*Py_TYPE(o)->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
}

static int __pyx_tp_traverse_7cytimes_10pddatetime_pddt(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *p = (struct __pyx_obj_7cytimes_10pddatetime_pddt *)o;
  if (p->_dt) {
    e = (*v)(p->_dt, a); if (e) return e;
  }
  if (p->_cfg) {
    e = (*v)(((PyObject *)p->_cfg), a); if (e) return e;
  }
  if (p->_day1st) {
    e = (*v)(p->_day1st, a); if (e) return e;
  }
  if (p->_year1st) {
    e = (*v)(p->_year1st, a); if (e) return e;
  }
  if (p->_utc) {
    e = (*v)(p->_utc, a); if (e) return e;
  }
  if (p->_format) {
    e = (*v)(p->_format, a); if (e) return e;
  }
  if (p->_exact) {
    e = (*v)(p->_exact, a); if (e) return e;
  }
  if (p->_default) {
    e = (*v)(p->_default, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_7cytimes_10pddatetime_pddt(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_7cytimes_10pddatetime_pddt *p = (struct __pyx_obj_7cytimes_10pddatetime_pddt *)o;
  tmp = ((PyObject*)p->_dt);
  p->_dt = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_cfg);
  p->_cfg = ((struct __pyx_obj_7cytimes_8cyparser_Config *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_day1st);
  p->_day1st = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_year1st);
  p->_year1st = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_utc);
  p->_utc = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_format);
  p->_format = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_exact);
  p->_exact = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_default);
  p->_default = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
static PyObject *__pyx_sq_item_7cytimes_10pddatetime_pddt(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static PyObject *__pyx_tp_richcompare_7cytimes_10pddatetime_pddt(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_7cytimes_10pddatetime_4pddt_145__eq__(o1, o2);
    }
    case Py_NE: {
      return __pyx_pw_7cytimes_10pddatetime_4pddt_147__ne__(o1, o2);
    }
    case Py_LT: {
      return __pyx_pw_7cytimes_10pddatetime_4pddt_153__lt__(o1, o2);
    }
    case Py_GT: {
      return __pyx_pw_7cytimes_10pddatetime_4pddt_149__gt__(o1, o2);
    }
    case Py_LE: {
      return __pyx_pw_7cytimes_10pddatetime_4pddt_155__le__(o1, o2);
    }
    case Py_GE: {
      return __pyx_pw_7cytimes_10pddatetime_4pddt_151__ge__(o1, o2);
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static CYTHON_INLINE PyObject *__pyx_nb_add_7cytimes_10pddatetime_pddt_maybe_call_slot(PyTypeObject* type, PyObject *left, PyObject *right ) {
    binaryfunc slot;
#if CYTHON_USE_TYPE_SLOTS || PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
    slot = type->tp_as_number ? type->tp_as_number->nb_add : NULL;
#else
    slot = (binaryfunc) PyType_GetSlot(type, Py_nb_add);
#endif
    return slot ? slot(left, right ) : __Pyx_NewRef(Py_NotImplemented);
}
static PyObject *__pyx_nb_add_7cytimes_10pddatetime_pddt(PyObject *left, PyObject *right ) {
    int maybe_self_is_left, maybe_self_is_right = 0;
    maybe_self_is_left = Py_TYPE(left) == Py_TYPE(right)
#if CYTHON_USE_TYPE_SLOTS
            || (Py_TYPE(left)->tp_as_number && Py_TYPE(left)->tp_as_number->nb_add == &__pyx_nb_add_7cytimes_10pddatetime_pddt)
#endif
            || __Pyx_TypeCheck(left, __pyx_ptype_7cytimes_10pddatetime_pddt);
    if (maybe_self_is_left) {
        PyObject *res;
        res = __pyx_pw_7cytimes_10pddatetime_4pddt_137__add__(left, right);
        if (res != Py_NotImplemented) return res;
        Py_DECREF(res);
    }
    maybe_self_is_right = Py_TYPE(left) == Py_TYPE(right)
#if CYTHON_USE_TYPE_SLOTS
            || (Py_TYPE(right)->tp_as_number && Py_TYPE(right)->tp_as_number->nb_add == &__pyx_nb_add_7cytimes_10pddatetime_pddt)
#endif
            || PyType_IsSubtype(Py_TYPE(right), __pyx_ptype_7cytimes_10pddatetime_pddt);
    if (maybe_self_is_right) {
        return __pyx_pw_7cytimes_10pddatetime_4pddt_139__radd__(right, left);
    }
    return __Pyx_NewRef(Py_NotImplemented);
}



static CYTHON_INLINE PyObject *__pyx_nb_subtract_7cytimes_10pddatetime_pddt_maybe_call_slot(PyTypeObject* type, PyObject *left, PyObject *right ) {
    binaryfunc slot;
#if CYTHON_USE_TYPE_SLOTS || PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
    slot = type->tp_as_number ? type->tp_as_number->nb_subtract : NULL;
#else
    slot = (binaryfunc) PyType_GetSlot(type, Py_nb_subtract);
#endif
    return slot ? slot(left, right ) : __Pyx_NewRef(Py_NotImplemented);
}
static PyObject *__pyx_nb_subtract_7cytimes_10pddatetime_pddt(PyObject *left, PyObject *right ) {
    int maybe_self_is_left, maybe_self_is_right = 0;
    maybe_self_is_left = Py_TYPE(left) == Py_TYPE(right)
#if CYTHON_USE_TYPE_SLOTS
            || (Py_TYPE(left)->tp_as_number && Py_TYPE(left)->tp_as_number->nb_subtract == &__pyx_nb_subtract_7cytimes_10pddatetime_pddt)
#endif
            || __Pyx_TypeCheck(left, __pyx_ptype_7cytimes_10pddatetime_pddt);
    if (maybe_self_is_left) {
        PyObject *res;
        res = __pyx_pw_7cytimes_10pddatetime_4pddt_141__sub__(left, right);
        if (res != Py_NotImplemented) return res;
        Py_DECREF(res);
    }
    maybe_self_is_right = Py_TYPE(left) == Py_TYPE(right)
#if CYTHON_USE_TYPE_SLOTS
            || (Py_TYPE(right)->tp_as_number && Py_TYPE(right)->tp_as_number->nb_subtract == &__pyx_nb_subtract_7cytimes_10pddatetime_pddt)
#endif
            || PyType_IsSubtype(Py_TYPE(right), __pyx_ptype_7cytimes_10pddatetime_pddt);
    if (maybe_self_is_right) {
        return __pyx_pw_7cytimes_10pddatetime_4pddt_143__rsub__(right, left);
    }
    return __Pyx_NewRef(Py_NotImplemented);
}



static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4name_1__get__(o);
}

static int __pyx_setprop_7cytimes_10pddatetime_4pddt_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_7cytimes_10pddatetime_4pddt_4name_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_index(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_5index_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_unit(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4unit_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_year(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4year_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_quarter(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_7quarter_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_month(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_5month_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_day(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_3day_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_hour(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4hour_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_minute(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_6minute_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_second(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_6second_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_microsecond(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_11microsecond_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_nanosecond(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_10nanosecond_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_tzinfo(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_6tzinfo_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_tzname(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_6tzname_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_dt(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_2dt_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_dt_str(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_6dt_str_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_dt_strtz(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_8dt_strtz_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_dt_iso(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_6dt_iso_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_dt_isotz(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_8dt_isotz_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_dt64(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4dt64_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_dtpy(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4dtpy_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_pydt(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4pydt_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_date(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4date_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_date_iso(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_8date_iso_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_time(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_4time_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_timetz(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_6timetz_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_time_iso(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_8time_iso_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_ordinal(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_7ordinal_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_seconds(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_7seconds_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_seconds_utc(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_11seconds_utc_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_microseconds(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_12microseconds_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_microseconds_utc(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_16microseconds_utc_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_timestamp(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_9timestamp_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_days_in_year(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_12days_in_year_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_days_bf_year(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_12days_bf_year_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_days_of_year(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_12days_of_year_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_days_in_quarter(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_15days_in_quarter_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_days_bf_quarter(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_15days_bf_quarter_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_days_of_quarter(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_15days_of_quarter_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_quarter_1st_month(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_17quarter_1st_month_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_quarter_lst_month(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_17quarter_lst_month_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_days_in_month(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_13days_in_month_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_days_bf_month(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_13days_bf_month_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_weekday(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_7weekday_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_isoweekday(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_10isoweekday_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_isoweek(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_7isoweek_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_isoyear(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_7isoyear_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_isocalendar(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_11isocalendar_1__get__(o);
}

static PyObject *__pyx_getprop_7cytimes_10pddatetime_4pddt_tz_available(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_12tz_available_1__get__(o);
}

static PyObject *__pyx_specialmethod___pyx_pw_7cytimes_10pddatetime_4pddt_165__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) {
  return __pyx_pw_7cytimes_10pddatetime_4pddt_165__repr__(self);
}

static PyMethodDef __pyx_methods_7cytimes_10pddatetime_pddt[] = {
  {"now", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_1now, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_now},
  {"from_dtobj", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_3from_dtobj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_2from_dtobj},
  {"from_datetime", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_5from_datetime, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_4from_datetime},
  {"from_range", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_7from_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_6from_range},
  {"is_leapyear", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_11is_leapyear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_10is_leapyear},
  {"leap_bt_years", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_13leap_bt_years, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_12leap_bt_years},
  {"is_year", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_15is_year, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_14is_year},
  {"is_year_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_17is_year_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_16is_year_1st},
  {"is_year_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_19is_year_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_18is_year_lst},
  {"is_quarter", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_33is_quarter, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_32is_quarter},
  {"is_quarter_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_35is_quarter_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_34is_quarter_1st},
  {"is_quarter_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_37is_quarter_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_36is_quarter_lst},
  {"is_month", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_51is_month, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_50is_month},
  {"is_month_1st", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_53is_month_1st, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_52is_month_1st},
  {"is_month_lst", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_55is_month_lst, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_54is_month_lst},
  {"is_weekday", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_69is_weekday, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_68is_weekday},
  {"is_day", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_93is_day, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_92is_day},
  {"is_time_start", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_101is_time_start, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_100is_time_start},
  {"is_time_end", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_103is_time_end, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_102is_time_end},
  {"cal_delta", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_129cal_delta, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_128cal_delta},
  {"replace", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_131replace, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_130replace},
  {"strftime", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_133strftime, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_132strftime},
  {"__radd__", (PyCFunction)__pyx_pw_7cytimes_10pddatetime_4pddt_139__radd__, METH_O|METH_COEXIST, 0},
  {"__rsub__", (PyCFunction)__pyx_pw_7cytimes_10pddatetime_4pddt_143__rsub__, METH_O|METH_COEXIST, 0},
  {"equals", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_157equals, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7cytimes_10pddatetime_4pddt_156equals},
  {"__copy__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_161__copy__, METH_VARARGS|METH_KEYWORDS, 0},
  {"__deepcopy__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_163__deepcopy__, METH_VARARGS|METH_KEYWORDS, 0},
  {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_7cytimes_10pddatetime_4pddt_165__repr__, METH_NOARGS|METH_COEXIST, 0},
  {"__array__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_177__array__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_179__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7cytimes_10pddatetime_4pddt_181__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_7cytimes_10pddatetime_pddt[] = {
  {(char *)"name", __pyx_getprop_7cytimes_10pddatetime_4pddt_name, __pyx_setprop_7cytimes_10pddatetime_4pddt_name, (char *)PyDoc_STR("Access the 'name' of the Series `<str/None>`."), 0},
  {(char *)"index", __pyx_getprop_7cytimes_10pddatetime_4pddt_index, 0, (char *)PyDoc_STR("Access the 'index' of the Series `<Index>`."), 0},
  {(char *)"unit", __pyx_getprop_7cytimes_10pddatetime_4pddt_unit, 0, (char *)PyDoc_STR("Access the time unit of the Series `<'str'>`.\n        Such as 'ns', 'us', 'ms', 's'."), 0},
  {(char *)"year", __pyx_getprop_7cytimes_10pddatetime_4pddt_year, 0, (char *)PyDoc_STR("Access the year `<'Series[int]'>`."), 0},
  {(char *)"quarter", __pyx_getprop_7cytimes_10pddatetime_4pddt_quarter, 0, (char *)PyDoc_STR("Access the quarter `<'Series[int]'>`."), 0},
  {(char *)"month", __pyx_getprop_7cytimes_10pddatetime_4pddt_month, 0, (char *)PyDoc_STR("Access the month `<'Series[int]'>`."), 0},
  {(char *)"day", __pyx_getprop_7cytimes_10pddatetime_4pddt_day, 0, (char *)PyDoc_STR("Access the day `<'Series[int]'>`."), 0},
  {(char *)"hour", __pyx_getprop_7cytimes_10pddatetime_4pddt_hour, 0, (char *)PyDoc_STR("Access the hour `<'Series[int]'>`."), 0},
  {(char *)"minute", __pyx_getprop_7cytimes_10pddatetime_4pddt_minute, 0, (char *)PyDoc_STR("Access the minute `<'Series[int]'>`."), 0},
  {(char *)"second", __pyx_getprop_7cytimes_10pddatetime_4pddt_second, 0, (char *)PyDoc_STR("Access the second `<'Series[int]'>`."), 0},
  {(char *)"microsecond", __pyx_getprop_7cytimes_10pddatetime_4pddt_microsecond, 0, (char *)PyDoc_STR("Access the microsecond `<'Series[int]'>`."), 0},
  {(char *)"nanosecond", __pyx_getprop_7cytimes_10pddatetime_4pddt_nanosecond, 0, (char *)PyDoc_STR("Access the nanosecond `<'Series[int]'>`."), 0},
  {(char *)"tzinfo", __pyx_getprop_7cytimes_10pddatetime_4pddt_tzinfo, 0, (char *)PyDoc_STR("Access the timezone `<'datetime.tzinfo/None'>`."), 0},
  {(char *)"tzname", __pyx_getprop_7cytimes_10pddatetime_4pddt_tzname, 0, (char *)PyDoc_STR("Access the timezone name `<'str/None'>`."), 0},
  {(char *)"dt", __pyx_getprop_7cytimes_10pddatetime_4pddt_dt, 0, (char *)PyDoc_STR("Access as `<'Series[Timestamp]'>`."), 0},
  {(char *)"dt_str", __pyx_getprop_7cytimes_10pddatetime_4pddt_dt_str, 0, (char *)PyDoc_STR("Access in string format `<'Series[str]'>`.\n        e.g: \"2021-01-01 12:00:00.000001"), 0},
  {(char *)"dt_strtz", __pyx_getprop_7cytimes_10pddatetime_4pddt_dt_strtz, 0, (char *)PyDoc_STR("Access in string format with timezone `<'Series[str]'>`.\n        e.g: \"2021-01-01 12:00:00.000001+00:00"), 0},
  {(char *)"dt_iso", __pyx_getprop_7cytimes_10pddatetime_4pddt_dt_iso, 0, (char *)PyDoc_STR("Access in ISO format `<'Series[str]'>`.\n        e.g: \"2021-01-01T12:00:00.000001"), 0},
  {(char *)"dt_isotz", __pyx_getprop_7cytimes_10pddatetime_4pddt_dt_isotz, 0, (char *)PyDoc_STR("Access in ISO format with timezone `<'Series[str]'>`.\n        e.g: \"2021-01-01T12:00:00.000001+00:00"), 0},
  {(char *)"dt64", __pyx_getprop_7cytimes_10pddatetime_4pddt_dt64, 0, (char *)PyDoc_STR("Access as `<'ndarray[datetime64]'>`."), 0},
  {(char *)"dtpy", __pyx_getprop_7cytimes_10pddatetime_4pddt_dtpy, 0, (char *)PyDoc_STR("Access as `<'ndarray[datetime.datetime]'>`."), 0},
  {(char *)"pydt", __pyx_getprop_7cytimes_10pddatetime_4pddt_pydt, 0, (char *)PyDoc_STR("Access as `<'ndarray[pydt]'>`."), 0},
  {(char *)"date", __pyx_getprop_7cytimes_10pddatetime_4pddt_date, 0, (char *)PyDoc_STR("Access as `<'Series[datetime.date]'>`."), 0},
  {(char *)"date_iso", __pyx_getprop_7cytimes_10pddatetime_4pddt_date_iso, 0, (char *)PyDoc_STR("Access dates in ISO format `<'Series[str]'>`."), 0},
  {(char *)"time", __pyx_getprop_7cytimes_10pddatetime_4pddt_time, 0, (char *)PyDoc_STR("Access as `<'Series[datetime.time]'>`."), 0},
  {(char *)"timetz", __pyx_getprop_7cytimes_10pddatetime_4pddt_timetz, 0, (char *)PyDoc_STR("Access as `<'Series[datetime.time]'>` with timezone."), 0},
  {(char *)"time_iso", __pyx_getprop_7cytimes_10pddatetime_4pddt_time_iso, 0, (char *)PyDoc_STR("Access times in ISO format `<'Series[str]'>`."), 0},
  {(char *)"ordinal", __pyx_getprop_7cytimes_10pddatetime_4pddt_ordinal, 0, (char *)PyDoc_STR("Access in ordinal values `<'Series[int]'>`."), 0},
  {(char *)"seconds", __pyx_getprop_7cytimes_10pddatetime_4pddt_seconds, 0, (char *)PyDoc_STR("Access in total seconds since EPOCH, ignoring\n        the timezone (if exists) `<'Series[int]'>`.\n\n        ### Notice\n        This should `NOT` be treated as timestamp.\n        "), 0},
  {(char *)"seconds_utc", __pyx_getprop_7cytimes_10pddatetime_4pddt_seconds_utc, 0, (char *)PyDoc_STR("Access in total seconds since EPOCH `<'Series[int]'>`.\n        - If `timezone-aware`, return total seconds in UTC.\n        - If `timezone-naive`, requivalent to `pddt.seconds`.\n\n        ### Notice\n        This should `NOT` be treated as timestamp.\n        "), 0},
  {(char *)"microseconds", __pyx_getprop_7cytimes_10pddatetime_4pddt_microseconds, 0, (char *)PyDoc_STR("Access in total microseconds since EPOCH, ignoring\n        the timezone (if exists) `<'Series[int]'>`."), 0},
  {(char *)"microseconds_utc", __pyx_getprop_7cytimes_10pddatetime_4pddt_microseconds_utc, 0, (char *)PyDoc_STR("Access in total microseconds since EPOCH `<'Series[int]'>`.\n        - If `timezone-aware`, return total microseconds in UTC.\n        - If `timezone-naive`, requivalent to `pddt.microseconds`.\n        "), 0},
  {(char *)"timestamp", __pyx_getprop_7cytimes_10pddatetime_4pddt_timestamp, 0, (char *)PyDoc_STR("Access in timestamp values `<'Series[float]'>`."), 0},
  {(char *)"days_in_year", __pyx_getprop_7cytimes_10pddatetime_4pddt_days_in_year, 0, (char *)PyDoc_STR("Get the maximum number of days in the year.\n        Expect 365 or 366 (leapyear) `<'Series[int]'>`."), 0},
  {(char *)"days_bf_year", __pyx_getprop_7cytimes_10pddatetime_4pddt_days_bf_year, 0, (char *)PyDoc_STR("Get the number of days betweem the 1st day of 1AD and\n        the 1st day of the year of the dates `<'Series[int]'>`."), 0},
  {(char *)"days_of_year", __pyx_getprop_7cytimes_10pddatetime_4pddt_days_of_year, 0, (char *)PyDoc_STR("Get the number of days between the 1st day\n        of the year and the dates `<'Series[int]'>`."), 0},
  {(char *)"days_in_quarter", __pyx_getprop_7cytimes_10pddatetime_4pddt_days_in_quarter, 0, (char *)PyDoc_STR("Get the maximum number of days in the quarter `<'Series[int]'>`."), 0},
  {(char *)"days_bf_quarter", __pyx_getprop_7cytimes_10pddatetime_4pddt_days_bf_quarter, 0, (char *)PyDoc_STR("Get the number of days between the 1st day of the year and\n        the 1st day of the quarter `<'Series[int]'>`."), 0},
  {(char *)"days_of_quarter", __pyx_getprop_7cytimes_10pddatetime_4pddt_days_of_quarter, 0, (char *)PyDoc_STR("Get the number of days between the 1st day of the quarter\n        and the dates `<'Series[int]'>`."), 0},
  {(char *)"quarter_1st_month", __pyx_getprop_7cytimes_10pddatetime_4pddt_quarter_1st_month, 0, (char *)PyDoc_STR("Get the first month of the quarter.\n        Expect 1, 4, 7, 10 `<'Series[int]'>`."), 0},
  {(char *)"quarter_lst_month", __pyx_getprop_7cytimes_10pddatetime_4pddt_quarter_lst_month, 0, (char *)PyDoc_STR("Get the last month of the quarter.\n        Expect 3, 6, 9, 12 `<'Series[int]'>`."), 0},
  {(char *)"days_in_month", __pyx_getprop_7cytimes_10pddatetime_4pddt_days_in_month, 0, (char *)PyDoc_STR("Get the maximum number of days in the month `<'Series[int]'>`."), 0},
  {(char *)"days_bf_month", __pyx_getprop_7cytimes_10pddatetime_4pddt_days_bf_month, 0, (char *)PyDoc_STR("Get the number of days between the 1st day of\n        the year and the 1st day of the month `<'Series[int]'>`."), 0},
  {(char *)"weekday", __pyx_getprop_7cytimes_10pddatetime_4pddt_weekday, 0, (char *)PyDoc_STR("The weekday of the dates `<'Series[int]'>`.\n        Values: 0=Monday...6=Sunday."), 0},
  {(char *)"isoweekday", __pyx_getprop_7cytimes_10pddatetime_4pddt_isoweekday, 0, (char *)PyDoc_STR("The ISO weekday of the dates `<'Series[int]'>`.\n        Values: 1=Monday...7=Sunday."), 0},
  {(char *)"isoweek", __pyx_getprop_7cytimes_10pddatetime_4pddt_isoweek, 0, (char *)PyDoc_STR("The ISO calendar week number of the dates `<'Series[int]'>`."), 0},
  {(char *)"isoyear", __pyx_getprop_7cytimes_10pddatetime_4pddt_isoyear, 0, (char *)PyDoc_STR("The ISO calendar year of the dates `<'Series[int]'>`."), 0},
  {(char *)"isocalendar", __pyx_getprop_7cytimes_10pddatetime_4pddt_isocalendar, 0, (char *)PyDoc_STR("The ISO calendar year, week, and weekday of the dates `<DataFrame[int]>`."), 0},
  {(char *)"tz_available", __pyx_getprop_7cytimes_10pddatetime_4pddt_tz_available, 0, (char *)PyDoc_STR("Access all the available timezone names `<set[str]>`."), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_7cytimes_10pddatetime_pddt_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_7cytimes_10pddatetime_pddt},
  {Py_tp_repr, (void *)__pyx_pw_7cytimes_10pddatetime_4pddt_165__repr__},
  {Py_nb_add, (void *)__pyx_nb_add_7cytimes_10pddatetime_pddt},
  {Py_nb_subtract, (void *)__pyx_nb_subtract_7cytimes_10pddatetime_pddt},
  {Py_sq_length, (void *)__pyx_pw_7cytimes_10pddatetime_4pddt_169__len__},
  {Py_sq_item, (void *)__pyx_sq_item_7cytimes_10pddatetime_pddt},
  {Py_sq_contains, (void *)__pyx_pw_7cytimes_10pddatetime_4pddt_171__contains__},
  {Py_mp_length, (void *)__pyx_pw_7cytimes_10pddatetime_4pddt_169__len__},
  {Py_mp_subscript, (void *)__pyx_pw_7cytimes_10pddatetime_4pddt_173__getitem__},
  {Py_tp_str, (void *)__pyx_pw_7cytimes_10pddatetime_4pddt_167__str__},
  {Py_tp_doc, (void *)PyDoc_STR("Represents the pddt (Pandas Datetime) that makes\n    working with Series[Timestamp] easier.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_7cytimes_10pddatetime_pddt},
  {Py_tp_clear, (void *)__pyx_tp_clear_7cytimes_10pddatetime_pddt},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_7cytimes_10pddatetime_pddt},
  {Py_tp_iter, (void *)__pyx_pw_7cytimes_10pddatetime_4pddt_175__iter__},
  {Py_tp_methods, (void *)__pyx_methods_7cytimes_10pddatetime_pddt},
  {Py_tp_getset, (void *)__pyx_getsets_7cytimes_10pddatetime_pddt},
  {Py_tp_init, (void *)__pyx_pw_7cytimes_10pddatetime_4pddt_9__init__},
  {Py_tp_new, (void *)__pyx_tp_new_7cytimes_10pddatetime_pddt},
  {0, 0},
};
static PyType_Spec __pyx_type_7cytimes_10pddatetime_pddt_spec = {
  "cytimes.pddatetime.pddt",
  sizeof(struct __pyx_obj_7cytimes_10pddatetime_pddt),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_7cytimes_10pddatetime_pddt_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_pddt = {
  __pyx_nb_add_7cytimes_10pddatetime_pddt, /*nb_add*/
  __pyx_nb_subtract_7cytimes_10pddatetime_pddt, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_pddt = {
  __pyx_pw_7cytimes_10pddatetime_4pddt_169__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_7cytimes_10pddatetime_pddt, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  __pyx_pw_7cytimes_10pddatetime_4pddt_171__contains__, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_pddt = {
  __pyx_pw_7cytimes_10pddatetime_4pddt_169__len__, /*mp_length*/
  __pyx_pw_7cytimes_10pddatetime_4pddt_173__getitem__, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_7cytimes_10pddatetime_pddt = {
  PyVarObject_HEAD_INIT(0, 0)
  "cytimes.pddatetime.""pddt", /*tp_name*/
  sizeof(struct __pyx_obj_7cytimes_10pddatetime_pddt), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_7cytimes_10pddatetime_pddt, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_7cytimes_10pddatetime_4pddt_165__repr__, /*tp_repr*/
  &__pyx_tp_as_number_pddt, /*tp_as_number*/
  &__pyx_tp_as_sequence_pddt, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_pddt, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_7cytimes_10pddatetime_4pddt_167__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("Represents the pddt (Pandas Datetime) that makes\n    working with Series[Timestamp] easier.\n    "), /*tp_doc*/
  __pyx_tp_traverse_7cytimes_10pddatetime_pddt, /*tp_traverse*/
  __pyx_tp_clear_7cytimes_10pddatetime_pddt, /*tp_clear*/
  __pyx_tp_richcompare_7cytimes_10pddatetime_pddt, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_7cytimes_10pddatetime_4pddt_175__iter__, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_7cytimes_10pddatetime_pddt, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_7cytimes_10pddatetime_pddt, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_7cytimes_10pddatetime_4pddt_9__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_7cytimes_10pddatetime_pddt, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

#if CYTHON_USE_FREELISTS
static struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace *__pyx_freelist_7cytimes_10pddatetime___pyx_scope_struct__replace[8];
static int __pyx_freecount_7cytimes_10pddatetime___pyx_scope_struct__replace = 0;
#endif

static PyObject *__pyx_tp_new_7cytimes_10pddatetime___pyx_scope_struct__replace(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_COMPILING_IN_LIMITED_API
  allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc);
  o = alloc_func(t, 0);
  #else
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_freecount_7cytimes_10pddatetime___pyx_scope_struct__replace > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace)))) {
    o = (PyObject*)__pyx_freelist_7cytimes_10pddatetime___pyx_scope_struct__replace[--__pyx_freecount_7cytimes_10pddatetime___pyx_scope_struct__replace];
    memset(o, 0, sizeof(struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace));
    (void) PyObject_INIT(o, t);
  } else
  #endif
  {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  #endif
  return o;
}

static void __pyx_tp_dealloc_7cytimes_10pddatetime___pyx_scope_struct__replace(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_7cytimes_10pddatetime___pyx_scope_struct__replace) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if CYTHON_USE_FREELISTS
  if (((int)(__pyx_freecount_7cytimes_10pddatetime___pyx_scope_struct__replace < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace)))) {
    __pyx_freelist_7cytimes_10pddatetime___pyx_scope_struct__replace[__pyx_freecount_7cytimes_10pddatetime___pyx_scope_struct__replace++] = ((struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace *)o);
  } else
  #endif
  {
    #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY
    (*Py_TYPE(o)->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
  }
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_7cytimes_10pddatetime___pyx_scope_struct__replace},
  {Py_tp_new, (void *)__pyx_tp_new_7cytimes_10pddatetime___pyx_scope_struct__replace},
  {0, 0},
};
static PyType_Spec __pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace_spec = {
  "cytimes.pddatetime.__pyx_scope_struct__replace",
  sizeof(struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_FINALIZE,
  __pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace_slots,
};
#else

static PyTypeObject __pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace = {
  PyVarObject_HEAD_INIT(0, 0)
  "cytimes.pddatetime.""__pyx_scope_struct__replace", /*tp_name*/
  sizeof(struct __pyx_obj_7cytimes_10pddatetime___pyx_scope_struct__replace), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_7cytimes_10pddatetime___pyx_scope_struct__replace, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_7cytimes_10pddatetime___pyx_scope_struct__replace, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif
/* #### Code section: pystring_table ### */

static int __Pyx_CreateStringTabAndInitStrings(void) {
  __Pyx_StringTabEntry __pyx_string_tab[] = {
    {&__pyx_kp_u_Addition_failed, __pyx_k_Addition_failed, sizeof(__pyx_k_Addition_failed), 0, 1, 0, 0},
    {&__pyx_kp_u_Can_t_convert_token_s_to_float, __pyx_k_Can_t_convert_token_s_to_float, sizeof(__pyx_k_Can_t_convert_token_s_to_float), 0, 1, 0, 0},
    {&__pyx_kp_u_Can_t_convert_token_s_to_integer, __pyx_k_Can_t_convert_token_s_to_integer, sizeof(__pyx_k_Can_t_convert_token_s_to_integer), 0, 1, 0, 0},
    {&__pyx_kp_u_Cannot_calculate_delta_for_obje, __pyx_k_Cannot_calculate_delta_for_obje, sizeof(__pyx_k_Cannot_calculate_delta_for_obje), 0, 1, 0, 0},
    {&__pyx_kp_u_Cannot_parse_dtsobj_into_Dateti, __pyx_k_Cannot_parse_dtsobj_into_Dateti, sizeof(__pyx_k_Cannot_parse_dtsobj_into_Dateti), 0, 1, 0, 0},
    {&__pyx_kp_u_Cannot_switch_timezone_naive_pd, __pyx_k_Cannot_switch_timezone_naive_pd, sizeof(__pyx_k_Cannot_switch_timezone_naive_pd), 0, 1, 0, 0},
    {&__pyx_kp_u_Comparison_failed, __pyx_k_Comparison_failed, sizeof(__pyx_k_Comparison_failed), 0, 1, 0, 0},
    {&__pyx_n_s_Config, __pyx_k_Config, sizeof(__pyx_k_Config), 0, 0, 1, 1},
    {&__pyx_kp_s_Config_None, __pyx_k_Config_None, sizeof(__pyx_k_Config_None), 0, 0, 1, 0},
    {&__pyx_n_u_D, __pyx_k_D, sizeof(__pyx_k_D), 0, 1, 0, 1},
    {&__pyx_n_s_DataFrame, __pyx_k_DataFrame, sizeof(__pyx_k_DataFrame), 0, 0, 1, 1},
    {&__pyx_n_s_DatetimeOutOfBoundsError, __pyx_k_DatetimeOutOfBoundsError, sizeof(__pyx_k_DatetimeOutOfBoundsError), 0, 0, 1, 1},
    {&__pyx_kp_u_Empty_microsecond_token_s, __pyx_k_Empty_microsecond_token_s, sizeof(__pyx_k_Empty_microsecond_token_s), 0, 1, 0, 0},
    {&__pyx_n_s_FN_NP_ABS, __pyx_k_FN_NP_ABS, sizeof(__pyx_k_FN_NP_ABS), 0, 0, 1, 1},
    {&__pyx_n_s_FN_NP_FULL, __pyx_k_FN_NP_FULL, sizeof(__pyx_k_FN_NP_FULL), 0, 0, 1, 1},
    {&__pyx_n_s_FN_NP_MIN, __pyx_k_FN_NP_MIN, sizeof(__pyx_k_FN_NP_MIN), 0, 0, 1, 1},
    {&__pyx_n_s_FN_NP_WHERE, __pyx_k_FN_NP_WHERE, sizeof(__pyx_k_FN_NP_WHERE), 0, 0, 1, 1},
    {&__pyx_n_s_FN_PD_DATERANGE, __pyx_k_FN_PD_DATERANGE, sizeof(__pyx_k_FN_PD_DATERANGE), 0, 0, 1, 1},
    {&__pyx_n_s_FN_PD_TODATETIME, __pyx_k_FN_PD_TODATETIME, sizeof(__pyx_k_FN_PD_TODATETIME), 0, 0, 1, 1},
    {&__pyx_n_s_FN_PD_TOTIMEDELTA, __pyx_k_FN_PD_TOTIMEDELTA, sizeof(__pyx_k_FN_PD_TOTIMEDELTA), 0, 0, 1, 1},
    {&__pyx_kp_u_Failed_to_allocate_memory_for_th, __pyx_k_Failed_to_allocate_memory_for_th, sizeof(__pyx_k_Failed_to_allocate_memory_for_th), 0, 1, 0, 0},
    {&__pyx_kp_u_Failed_to_parse_dtsobj, __pyx_k_Failed_to_parse_dtsobj, sizeof(__pyx_k_Failed_to_parse_dtsobj), 0, 1, 0, 0},
    {&__pyx_kp_u_Failed_to_parse_month_string, __pyx_k_Failed_to_parse_month_string, sizeof(__pyx_k_Failed_to_parse_month_string), 0, 1, 0, 0},
    {&__pyx_kp_u_Failed_to_parse_weekday_string, __pyx_k_Failed_to_parse_weekday_string, sizeof(__pyx_k_Failed_to_parse_weekday_string), 0, 1, 0, 0},
    {&__pyx_kp_u_H_M_S_f, __pyx_k_H_M_S_f, sizeof(__pyx_k_H_M_S_f), 0, 1, 0, 0},
    {&__pyx_n_s_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
    {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_k_Incompatible_checksums_0x_x_vs_0, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0), 0, 0, 1, 0},
    {&__pyx_n_s_Index, __pyx_k_Index, sizeof(__pyx_k_Index), 0, 0, 1, 1},
    {&__pyx_n_s_InvalidDatetimeObjectError, __pyx_k_InvalidDatetimeObjectError, sizeof(__pyx_k_InvalidDatetimeObjectError), 0, 0, 1, 1},
    {&__pyx_n_s_InvalidDeltaInclusiveError, __pyx_k_InvalidDeltaInclusiveError, sizeof(__pyx_k_InvalidDeltaInclusiveError), 0, 0, 1, 1},
    {&__pyx_n_s_InvalidDeltaUnitError, __pyx_k_InvalidDeltaUnitError, sizeof(__pyx_k_InvalidDeltaUnitError), 0, 0, 1, 1},
    {&__pyx_n_s_InvalidFrequencyError, __pyx_k_InvalidFrequencyError, sizeof(__pyx_k_InvalidFrequencyError), 0, 0, 1, 1},
    {&__pyx_n_s_InvalidMonthError, __pyx_k_InvalidMonthError, sizeof(__pyx_k_InvalidMonthError), 0, 0, 1, 1},
    {&__pyx_n_s_InvalidTimeUnitError, __pyx_k_InvalidTimeUnitError, sizeof(__pyx_k_InvalidTimeUnitError), 0, 0, 1, 1},
    {&__pyx_n_s_InvalidTimezoneError, __pyx_k_InvalidTimezoneError, sizeof(__pyx_k_InvalidTimezoneError), 0, 0, 1, 1},
    {&__pyx_n_s_InvalidWeekdayError, __pyx_k_InvalidWeekdayError, sizeof(__pyx_k_InvalidWeekdayError), 0, 0, 1, 1},
    {&__pyx_kp_u_Invalid_character_to_slice_to_fl, __pyx_k_Invalid_character_to_slice_to_fl, sizeof(__pyx_k_Invalid_character_to_slice_to_fl), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_character_to_slice_to_in, __pyx_k_Invalid_character_to_slice_to_in, sizeof(__pyx_k_Invalid_character_to_slice_to_in), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_delta_unit_input, __pyx_k_Invalid_delta_unit_input, sizeof(__pyx_k_Invalid_delta_unit_input), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_freq_input, __pyx_k_Invalid_freq_input, sizeof(__pyx_k_Invalid_freq_input), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_inclusive_input, __pyx_k_Invalid_inclusive_input, sizeof(__pyx_k_Invalid_inclusive_input), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_microsecond_token_s, __pyx_k_Invalid_microsecond_token_s, sizeof(__pyx_k_Invalid_microsecond_token_s), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_month_data_type, __pyx_k_Invalid_month_data_type, sizeof(__pyx_k_Invalid_month_data_type), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_month_value, __pyx_k_Invalid_month_value, sizeof(__pyx_k_Invalid_month_value), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_tz_timezone, __pyx_k_Invalid_tz_timezone, sizeof(__pyx_k_Invalid_tz_timezone), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_weekday_data_type, __pyx_k_Invalid_weekday_data_type, sizeof(__pyx_k_Invalid_weekday_data_type), 0, 1, 0, 0},
    {&__pyx_kp_u_Invalid_weekday_value, __pyx_k_Invalid_weekday_value, sizeof(__pyx_k_Invalid_weekday_value), 0, 1, 0, 0},
    {&__pyx_n_s_Iterator, __pyx_k_Iterator, sizeof(__pyx_k_Iterator), 0, 0, 1, 1},
    {&__pyx_n_s_Literal, __pyx_k_Literal, sizeof(__pyx_k_Literal), 0, 0, 1, 1},
    {&__pyx_kp_s_Literal_D_h_m_s_ms_us_ns, __pyx_k_Literal_D_h_m_s_ms_us_ns, sizeof(__pyx_k_Literal_D_h_m_s_ms_us_ns), 0, 0, 1, 0},
    {&__pyx_kp_s_Literal_Y_M_W_D_Bh_m_s_ms_us_ns, __pyx_k_Literal_Y_M_W_D_Bh_m_s_ms_us_ns, sizeof(__pyx_k_Literal_Y_M_W_D_Bh_m_s_ms_us_ns), 0, 0, 1, 0},
    {&__pyx_kp_s_Literal_Y_M_W_D_h_m_s_ms_us_ns, __pyx_k_Literal_Y_M_W_D_h_m_s_ms_us_ns, sizeof(__pyx_k_Literal_Y_M_W_D_h_m_s_ms_us_ns), 0, 0, 1, 0},
    {&__pyx_kp_s_Literal_left_right_both_neither, __pyx_k_Literal_left_right_both_neither, sizeof(__pyx_k_Literal_left_right_both_neither), 0, 0, 1, 0},
    {&__pyx_kp_s_Literal_one_both_neither, __pyx_k_Literal_one_both_neither, sizeof(__pyx_k_Literal_one_both_neither), 0, 0, 1, 0},
    {&__pyx_kp_s_Literal_s_ms_us_ns, __pyx_k_Literal_s_ms_us_ns, sizeof(__pyx_k_Literal_s_ms_us_ns), 0, 0, 1, 0},
    {&__pyx_kp_s_Literal_s_ms_us_ns_None, __pyx_k_Literal_s_ms_us_ns_None, sizeof(__pyx_k_Literal_s_ms_us_ns_None), 0, 0, 1, 0},
    {&__pyx_kp_s_Literal_shift_forward_shift_back, __pyx_k_Literal_shift_forward_shift_back, sizeof(__pyx_k_Literal_shift_forward_shift_back), 0, 0, 1, 0},
    {&__pyx_n_u_M, __pyx_k_M, sizeof(__pyx_k_M), 0, 1, 0, 1},
    {&__pyx_kp_u_M8_us, __pyx_k_M8_us, sizeof(__pyx_k_M8_us), 0, 1, 0, 0},
    {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
    {&__pyx_kp_u_Must_be_one_of_the_following_st, __pyx_k_Must_be_one_of_the_following_st, sizeof(__pyx_k_Must_be_one_of_the_following_st), 0, 1, 0, 0},
    {&__pyx_kp_u_Must_be_one_of_the_following_st_2, __pyx_k_Must_be_one_of_the_following_st_2, sizeof(__pyx_k_Must_be_one_of_the_following_st_2), 0, 1, 0, 0},
    {&__pyx_kp_u_Must_be_one_of_the_following_st_3, __pyx_k_Must_be_one_of_the_following_st_3, sizeof(__pyx_k_Must_be_one_of_the_following_st_3), 0, 1, 0, 0},
    {&__pyx_n_u_NaT, __pyx_k_NaT, sizeof(__pyx_k_NaT), 0, 1, 0, 1},
    {&__pyx_kp_u_None, __pyx_k_None, sizeof(__pyx_k_None), 0, 1, 0, 0},
    {&__pyx_n_s_OutOfBoundsDatetime, __pyx_k_OutOfBoundsDatetime, sizeof(__pyx_k_OutOfBoundsDatetime), 0, 0, 1, 1},
    {&__pyx_n_s_OverflowError, __pyx_k_OverflowError, sizeof(__pyx_k_OverflowError), 0, 0, 1, 1},
    {&__pyx_n_s_PddtError, __pyx_k_PddtError, sizeof(__pyx_k_PddtError), 0, 0, 1, 1},
    {&__pyx_n_s_PddtValueError, __pyx_k_PddtValueError, sizeof(__pyx_k_PddtValueError), 0, 0, 1, 1},
    {&__pyx_n_s_PickleError, __pyx_k_PickleError, sizeof(__pyx_k_PickleError), 0, 0, 1, 1},
    {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
    {&__pyx_n_s_Series, __pyx_k_Series, sizeof(__pyx_k_Series), 0, 0, 1, 1},
    {&__pyx_kp_s_Series_bool, __pyx_k_Series_bool, sizeof(__pyx_k_Series_bool), 0, 0, 1, 0},
    {&__pyx_kp_s_Series_int, __pyx_k_Series_int, sizeof(__pyx_k_Series_int), 0, 0, 1, 0},
    {&__pyx_kp_s_Series_str, __pyx_k_Series_str, sizeof(__pyx_k_Series_str), 0, 0, 1, 0},
    {&__pyx_kp_u_Substraction_failed, __pyx_k_Substraction_failed, sizeof(__pyx_k_Substraction_failed), 0, 1, 0, 0},
    {&__pyx_kp_u_The_format_string_for_datetime_i, __pyx_k_The_format_string_for_datetime_i, sizeof(__pyx_k_The_format_string_for_datetime_i), 0, 1, 0, 0},
    {&__pyx_kp_u_Time_zones_are_not_available_fro, __pyx_k_Time_zones_are_not_available_fro, sizeof(__pyx_k_Time_zones_are_not_available_fro), 0, 1, 0, 0},
    {&__pyx_n_s_TimedeltaIndex, __pyx_k_TimedeltaIndex, sizeof(__pyx_k_TimedeltaIndex), 0, 0, 1, 1},
    {&__pyx_n_s_Timestamp, __pyx_k_Timestamp, sizeof(__pyx_k_Timestamp), 0, 0, 1, 1},
    {&__pyx_kp_u_Token_s_does_not_represent_a_fin, __pyx_k_Token_s_does_not_represent_a_fin, sizeof(__pyx_k_Token_s_does_not_represent_a_fin), 0, 1, 0, 0},
    {&__pyx_n_s_UNIT_FREQUENCY, __pyx_k_UNIT_FREQUENCY, sizeof(__pyx_k_UNIT_FREQUENCY), 0, 0, 1, 1},
    {&__pyx_kp_u_Unable_to_adjust_time_unit_from, __pyx_k_Unable_to_adjust_time_unit_from, sizeof(__pyx_k_Unable_to_adjust_time_unit_from), 0, 1, 0, 0},
    {&__pyx_kp_u_Unsupported_dtobj_type, __pyx_k_Unsupported_dtobj_type, sizeof(__pyx_k_Unsupported_dtobj_type), 0, 1, 0, 0},
    {&__pyx_kp_u_Unsupported_dtsobj_type, __pyx_k_Unsupported_dtsobj_type, sizeof(__pyx_k_Unsupported_dtsobj_type), 0, 1, 0, 0},
    {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
    {&__pyx_kp_u_Value_out_of_bounds, __pyx_k_Value_out_of_bounds, sizeof(__pyx_k_Value_out_of_bounds), 0, 1, 0, 0},
    {&__pyx_kp_u_Value_out_of_bounds_for_datetime, __pyx_k_Value_out_of_bounds_for_datetime, sizeof(__pyx_k_Value_out_of_bounds_for_datetime), 0, 1, 0, 0},
    {&__pyx_n_u_W, __pyx_k_W, sizeof(__pyx_k_W), 0, 1, 0, 1},
    {&__pyx_n_u_Y, __pyx_k_Y, sizeof(__pyx_k_Y), 0, 1, 0, 1},
    {&__pyx_kp_u_Y_m_d, __pyx_k_Y_m_d, sizeof(__pyx_k_Y_m_d), 0, 1, 0, 0},
    {&__pyx_kp_u_Y_m_dT_H_M_S_f, __pyx_k_Y_m_dT_H_M_S_f, sizeof(__pyx_k_Y_m_dT_H_M_S_f), 0, 1, 0, 0},
    {&__pyx_kp_u_Y_m_dT_H_M_S_f_z, __pyx_k_Y_m_dT_H_M_S_f_z, sizeof(__pyx_k_Y_m_dT_H_M_S_f_z), 0, 1, 0, 0},
    {&__pyx_kp_u_Y_m_d_H_M_S_f, __pyx_k_Y_m_d_H_M_S_f, sizeof(__pyx_k_Y_m_d_H_M_S_f), 0, 1, 0, 0},
    {&__pyx_kp_u_Y_m_d_H_M_S_f_z, __pyx_k_Y_m_d_H_M_S_f_z, sizeof(__pyx_k_Y_m_d_H_M_S_f_z), 0, 1, 0, 0},
    {&__pyx_n_s__155, __pyx_k__155, sizeof(__pyx_k__155), 0, 0, 1, 1},
    {&__pyx_kp_u__17, __pyx_k__17, sizeof(__pyx_k__17), 0, 1, 0, 0},
    {&__pyx_kp_u__18, __pyx_k__18, sizeof(__pyx_k__18), 0, 1, 0, 0},
    {&__pyx_kp_u__19, __pyx_k__19, sizeof(__pyx_k__19), 0, 1, 0, 0},
    {&__pyx_kp_u__20, __pyx_k__20, sizeof(__pyx_k__20), 0, 1, 0, 0},
    {&__pyx_kp_u__21, __pyx_k__21, sizeof(__pyx_k__21), 0, 1, 0, 0},
    {&__pyx_kp_u__22, __pyx_k__22, sizeof(__pyx_k__22), 0, 1, 0, 0},
    {&__pyx_kp_u__23, __pyx_k__23, sizeof(__pyx_k__23), 0, 1, 0, 0},
    {&__pyx_kp_u__24, __pyx_k__24, sizeof(__pyx_k__24), 0, 1, 0, 0},
    {&__pyx_kp_u__25, __pyx_k__25, sizeof(__pyx_k__25), 0, 1, 0, 0},
    {&__pyx_n_s__27, __pyx_k__27, sizeof(__pyx_k__27), 0, 0, 1, 1},
    {&__pyx_kp_u__7, __pyx_k__7, sizeof(__pyx_k__7), 0, 1, 0, 0},
    {&__pyx_kp_u__8, __pyx_k__8, sizeof(__pyx_k__8), 0, 1, 0, 0},
    {&__pyx_n_s_abs, __pyx_k_abs, sizeof(__pyx_k_abs), 0, 0, 1, 1},
    {&__pyx_n_s_add_delta, __pyx_k_add_delta, sizeof(__pyx_k_add_delta), 0, 0, 1, 1},
    {&__pyx_n_s_all, __pyx_k_all, sizeof(__pyx_k_all), 0, 0, 1, 1},
    {&__pyx_n_s_ambiguous, __pyx_k_ambiguous, sizeof(__pyx_k_ambiguous), 0, 0, 1, 1},
    {&__pyx_kp_u_and, __pyx_k_and, sizeof(__pyx_k_and), 0, 1, 0, 0},
    {&__pyx_n_s_apply, __pyx_k_apply, sizeof(__pyx_k_apply), 0, 0, 1, 1},
    {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1},
    {&__pyx_n_s_arr, __pyx_k_arr, sizeof(__pyx_k_arr), 0, 0, 1, 1},
    {&__pyx_n_s_array, __pyx_k_array, sizeof(__pyx_k_array), 0, 0, 1, 1},
    {&__pyx_n_s_as_unit, __pyx_k_as_unit, sizeof(__pyx_k_as_unit), 0, 0, 1, 1},
    {&__pyx_n_s_astimezone, __pyx_k_astimezone, sizeof(__pyx_k_astimezone), 0, 0, 1, 1},
    {&__pyx_n_s_asyncio_coroutines, __pyx_k_asyncio_coroutines, sizeof(__pyx_k_asyncio_coroutines), 0, 0, 1, 1},
    {&__pyx_n_s_base_tz, __pyx_k_base_tz, sizeof(__pyx_k_base_tz), 0, 0, 1, 1},
    {&__pyx_n_s_bool, __pyx_k_bool, sizeof(__pyx_k_bool), 0, 0, 1, 1},
    {&__pyx_kp_s_bool_None, __pyx_k_bool_None, sizeof(__pyx_k_bool_None), 0, 0, 1, 0},
    {&__pyx_kp_s_bool_Series_bool_Literal_raise_i, __pyx_k_bool_Series_bool_Literal_raise_i, sizeof(__pyx_k_bool_Series_bool_Literal_raise_i), 0, 0, 1, 0},
    {&__pyx_n_u_both, __pyx_k_both, sizeof(__pyx_k_both), 0, 1, 0, 1},
    {&__pyx_n_s_cache, __pyx_k_cache, sizeof(__pyx_k_cache), 0, 0, 1, 1},
    {&__pyx_n_s_cal_delta, __pyx_k_cal_delta, sizeof(__pyx_k_cal_delta), 0, 0, 1, 1},
    {&__pyx_n_s_ceil, __pyx_k_ceil, sizeof(__pyx_k_ceil), 0, 0, 1, 1},
    {&__pyx_n_s_cfg, __pyx_k_cfg, sizeof(__pyx_k_cfg), 0, 0, 1, 1},
    {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1},
    {&__pyx_n_s_class_getitem, __pyx_k_class_getitem, sizeof(__pyx_k_class_getitem), 0, 0, 1, 1},
    {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
    {&__pyx_n_s_cls, __pyx_k_cls, sizeof(__pyx_k_cls), 0, 0, 1, 1},
    {&__pyx_n_s_contains, __pyx_k_contains, sizeof(__pyx_k_contains), 0, 0, 1, 1},
    {&__pyx_n_s_copy, __pyx_k_copy, sizeof(__pyx_k_copy), 0, 0, 1, 1},
    {&__pyx_n_s_copy_2, __pyx_k_copy_2, sizeof(__pyx_k_copy_2), 0, 0, 1, 1},
    {&__pyx_n_s_cydatetime, __pyx_k_cydatetime, sizeof(__pyx_k_cydatetime), 0, 0, 1, 1},
    {&__pyx_n_s_cydt, __pyx_k_cydt, sizeof(__pyx_k_cydt), 0, 0, 1, 1},
    {&__pyx_kp_s_cython_int, __pyx_k_cython_int, sizeof(__pyx_k_cython_int), 0, 0, 1, 0},
    {&__pyx_kp_s_cython_int_str_None, __pyx_k_cython_int_str_None, sizeof(__pyx_k_cython_int_str_None), 0, 0, 1, 0},
    {&__pyx_n_s_cytimes, __pyx_k_cytimes, sizeof(__pyx_k_cytimes), 0, 0, 1, 1},
    {&__pyx_n_s_cytimes_cyparser, __pyx_k_cytimes_cyparser, sizeof(__pyx_k_cytimes_cyparser), 0, 0, 1, 1},
    {&__pyx_n_s_cytimes_pddatetime, __pyx_k_cytimes_pddatetime, sizeof(__pyx_k_cytimes_pddatetime), 0, 0, 1, 1},
    {&__pyx_n_s_cytimes_pydatetime, __pyx_k_cytimes_pydatetime, sizeof(__pyx_k_cytimes_pydatetime), 0, 0, 1, 1},
    {&__pyx_n_u_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 1, 0, 1},
    {&__pyx_n_s_date, __pyx_k_date, sizeof(__pyx_k_date), 0, 0, 1, 1},
    {&__pyx_n_s_date_range, __pyx_k_date_range, sizeof(__pyx_k_date_range), 0, 0, 1, 1},
    {&__pyx_n_s_datetime, __pyx_k_datetime, sizeof(__pyx_k_datetime), 0, 0, 1, 1},
    {&__pyx_n_s_day, __pyx_k_day, sizeof(__pyx_k_day), 0, 0, 1, 1},
    {&__pyx_n_s_day1st, __pyx_k_day1st, sizeof(__pyx_k_day1st), 0, 0, 1, 1},
    {&__pyx_n_s_day_of_year, __pyx_k_day_of_year, sizeof(__pyx_k_day_of_year), 0, 0, 1, 1},
    {&__pyx_n_s_dayfirst, __pyx_k_dayfirst, sizeof(__pyx_k_dayfirst), 0, 0, 1, 1},
    {&__pyx_n_s_days, __pyx_k_days, sizeof(__pyx_k_days), 0, 0, 1, 1},
    {&__pyx_n_s_days_in_month, __pyx_k_days_in_month, sizeof(__pyx_k_days_in_month), 0, 0, 1, 1},
    {&__pyx_n_s_deepcopy, __pyx_k_deepcopy, sizeof(__pyx_k_deepcopy), 0, 0, 1, 1},
    {&__pyx_n_s_default, __pyx_k_default, sizeof(__pyx_k_default), 0, 0, 1, 1},
    {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1},
    {&__pyx_n_s_dict_2, __pyx_k_dict_2, sizeof(__pyx_k_dict_2), 0, 0, 1, 1},
    {&__pyx_kp_u_disable, __pyx_k_disable, sizeof(__pyx_k_disable), 0, 1, 0, 0},
    {&__pyx_n_s_dt, __pyx_k_dt, sizeof(__pyx_k_dt), 0, 0, 1, 1},
    {&__pyx_n_s_dtobj, __pyx_k_dtobj, sizeof(__pyx_k_dtobj), 0, 0, 1, 1},
    {&__pyx_n_s_dtsobj, __pyx_k_dtsobj, sizeof(__pyx_k_dtsobj), 0, 0, 1, 1},
    {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1},
    {&__pyx_kp_u_enable, __pyx_k_enable, sizeof(__pyx_k_enable), 0, 1, 0, 0},
    {&__pyx_n_s_end, __pyx_k_end, sizeof(__pyx_k_end), 0, 0, 1, 1},
    {&__pyx_n_s_equals, __pyx_k_equals, sizeof(__pyx_k_equals), 0, 0, 1, 1},
    {&__pyx_n_s_err, __pyx_k_err, sizeof(__pyx_k_err), 0, 0, 1, 1},
    {&__pyx_n_s_errors, __pyx_k_errors, sizeof(__pyx_k_errors), 0, 0, 1, 1},
    {&__pyx_n_s_exact, __pyx_k_exact, sizeof(__pyx_k_exact), 0, 0, 1, 1},
    {&__pyx_n_s_floor, __pyx_k_floor, sizeof(__pyx_k_floor), 0, 0, 1, 1},
    {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1},
    {&__pyx_n_s_freq, __pyx_k_freq, sizeof(__pyx_k_freq), 0, 0, 1, 1},
    {&__pyx_n_s_freq_ceil, __pyx_k_freq_ceil, sizeof(__pyx_k_freq_ceil), 0, 0, 1, 1},
    {&__pyx_n_s_freq_floor, __pyx_k_freq_floor, sizeof(__pyx_k_freq_floor), 0, 0, 1, 1},
    {&__pyx_n_s_freq_round, __pyx_k_freq_round, sizeof(__pyx_k_freq_round), 0, 0, 1, 1},
    {&__pyx_n_s_from_datetime, __pyx_k_from_datetime, sizeof(__pyx_k_from_datetime), 0, 0, 1, 1},
    {&__pyx_n_s_from_dtobj, __pyx_k_from_dtobj, sizeof(__pyx_k_from_dtobj), 0, 0, 1, 1},
    {&__pyx_n_s_from_range, __pyx_k_from_range, sizeof(__pyx_k_from_range), 0, 0, 1, 1},
    {&__pyx_n_s_full, __pyx_k_full, sizeof(__pyx_k_full), 0, 0, 1, 1},
    {&__pyx_kp_u_gc, __pyx_k_gc, sizeof(__pyx_k_gc), 0, 1, 0, 0},
    {&__pyx_n_s_getitem, __pyx_k_getitem, sizeof(__pyx_k_getitem), 0, 0, 1, 1},
    {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1},
    {&__pyx_n_u_h, __pyx_k_h, sizeof(__pyx_k_h), 0, 1, 0, 1},
    {&__pyx_n_s_hour, __pyx_k_hour, sizeof(__pyx_k_hour), 0, 0, 1, 1},
    {&__pyx_n_s_hours, __pyx_k_hours, sizeof(__pyx_k_hours), 0, 0, 1, 1},
    {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
    {&__pyx_n_s_inclusive, __pyx_k_inclusive, sizeof(__pyx_k_inclusive), 0, 0, 1, 1},
    {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1},
    {&__pyx_n_u_infer, __pyx_k_infer, sizeof(__pyx_k_infer), 0, 1, 0, 1},
    {&__pyx_n_s_initializing, __pyx_k_initializing, sizeof(__pyx_k_initializing), 0, 0, 1, 1},
    {&__pyx_n_s_int, __pyx_k_int, sizeof(__pyx_k_int), 0, 0, 1, 1},
    {&__pyx_kp_s_int_str, __pyx_k_int_str, sizeof(__pyx_k_int_str), 0, 0, 1, 0},
    {&__pyx_kp_s_int_str_None, __pyx_k_int_str_None, sizeof(__pyx_k_int_str_None), 0, 0, 1, 0},
    {&__pyx_n_s_is_coroutine, __pyx_k_is_coroutine, sizeof(__pyx_k_is_coroutine), 0, 0, 1, 1},
    {&__pyx_n_s_is_day, __pyx_k_is_day, sizeof(__pyx_k_is_day), 0, 0, 1, 1},
    {&__pyx_n_s_is_leap_year, __pyx_k_is_leap_year, sizeof(__pyx_k_is_leap_year), 0, 0, 1, 1},
    {&__pyx_n_s_is_leapyear, __pyx_k_is_leapyear, sizeof(__pyx_k_is_leapyear), 0, 0, 1, 1},
    {&__pyx_n_s_is_month, __pyx_k_is_month, sizeof(__pyx_k_is_month), 0, 0, 1, 1},
    {&__pyx_n_s_is_month_1st, __pyx_k_is_month_1st, sizeof(__pyx_k_is_month_1st), 0, 0, 1, 1},
    {&__pyx_n_s_is_month_end, __pyx_k_is_month_end, sizeof(__pyx_k_is_month_end), 0, 0, 1, 1},
    {&__pyx_n_s_is_month_lst, __pyx_k_is_month_lst, sizeof(__pyx_k_is_month_lst), 0, 0, 1, 1},
    {&__pyx_n_s_is_month_start, __pyx_k_is_month_start, sizeof(__pyx_k_is_month_start), 0, 0, 1, 1},
    {&__pyx_n_s_is_quarter, __pyx_k_is_quarter, sizeof(__pyx_k_is_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_is_quarter_1st, __pyx_k_is_quarter_1st, sizeof(__pyx_k_is_quarter_1st), 0, 0, 1, 1},
    {&__pyx_n_s_is_quarter_end, __pyx_k_is_quarter_end, sizeof(__pyx_k_is_quarter_end), 0, 0, 1, 1},
    {&__pyx_n_s_is_quarter_lst, __pyx_k_is_quarter_lst, sizeof(__pyx_k_is_quarter_lst), 0, 0, 1, 1},
    {&__pyx_n_s_is_quarter_start, __pyx_k_is_quarter_start, sizeof(__pyx_k_is_quarter_start), 0, 0, 1, 1},
    {&__pyx_n_s_is_time_end, __pyx_k_is_time_end, sizeof(__pyx_k_is_time_end), 0, 0, 1, 1},
    {&__pyx_n_s_is_time_start, __pyx_k_is_time_start, sizeof(__pyx_k_is_time_start), 0, 0, 1, 1},
    {&__pyx_n_s_is_weekday, __pyx_k_is_weekday, sizeof(__pyx_k_is_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_is_year, __pyx_k_is_year, sizeof(__pyx_k_is_year), 0, 0, 1, 1},
    {&__pyx_n_s_is_year_1st, __pyx_k_is_year_1st, sizeof(__pyx_k_is_year_1st), 0, 0, 1, 1},
    {&__pyx_n_s_is_year_end, __pyx_k_is_year_end, sizeof(__pyx_k_is_year_end), 0, 0, 1, 1},
    {&__pyx_n_s_is_year_lst, __pyx_k_is_year_lst, sizeof(__pyx_k_is_year_lst), 0, 0, 1, 1},
    {&__pyx_n_s_is_year_start, __pyx_k_is_year_start, sizeof(__pyx_k_is_year_start), 0, 0, 1, 1},
    {&__pyx_kp_u_isenabled, __pyx_k_isenabled, sizeof(__pyx_k_isenabled), 0, 1, 0, 0},
    {&__pyx_n_s_isocalendar, __pyx_k_isocalendar, sizeof(__pyx_k_isocalendar), 0, 0, 1, 1},
    {&__pyx_n_s_iter, __pyx_k_iter, sizeof(__pyx_k_iter), 0, 0, 1, 1},
    {&__pyx_n_s_kwargs, __pyx_k_kwargs, sizeof(__pyx_k_kwargs), 0, 0, 1, 1},
    {&__pyx_n_s_leap_bt_years, __pyx_k_leap_bt_years, sizeof(__pyx_k_leap_bt_years), 0, 0, 1, 1},
    {&__pyx_n_s_lower, __pyx_k_lower, sizeof(__pyx_k_lower), 0, 0, 1, 1},
    {&__pyx_n_u_m, __pyx_k_m, sizeof(__pyx_k_m), 0, 1, 0, 1},
    {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
    {&__pyx_n_s_microsecond, __pyx_k_microsecond, sizeof(__pyx_k_microsecond), 0, 0, 1, 1},
    {&__pyx_n_s_microseconds, __pyx_k_microseconds, sizeof(__pyx_k_microseconds), 0, 0, 1, 1},
    {&__pyx_n_s_millisecond, __pyx_k_millisecond, sizeof(__pyx_k_millisecond), 0, 0, 1, 1},
    {&__pyx_n_s_milliseconds, __pyx_k_milliseconds, sizeof(__pyx_k_milliseconds), 0, 0, 1, 1},
    {&__pyx_n_u_min, __pyx_k_min, sizeof(__pyx_k_min), 0, 1, 0, 1},
    {&__pyx_n_s_minimum, __pyx_k_minimum, sizeof(__pyx_k_minimum), 0, 0, 1, 1},
    {&__pyx_n_s_minute, __pyx_k_minute, sizeof(__pyx_k_minute), 0, 0, 1, 1},
    {&__pyx_n_s_minutes, __pyx_k_minutes, sizeof(__pyx_k_minutes), 0, 0, 1, 1},
    {&__pyx_n_s_month, __pyx_k_month, sizeof(__pyx_k_month), 0, 0, 1, 1},
    {&__pyx_n_s_months, __pyx_k_months, sizeof(__pyx_k_months), 0, 0, 1, 1},
    {&__pyx_n_u_ms, __pyx_k_ms, sizeof(__pyx_k_ms), 0, 1, 0, 1},
    {&__pyx_kp_u_must_between_0_Monday_6_Sunday, __pyx_k_must_between_0_Monday_6_Sunday, sizeof(__pyx_k_must_between_0_Monday_6_Sunday), 0, 1, 0, 0},
    {&__pyx_kp_u_must_between_1_Jan_12_Dec, __pyx_k_must_between_1_Jan_12_Dec, sizeof(__pyx_k_must_between_1_Jan_12_Dec), 0, 1, 0, 0},
    {&__pyx_n_s_naive, __pyx_k_naive, sizeof(__pyx_k_naive), 0, 0, 1, 1},
    {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
    {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1},
    {&__pyx_n_s_nanosecond, __pyx_k_nanosecond, sizeof(__pyx_k_nanosecond), 0, 0, 1, 1},
    {&__pyx_n_u_neither, __pyx_k_neither, sizeof(__pyx_k_neither), 0, 1, 0, 1},
    {&__pyx_n_s_new, __pyx_k_new, sizeof(__pyx_k_new), 0, 0, 1, 1},
    {&__pyx_n_s_nonexistent, __pyx_k_nonexistent, sizeof(__pyx_k_nonexistent), 0, 0, 1, 1},
    {&__pyx_n_s_normalize, __pyx_k_normalize, sizeof(__pyx_k_normalize), 0, 0, 1, 1},
    {&__pyx_n_s_now, __pyx_k_now, sizeof(__pyx_k_now), 0, 0, 1, 1},
    {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
    {&__pyx_kp_s_np_ndarray, __pyx_k_np_ndarray, sizeof(__pyx_k_np_ndarray), 0, 0, 1, 0},
    {&__pyx_n_u_ns, __pyx_k_ns, sizeof(__pyx_k_ns), 0, 1, 0, 1},
    {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
    {&__pyx_kp_u_numpy__core_multiarray_failed_to, __pyx_k_numpy__core_multiarray_failed_to, sizeof(__pyx_k_numpy__core_multiarray_failed_to), 0, 1, 0, 0},
    {&__pyx_kp_u_numpy__core_umath_failed_to_impo, __pyx_k_numpy__core_umath_failed_to_impo, sizeof(__pyx_k_numpy__core_umath_failed_to_impo), 0, 1, 0, 0},
    {&__pyx_n_s_o, __pyx_k_o, sizeof(__pyx_k_o), 0, 0, 1, 1},
    {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1},
    {&__pyx_kp_s_object_None, __pyx_k_object_None, sizeof(__pyx_k_object_None), 0, 0, 1, 0},
    {&__pyx_n_s_offset, __pyx_k_offset, sizeof(__pyx_k_offset), 0, 0, 1, 1},
    {&__pyx_n_u_one, __pyx_k_one, sizeof(__pyx_k_one), 0, 1, 0, 1},
    {&__pyx_n_s_ordinal, __pyx_k_ordinal, sizeof(__pyx_k_ordinal), 0, 0, 1, 1},
    {&__pyx_n_s_other, __pyx_k_other, sizeof(__pyx_k_other), 0, 0, 1, 1},
    {&__pyx_n_s_pandas, __pyx_k_pandas, sizeof(__pyx_k_pandas), 0, 0, 1, 1},
    {&__pyx_n_s_pandas_errors, __pyx_k_pandas_errors, sizeof(__pyx_k_pandas_errors), 0, 0, 1, 1},
    {&__pyx_n_s_pddt, __pyx_k_pddt, sizeof(__pyx_k_pddt), 0, 0, 1, 1},
    {&__pyx_n_u_pddt, __pyx_k_pddt, sizeof(__pyx_k_pddt), 0, 1, 0, 1},
    {&__pyx_kp_u_pddt_Invalid_timezone, __pyx_k_pddt_Invalid_timezone, sizeof(__pyx_k_pddt_Invalid_timezone), 0, 1, 0, 0},
    {&__pyx_kp_u_pddt_Unsupported_dtobj_type, __pyx_k_pddt_Unsupported_dtobj_type, sizeof(__pyx_k_pddt_Unsupported_dtobj_type), 0, 1, 0, 0},
    {&__pyx_n_s_pddt___array, __pyx_k_pddt___array, sizeof(__pyx_k_pddt___array), 0, 0, 1, 1},
    {&__pyx_n_s_pddt___copy, __pyx_k_pddt___copy, sizeof(__pyx_k_pddt___copy), 0, 0, 1, 1},
    {&__pyx_n_s_pddt___deepcopy, __pyx_k_pddt___deepcopy, sizeof(__pyx_k_pddt___deepcopy), 0, 0, 1, 1},
    {&__pyx_n_s_pddt___reduce_cython, __pyx_k_pddt___reduce_cython, sizeof(__pyx_k_pddt___reduce_cython), 0, 0, 1, 1},
    {&__pyx_n_s_pddt___setstate_cython, __pyx_k_pddt___setstate_cython, sizeof(__pyx_k_pddt___setstate_cython), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_add_delta, __pyx_k_pddt_add_delta, sizeof(__pyx_k_pddt_add_delta), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_as_unit, __pyx_k_pddt_as_unit, sizeof(__pyx_k_pddt_as_unit), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_astimezone, __pyx_k_pddt_astimezone, sizeof(__pyx_k_pddt_astimezone), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_cal_delta, __pyx_k_pddt_cal_delta, sizeof(__pyx_k_pddt_cal_delta), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_copy, __pyx_k_pddt_copy, sizeof(__pyx_k_pddt_copy), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_equals, __pyx_k_pddt_equals, sizeof(__pyx_k_pddt_equals), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_freq_ceil, __pyx_k_pddt_freq_ceil, sizeof(__pyx_k_pddt_freq_ceil), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_freq_floor, __pyx_k_pddt_freq_floor, sizeof(__pyx_k_pddt_freq_floor), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_freq_round, __pyx_k_pddt_freq_round, sizeof(__pyx_k_pddt_freq_round), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_from_datetime, __pyx_k_pddt_from_datetime, sizeof(__pyx_k_pddt_from_datetime), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_from_dtobj, __pyx_k_pddt_from_dtobj, sizeof(__pyx_k_pddt_from_dtobj), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_from_range, __pyx_k_pddt_from_range, sizeof(__pyx_k_pddt_from_range), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_day, __pyx_k_pddt_is_day, sizeof(__pyx_k_pddt_is_day), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_leapyear, __pyx_k_pddt_is_leapyear, sizeof(__pyx_k_pddt_is_leapyear), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_month, __pyx_k_pddt_is_month, sizeof(__pyx_k_pddt_is_month), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_month_1st, __pyx_k_pddt_is_month_1st, sizeof(__pyx_k_pddt_is_month_1st), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_month_lst, __pyx_k_pddt_is_month_lst, sizeof(__pyx_k_pddt_is_month_lst), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_quarter, __pyx_k_pddt_is_quarter, sizeof(__pyx_k_pddt_is_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_quarter_1st, __pyx_k_pddt_is_quarter_1st, sizeof(__pyx_k_pddt_is_quarter_1st), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_quarter_lst, __pyx_k_pddt_is_quarter_lst, sizeof(__pyx_k_pddt_is_quarter_lst), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_time_end, __pyx_k_pddt_is_time_end, sizeof(__pyx_k_pddt_is_time_end), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_time_start, __pyx_k_pddt_is_time_start, sizeof(__pyx_k_pddt_is_time_start), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_weekday, __pyx_k_pddt_is_weekday, sizeof(__pyx_k_pddt_is_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_year, __pyx_k_pddt_is_year, sizeof(__pyx_k_pddt_is_year), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_year_1st, __pyx_k_pddt_is_year_1st, sizeof(__pyx_k_pddt_is_year_1st), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_is_year_lst, __pyx_k_pddt_is_year_lst, sizeof(__pyx_k_pddt_is_year_lst), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_leap_bt_years, __pyx_k_pddt_leap_bt_years, sizeof(__pyx_k_pddt_leap_bt_years), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_now, __pyx_k_pddt_now, sizeof(__pyx_k_pddt_now), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_replace, __pyx_k_pddt_replace, sizeof(__pyx_k_pddt_replace), 0, 0, 1, 1},
    {&__pyx_kp_u_pddt_s, __pyx_k_pddt_s, sizeof(__pyx_k_pddt_s), 0, 1, 0, 0},
    {&__pyx_n_s_pddt_strftime, __pyx_k_pddt_strftime, sizeof(__pyx_k_pddt_strftime), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_sub_delta, __pyx_k_pddt_sub_delta, sizeof(__pyx_k_pddt_sub_delta), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_curr_month, __pyx_k_pddt_to_curr_month, sizeof(__pyx_k_pddt_to_curr_month), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_curr_quarter, __pyx_k_pddt_to_curr_quarter, sizeof(__pyx_k_pddt_to_curr_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_curr_weekday, __pyx_k_pddt_to_curr_weekday, sizeof(__pyx_k_pddt_to_curr_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_curr_year, __pyx_k_pddt_to_curr_year, sizeof(__pyx_k_pddt_to_curr_year), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_day, __pyx_k_pddt_to_day, sizeof(__pyx_k_pddt_to_day), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_friday, __pyx_k_pddt_to_friday, sizeof(__pyx_k_pddt_to_friday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_monday, __pyx_k_pddt_to_monday, sizeof(__pyx_k_pddt_to_monday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_month, __pyx_k_pddt_to_month, sizeof(__pyx_k_pddt_to_month), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_month_1st, __pyx_k_pddt_to_month_1st, sizeof(__pyx_k_pddt_to_month_1st), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_month_lst, __pyx_k_pddt_to_month_lst, sizeof(__pyx_k_pddt_to_month_lst), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_next_month, __pyx_k_pddt_to_next_month, sizeof(__pyx_k_pddt_to_next_month), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_next_quarter, __pyx_k_pddt_to_next_quarter, sizeof(__pyx_k_pddt_to_next_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_next_weekday, __pyx_k_pddt_to_next_weekday, sizeof(__pyx_k_pddt_to_next_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_next_year, __pyx_k_pddt_to_next_year, sizeof(__pyx_k_pddt_to_next_year), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_prev_month, __pyx_k_pddt_to_prev_month, sizeof(__pyx_k_pddt_to_prev_month), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_prev_quarter, __pyx_k_pddt_to_prev_quarter, sizeof(__pyx_k_pddt_to_prev_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_prev_weekday, __pyx_k_pddt_to_prev_weekday, sizeof(__pyx_k_pddt_to_prev_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_prev_year, __pyx_k_pddt_to_prev_year, sizeof(__pyx_k_pddt_to_prev_year), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_quarter, __pyx_k_pddt_to_quarter, sizeof(__pyx_k_pddt_to_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_quarter_1st, __pyx_k_pddt_to_quarter_1st, sizeof(__pyx_k_pddt_to_quarter_1st), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_quarter_lst, __pyx_k_pddt_to_quarter_lst, sizeof(__pyx_k_pddt_to_quarter_lst), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_saturday, __pyx_k_pddt_to_saturday, sizeof(__pyx_k_pddt_to_saturday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_sunday, __pyx_k_pddt_to_sunday, sizeof(__pyx_k_pddt_to_sunday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_thursday, __pyx_k_pddt_to_thursday, sizeof(__pyx_k_pddt_to_thursday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_time, __pyx_k_pddt_to_time, sizeof(__pyx_k_pddt_to_time), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_time_end, __pyx_k_pddt_to_time_end, sizeof(__pyx_k_pddt_to_time_end), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_time_start, __pyx_k_pddt_to_time_start, sizeof(__pyx_k_pddt_to_time_start), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_tomorrow, __pyx_k_pddt_to_tomorrow, sizeof(__pyx_k_pddt_to_tomorrow), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_tuesday, __pyx_k_pddt_to_tuesday, sizeof(__pyx_k_pddt_to_tuesday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_wednesday, __pyx_k_pddt_to_wednesday, sizeof(__pyx_k_pddt_to_wednesday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_weekday, __pyx_k_pddt_to_weekday, sizeof(__pyx_k_pddt_to_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_year, __pyx_k_pddt_to_year, sizeof(__pyx_k_pddt_to_year), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_year_1st, __pyx_k_pddt_to_year_1st, sizeof(__pyx_k_pddt_to_year_1st), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_year_lst, __pyx_k_pddt_to_year_lst, sizeof(__pyx_k_pddt_to_year_lst), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_to_yesterday, __pyx_k_pddt_to_yesterday, sizeof(__pyx_k_pddt_to_yesterday), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_tz_convert, __pyx_k_pddt_tz_convert, sizeof(__pyx_k_pddt_tz_convert), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_tz_localize, __pyx_k_pddt_tz_localize, sizeof(__pyx_k_pddt_tz_localize), 0, 0, 1, 1},
    {&__pyx_n_s_pddt_tz_switch, __pyx_k_pddt_tz_switch, sizeof(__pyx_k_pddt_tz_switch), 0, 0, 1, 1},
    {&__pyx_n_s_periods, __pyx_k_periods, sizeof(__pyx_k_periods), 0, 0, 1, 1},
    {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
    {&__pyx_n_s_pydt, __pyx_k_pydt, sizeof(__pyx_k_pydt), 0, 0, 1, 1},
    {&__pyx_kp_u_pydt_Invalid_timezone, __pyx_k_pydt_Invalid_timezone, sizeof(__pyx_k_pydt_Invalid_timezone), 0, 1, 0, 0},
    {&__pyx_n_s_pyx_PickleError, __pyx_k_pyx_PickleError, sizeof(__pyx_k_pyx_PickleError), 0, 0, 1, 1},
    {&__pyx_n_s_pyx_capi, __pyx_k_pyx_capi, sizeof(__pyx_k_pyx_capi), 0, 0, 1, 1},
    {&__pyx_n_s_pyx_checksum, __pyx_k_pyx_checksum, sizeof(__pyx_k_pyx_checksum), 0, 0, 1, 1},
    {&__pyx_n_s_pyx_result, __pyx_k_pyx_result, sizeof(__pyx_k_pyx_result), 0, 0, 1, 1},
    {&__pyx_n_s_pyx_state, __pyx_k_pyx_state, sizeof(__pyx_k_pyx_state), 0, 0, 1, 1},
    {&__pyx_n_s_pyx_type, __pyx_k_pyx_type, sizeof(__pyx_k_pyx_type), 0, 0, 1, 1},
    {&__pyx_n_s_pyx_unpickle_pddt, __pyx_k_pyx_unpickle_pddt, sizeof(__pyx_k_pyx_unpickle_pddt), 0, 0, 1, 1},
    {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
    {&__pyx_n_s_quarter, __pyx_k_quarter, sizeof(__pyx_k_quarter), 0, 0, 1, 1},
    {&__pyx_n_u_raise, __pyx_k_raise, sizeof(__pyx_k_raise), 0, 1, 0, 1},
    {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
    {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
    {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
    {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
    {&__pyx_n_s_replace, __pyx_k_replace, sizeof(__pyx_k_replace), 0, 0, 1, 1},
    {&__pyx_n_s_replace_locals_lambda, __pyx_k_replace_locals_lambda, sizeof(__pyx_k_replace_locals_lambda), 0, 0, 1, 1},
    {&__pyx_n_s_repr, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1},
    {&__pyx_n_s_return, __pyx_k_return, sizeof(__pyx_k_return), 0, 0, 1, 1},
    {&__pyx_n_s_round, __pyx_k_round, sizeof(__pyx_k_round), 0, 0, 1, 1},
    {&__pyx_n_u_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 1, 0, 1},
    {&__pyx_kp_u_s_Argument_ambiguous_NaT_is_not, __pyx_k_s_Argument_ambiguous_NaT_is_not, sizeof(__pyx_k_s_Argument_ambiguous_NaT_is_not), 0, 1, 0, 0},
    {&__pyx_kp_u_s_Argument_nonexistent_NaT_is_n, __pyx_k_s_Argument_nonexistent_NaT_is_n, sizeof(__pyx_k_s_Argument_nonexistent_NaT_is_n), 0, 1, 0, 0},
    {&__pyx_n_s_second, __pyx_k_second, sizeof(__pyx_k_second), 0, 0, 1, 1},
    {&__pyx_n_s_seconds, __pyx_k_seconds, sizeof(__pyx_k_seconds), 0, 0, 1, 1},
    {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1},
    {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1},
    {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
    {&__pyx_n_u_shift_backward, __pyx_k_shift_backward, sizeof(__pyx_k_shift_backward), 0, 1, 0, 1},
    {&__pyx_n_u_shift_forward, __pyx_k_shift_forward, sizeof(__pyx_k_shift_forward), 0, 1, 0, 1},
    {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1},
    {&__pyx_n_s_spec, __pyx_k_spec, sizeof(__pyx_k_spec), 0, 0, 1, 1},
    {&__pyx_kp_s_src_cytimes_pddatetime_py, __pyx_k_src_cytimes_pddatetime_py, sizeof(__pyx_k_src_cytimes_pddatetime_py), 0, 0, 1, 0},
    {&__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1},
    {&__pyx_n_s_startingMonth, __pyx_k_startingMonth, sizeof(__pyx_k_startingMonth), 0, 0, 1, 1},
    {&__pyx_n_s_state, __pyx_k_state, sizeof(__pyx_k_state), 0, 0, 1, 1},
    {&__pyx_n_s_str, __pyx_k_str, sizeof(__pyx_k_str), 0, 0, 1, 1},
    {&__pyx_kp_s_str_None, __pyx_k_str_None, sizeof(__pyx_k_str_None), 0, 0, 1, 0},
    {&__pyx_kp_s_str_datetime_tzinfo_None, __pyx_k_str_datetime_tzinfo_None, sizeof(__pyx_k_str_datetime_tzinfo_None), 0, 0, 1, 0},
    {&__pyx_n_s_strftime, __pyx_k_strftime, sizeof(__pyx_k_strftime), 0, 0, 1, 1},
    {&__pyx_kp_s_stringsource, __pyx_k_stringsource, sizeof(__pyx_k_stringsource), 0, 0, 1, 0},
    {&__pyx_n_s_sub_delta, __pyx_k_sub_delta, sizeof(__pyx_k_sub_delta), 0, 0, 1, 1},
    {&__pyx_n_s_targ_tz, __pyx_k_targ_tz, sizeof(__pyx_k_targ_tz), 0, 0, 1, 1},
    {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
    {&__pyx_n_s_time, __pyx_k_time, sizeof(__pyx_k_time), 0, 0, 1, 1},
    {&__pyx_n_s_timetz, __pyx_k_timetz, sizeof(__pyx_k_timetz), 0, 0, 1, 1},
    {&__pyx_kp_u_to, __pyx_k_to, sizeof(__pyx_k_to), 0, 1, 0, 0},
    {&__pyx_n_s_to_curr_month, __pyx_k_to_curr_month, sizeof(__pyx_k_to_curr_month), 0, 0, 1, 1},
    {&__pyx_n_s_to_curr_quarter, __pyx_k_to_curr_quarter, sizeof(__pyx_k_to_curr_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_to_curr_weekday, __pyx_k_to_curr_weekday, sizeof(__pyx_k_to_curr_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_to_curr_year, __pyx_k_to_curr_year, sizeof(__pyx_k_to_curr_year), 0, 0, 1, 1},
    {&__pyx_n_s_to_datetime, __pyx_k_to_datetime, sizeof(__pyx_k_to_datetime), 0, 0, 1, 1},
    {&__pyx_n_s_to_day, __pyx_k_to_day, sizeof(__pyx_k_to_day), 0, 0, 1, 1},
    {&__pyx_n_s_to_friday, __pyx_k_to_friday, sizeof(__pyx_k_to_friday), 0, 0, 1, 1},
    {&__pyx_n_s_to_monday, __pyx_k_to_monday, sizeof(__pyx_k_to_monday), 0, 0, 1, 1},
    {&__pyx_n_s_to_month, __pyx_k_to_month, sizeof(__pyx_k_to_month), 0, 0, 1, 1},
    {&__pyx_n_s_to_month_1st, __pyx_k_to_month_1st, sizeof(__pyx_k_to_month_1st), 0, 0, 1, 1},
    {&__pyx_n_s_to_month_lst, __pyx_k_to_month_lst, sizeof(__pyx_k_to_month_lst), 0, 0, 1, 1},
    {&__pyx_n_s_to_next_month, __pyx_k_to_next_month, sizeof(__pyx_k_to_next_month), 0, 0, 1, 1},
    {&__pyx_n_s_to_next_quarter, __pyx_k_to_next_quarter, sizeof(__pyx_k_to_next_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_to_next_weekday, __pyx_k_to_next_weekday, sizeof(__pyx_k_to_next_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_to_next_year, __pyx_k_to_next_year, sizeof(__pyx_k_to_next_year), 0, 0, 1, 1},
    {&__pyx_n_s_to_prev_month, __pyx_k_to_prev_month, sizeof(__pyx_k_to_prev_month), 0, 0, 1, 1},
    {&__pyx_n_s_to_prev_quarter, __pyx_k_to_prev_quarter, sizeof(__pyx_k_to_prev_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_to_prev_weekday, __pyx_k_to_prev_weekday, sizeof(__pyx_k_to_prev_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_to_prev_year, __pyx_k_to_prev_year, sizeof(__pyx_k_to_prev_year), 0, 0, 1, 1},
    {&__pyx_n_s_to_pydatetime, __pyx_k_to_pydatetime, sizeof(__pyx_k_to_pydatetime), 0, 0, 1, 1},
    {&__pyx_n_s_to_quarter, __pyx_k_to_quarter, sizeof(__pyx_k_to_quarter), 0, 0, 1, 1},
    {&__pyx_n_s_to_quarter_1st, __pyx_k_to_quarter_1st, sizeof(__pyx_k_to_quarter_1st), 0, 0, 1, 1},
    {&__pyx_n_s_to_quarter_lst, __pyx_k_to_quarter_lst, sizeof(__pyx_k_to_quarter_lst), 0, 0, 1, 1},
    {&__pyx_n_s_to_saturday, __pyx_k_to_saturday, sizeof(__pyx_k_to_saturday), 0, 0, 1, 1},
    {&__pyx_n_s_to_sunday, __pyx_k_to_sunday, sizeof(__pyx_k_to_sunday), 0, 0, 1, 1},
    {&__pyx_n_s_to_thursday, __pyx_k_to_thursday, sizeof(__pyx_k_to_thursday), 0, 0, 1, 1},
    {&__pyx_n_s_to_time, __pyx_k_to_time, sizeof(__pyx_k_to_time), 0, 0, 1, 1},
    {&__pyx_n_s_to_time_end, __pyx_k_to_time_end, sizeof(__pyx_k_to_time_end), 0, 0, 1, 1},
    {&__pyx_n_s_to_time_start, __pyx_k_to_time_start, sizeof(__pyx_k_to_time_start), 0, 0, 1, 1},
    {&__pyx_n_s_to_timedelta, __pyx_k_to_timedelta, sizeof(__pyx_k_to_timedelta), 0, 0, 1, 1},
    {&__pyx_n_s_to_tomorrow, __pyx_k_to_tomorrow, sizeof(__pyx_k_to_tomorrow), 0, 0, 1, 1},
    {&__pyx_n_s_to_tuesday, __pyx_k_to_tuesday, sizeof(__pyx_k_to_tuesday), 0, 0, 1, 1},
    {&__pyx_n_s_to_wednesday, __pyx_k_to_wednesday, sizeof(__pyx_k_to_wednesday), 0, 0, 1, 1},
    {&__pyx_n_s_to_weekday, __pyx_k_to_weekday, sizeof(__pyx_k_to_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_to_year, __pyx_k_to_year, sizeof(__pyx_k_to_year), 0, 0, 1, 1},
    {&__pyx_n_s_to_year_1st, __pyx_k_to_year_1st, sizeof(__pyx_k_to_year_1st), 0, 0, 1, 1},
    {&__pyx_n_s_to_year_lst, __pyx_k_to_year_lst, sizeof(__pyx_k_to_year_lst), 0, 0, 1, 1},
    {&__pyx_n_s_to_yesterday, __pyx_k_to_yesterday, sizeof(__pyx_k_to_yesterday), 0, 0, 1, 1},
    {&__pyx_n_s_typeref, __pyx_k_typeref, sizeof(__pyx_k_typeref), 0, 0, 1, 1},
    {&__pyx_n_s_typing, __pyx_k_typing, sizeof(__pyx_k_typing), 0, 0, 1, 1},
    {&__pyx_n_s_tz, __pyx_k_tz, sizeof(__pyx_k_tz), 0, 0, 1, 1},
    {&__pyx_n_s_tz_convert, __pyx_k_tz_convert, sizeof(__pyx_k_tz_convert), 0, 0, 1, 1},
    {&__pyx_n_s_tz_localize, __pyx_k_tz_localize, sizeof(__pyx_k_tz_localize), 0, 0, 1, 1},
    {&__pyx_n_s_tz_switch, __pyx_k_tz_switch, sizeof(__pyx_k_tz_switch), 0, 0, 1, 1},
    {&__pyx_n_s_unit, __pyx_k_unit, sizeof(__pyx_k_unit), 0, 0, 1, 1},
    {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1},
    {&__pyx_n_u_us, __pyx_k_us, sizeof(__pyx_k_us), 0, 1, 0, 1},
    {&__pyx_n_s_use_setstate, __pyx_k_use_setstate, sizeof(__pyx_k_use_setstate), 0, 0, 1, 1},
    {&__pyx_n_s_utc, __pyx_k_utc, sizeof(__pyx_k_utc), 0, 0, 1, 1},
    {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1},
    {&__pyx_kp_u_vs, __pyx_k_vs, sizeof(__pyx_k_vs), 0, 1, 0, 0},
    {&__pyx_n_u_week, __pyx_k_week, sizeof(__pyx_k_week), 0, 1, 0, 1},
    {&__pyx_n_s_weekday, __pyx_k_weekday, sizeof(__pyx_k_weekday), 0, 0, 1, 1},
    {&__pyx_n_s_weeks, __pyx_k_weeks, sizeof(__pyx_k_weeks), 0, 0, 1, 1},
    {&__pyx_n_s_where, __pyx_k_where, sizeof(__pyx_k_where), 0, 0, 1, 1},
    {&__pyx_n_s_y1_arr, __pyx_k_y1_arr, sizeof(__pyx_k_y1_arr), 0, 0, 1, 1},
    {&__pyx_n_s_y2_arr, __pyx_k_y2_arr, sizeof(__pyx_k_y2_arr), 0, 0, 1, 1},
    {&__pyx_n_s_year, __pyx_k_year, sizeof(__pyx_k_year), 0, 0, 1, 1},
    {&__pyx_n_u_year, __pyx_k_year, sizeof(__pyx_k_year), 0, 1, 0, 1},
    {&__pyx_n_s_year1st, __pyx_k_year1st, sizeof(__pyx_k_year1st), 0, 0, 1, 1},
    {&__pyx_n_s_yearfirst, __pyx_k_yearfirst, sizeof(__pyx_k_yearfirst), 0, 0, 1, 1},
    {&__pyx_n_s_years, __pyx_k_years, sizeof(__pyx_k_years), 0, 0, 1, 1},
    {0, 0, 0, 0, 0, 0, 0}
  };
  return __Pyx_InitStrings(__pyx_string_tab);
}
/* #### Code section: cached_builtins ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 2087, __pyx_L1_error)
  __pyx_builtin_OverflowError = __Pyx_GetBuiltinName(__pyx_n_s_OverflowError); if (!__pyx_builtin_OverflowError) __PYX_ERR(0, 2271, __pyx_L1_error)
  __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(1, 1026, __pyx_L1_error)
  __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(3, 308, __pyx_L1_error)
  __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(4, 65, __pyx_L1_error)
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(4, 70, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1026
 *         __pyx_import_array()
 *     except Exception:
 *         raise ImportError("numpy._core.multiarray failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_umath() except -1:
 */
  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_u_numpy__core_multiarray_failed_to); if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple_);
  __Pyx_GIVEREF(__pyx_tuple_);

  /* "../../../../../tmp/build-env-wsn_nuq9/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd":1032
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy._core.umath failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_ufunc() except -1:
 */
  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_umath_failed_to_impo); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 1032, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__2);
  __Pyx_GIVEREF(__pyx_tuple__2);

  /* "datetime.pxd":308
 * cdef inline object timezone_new(object offset, object name=None):
 *     if PY_VERSION_HEX < 0x030700b1:
 *         raise RuntimeError('Time zones are not available from the C-API.')             # <<<<<<<<<<<<<<
 *     return __Pyx_TimeZone_FromOffsetAndName(offset, <PyObject*>name if name is not None else NULL)
 * 
 */
  __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_u_Time_zones_are_not_available_fro); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(3, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__3);
  __Pyx_GIVEREF(__pyx_tuple__3);

  /* "cytimes/cyparser.pxd":65
 *     cdef char* buffer = <char*>malloc(size + 1)
 *     if buffer == NULL:
 *         raise MemoryError("Failed to allocate memory for the string slice.")             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t i
 *     cdef Py_UCS4 ch
 */
  __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u_Failed_to_allocate_memory_for_th); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(4, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__4);
  __Pyx_GIVEREF(__pyx_tuple__4);

  /* "cytimes/cyparser.pxd":73
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch) and ch not in ".,":
 *                 raise ValueError("Invalid character to slice to float.")             # <<<<<<<<<<<<<<
 *             buffer[i] = ch
 *         # Null-terminate the buffer.
 */
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_Invalid_character_to_slice_to_fl); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(4, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__5);
  __Pyx_GIVEREF(__pyx_tuple__5);

  /* "cytimes/cyparser.pxd":98
 *             ch = read_char(s, start + i)
 *             if not is_ascii_digit(ch):
 *                 raise ValueError("Invalid character to slice to integer.")             # <<<<<<<<<<<<<<
 *             buffer[i] = ch
 *         # Null-terminate the buffer.
 */
  __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_Invalid_character_to_slice_to_in); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(4, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__6);
  __Pyx_GIVEREF(__pyx_tuple__6);

  /* "cytimes/pddatetime.py":620
 *         try:
 *             dt: Series = (
 *                 self._dt + typeref.OFST_YEAREND(0) - typeref.OFST_YEARBEGIN(1, month=1)             # <<<<<<<<<<<<<<
 *             )
 *         except Exception as err:
 */
  __pyx_tuple__14 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__14);
  __Pyx_GIVEREF(__pyx_tuple__14);

  /* "cytimes/pddatetime.py":1382
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt.dt.floor("D", "infer", "shift_backward")             # <<<<<<<<<<<<<<
 *         except Exception as err:
 *             self._raise_error(err)
 */
  __pyx_tuple__15 = PyTuple_Pack(3, __pyx_n_u_D, __pyx_n_u_infer, __pyx_n_u_shift_backward); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);

  /* "cytimes/pddatetime.py":1391
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 *         try:
 *             dt: Series = self._dt.dt.ceil(             # <<<<<<<<<<<<<<
 *                 "D", "infer", "shift_forward"
 *             ) - typeref.OFST_MICRO(1)
 */
  __pyx_tuple__16 = PyTuple_Pack(3, __pyx_n_u_D, __pyx_n_u_infer, __pyx_n_u_shift_forward); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 1391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__16);
  __Pyx_GIVEREF(__pyx_tuple__16);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum not in (0xd380488, 0xd03eb29, 0xe34a994):             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd380488, 0xd03eb29, 0xe34a994) = (_cfg, _day1st, _default, _dt, _exact, _format, _utc, _year1st))" % __pyx_checksum
 */
  __pyx_tuple__26 = PyTuple_Pack(3, __pyx_int_221774984, __pyx_int_218360617, __pyx_int_238332308); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(8, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__26);
  __Pyx_GIVEREF(__pyx_tuple__26);

  /* "cytimes/pddatetime.py":70
 *     _default: object
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def now(
 *         cls,
 */
  __pyx_tuple__28 = PyTuple_Pack(6, __pyx_n_s_cls, __pyx_n_s_size, __pyx_n_s_tz, __pyx_n_s_name, __pyx_n_s_unit, __pyx_n_s_dt); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__28);
  __Pyx_GIVEREF(__pyx_tuple__28);
  __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__28, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_now, 70, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) __PYX_ERR(0, 70, __pyx_L1_error)
  __pyx_tuple__30 = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__30);
  __Pyx_GIVEREF(__pyx_tuple__30);

  /* "cytimes/pddatetime.py":96
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_dtobj(
 *         cls,
 */
  __pyx_tuple__31 = PyTuple_Pack(11, __pyx_n_s_cls, __pyx_n_s_size, __pyx_n_s_dtobj, __pyx_n_s_default, __pyx_n_s_day1st, __pyx_n_s_year1st, __pyx_n_s_cfg, __pyx_n_s_name, __pyx_n_s_unit, __pyx_n_s_dt, __pyx_n_s_err); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__31);
  __Pyx_GIVEREF(__pyx_tuple__31);
  __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(9, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_from_dtobj, 96, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 96, __pyx_L1_error)
  __pyx_tuple__33 = PyTuple_Pack(6, Py_None, Py_None, Py_None, Py_None, Py_None, Py_None); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__33);
  __Pyx_GIVEREF(__pyx_tuple__33);

  /* "cytimes/pddatetime.py":167
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_datetime(
 *         cls,
 */
  __pyx_tuple__34 = PyTuple_Pack(14, __pyx_n_s_cls, __pyx_n_s_size, __pyx_n_s_year, __pyx_n_s_month, __pyx_n_s_day, __pyx_n_s_hour, __pyx_n_s_minute, __pyx_n_s_second, __pyx_n_s_microsecond, __pyx_n_s_nanosecond, __pyx_n_s_tz, __pyx_n_s_name, __pyx_n_s_unit, __pyx_n_s_dt); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__34);
  __Pyx_GIVEREF(__pyx_tuple__34);
  __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(13, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_from_datetime, 167, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) __PYX_ERR(0, 167, __pyx_L1_error)

  /* "cytimes/pddatetime.py":221
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_range(
 *         cls,
 */
  __pyx_tuple__36 = PyTuple_Pack(10, __pyx_n_s_cls, __pyx_n_s_start, __pyx_n_s_end, __pyx_n_s_freq, __pyx_n_s_periods, __pyx_n_s_tz, __pyx_n_s_inclusive, __pyx_n_s_normalize, __pyx_n_s_name, __pyx_n_s_unit); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__36);
  __Pyx_GIVEREF(__pyx_tuple__36);
  __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(10, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_from_range, 221, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__37)) __PYX_ERR(0, 221, __pyx_L1_error)
  __pyx_tuple__38 = PyTuple_Pack(9, Py_None, Py_None, __pyx_n_u_D, Py_None, Py_None, __pyx_n_u_both, Py_False, Py_None, Py_None); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__38);
  __Pyx_GIVEREF(__pyx_tuple__38);

  /* "cytimes/pddatetime.py":567
 * 
 *     # Year ------------------------------------------------------------------------------------
 *     def is_leapyear(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are leap years `<'Series[bool]'>`."""
 *         return self._dt.dt.is_leap_year
 */
  __pyx_tuple__39 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__39);
  __Pyx_GIVEREF(__pyx_tuple__39);
  __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_leapyear, 567, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 567, __pyx_L1_error)

  /* "cytimes/pddatetime.py":571
 *         return self._dt.dt.is_leap_year
 * 
 *     def leap_bt_years(self, year: int) -> Series[int]:             # <<<<<<<<<<<<<<
 *         """Calculate the number of leap years between the dates
 *         and the given 'year' `<'Series[int]'>`."""
 */
  __pyx_tuple__41 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_year, __pyx_n_s_y1_arr, __pyx_n_s_y2_arr, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__41);
  __Pyx_GIVEREF(__pyx_tuple__41);
  __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_leap_bt_years, 571, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 571, __pyx_L1_error)

  /* "cytimes/pddatetime.py":603
 *         return self._dt.dt.day_of_year
 * 
 *     def is_year(self, year: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'year' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.year.values == year)
 */
  __pyx_tuple__43 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_year); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__43);
  __Pyx_GIVEREF(__pyx_tuple__43);
  __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__43, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_year, 603, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 603, __pyx_L1_error)

  /* "cytimes/pddatetime.py":607
 *         return self._arr_to_series(self._dt.dt.year.values == year)
 * 
 *     def is_year_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_start
 */
  __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_year_1st, 607, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) __PYX_ERR(0, 607, __pyx_L1_error)

  /* "cytimes/pddatetime.py":611
 *         return self._dt.dt.is_year_start
 * 
 *     def is_year_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_end
 */
  __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_year_lst, 611, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 611, __pyx_L1_error)

  /* "cytimes/pddatetime.py":615
 *         return self._dt.dt.is_year_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year_1st(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 */
  __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_year_1st, 615, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__47)) __PYX_ERR(0, 615, __pyx_L1_error)

  /* "cytimes/pddatetime.py":626
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year_lst(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 */
  __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_year_lst, 626, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 626, __pyx_L1_error)

  /* "cytimes/pddatetime.py":635
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_year(
 *         self,
 */
  __pyx_tuple__49 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_month, __pyx_n_s_day); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__49);
  __Pyx_GIVEREF(__pyx_tuple__49);
  __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_curr_year, 635, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 635, __pyx_L1_error)
  __pyx_tuple__51 = PyTuple_Pack(2, Py_None, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__51);
  __Pyx_GIVEREF(__pyx_tuple__51);

  /* "cytimes/pddatetime.py":708
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_year(
 *         self,
 */
  __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_prev_year, 708, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 708, __pyx_L1_error)

  /* "cytimes/pddatetime.py":717
 *         return self.to_year(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_year(
 *         self,
 */
  __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_next_year, 717, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 717, __pyx_L1_error)

  /* "cytimes/pddatetime.py":726
 *         return self.to_year(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year(
 *         self,
 */
  __pyx_tuple__54 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_offset, __pyx_n_s_month, __pyx_n_s_day); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__54);
  __Pyx_GIVEREF(__pyx_tuple__54);
  __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_year, 726, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 726, __pyx_L1_error)
  __pyx_tuple__56 = PyTuple_Pack(3, __pyx_int_0, Py_None, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__56);
  __Pyx_GIVEREF(__pyx_tuple__56);

  /* "cytimes/pddatetime.py":853
 *         return self._arr_to_series(self._dt.dt.quarter.values * 3)
 * 
 *     def is_quarter(self, quarter: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'quarter' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)
 */
  __pyx_tuple__57 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_quarter); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__57);
  __Pyx_GIVEREF(__pyx_tuple__57);
  __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_quarter, 853, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 853, __pyx_L1_error)

  /* "cytimes/pddatetime.py":857
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)
 * 
 *     def is_quarter_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_start
 */
  __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_quarter_1st, 857, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 857, __pyx_L1_error)

  /* "cytimes/pddatetime.py":861
 *         return self._dt.dt.is_quarter_start
 * 
 *     def is_quarter_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_end
 */
  __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_quarter_lst, 861, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(0, 861, __pyx_L1_error)

  /* "cytimes/pddatetime.py":865
 *         return self._dt.dt.is_quarter_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter_1st(self) -> pddt:
 *         """Go to the 1st day of the quarter `<'pddt'>`."""
 */
  __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_quarter_1st, 865, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 865, __pyx_L1_error)

  /* "cytimes/pddatetime.py":878
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter_lst(self) -> pddt:
 *         """Go to the last day of the quarter `<'pddt'>`."""
 */
  __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_quarter_lst, 878, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(0, 878, __pyx_L1_error)

  /* "cytimes/pddatetime.py":887
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])'
 */
  __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_curr_quarter, 887, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(0, 887, __pyx_L1_error)
  __pyx_tuple__64 = PyTuple_Pack(2, __pyx_int_neg_1, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__64);
  __Pyx_GIVEREF(__pyx_tuple__64);

  /* "cytimes/pddatetime.py":957
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])' and
 */
  __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_prev_quarter, 957, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 957, __pyx_L1_error)

  /* "cytimes/pddatetime.py":963
 *         return self.to_quarter(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])' and
 */
  __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_next_quarter, 963, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(0, 963, __pyx_L1_error)

  /* "cytimes/pddatetime.py":969
 *         return self.to_quarter(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter(
 *         self,
 */
  __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_quarter, 969, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(0, 969, __pyx_L1_error)
  __pyx_tuple__68 = PyTuple_Pack(3, __pyx_int_0, __pyx_int_neg_1, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__68);
  __Pyx_GIVEREF(__pyx_tuple__68);

  /* "cytimes/pddatetime.py":1067
 *         )
 * 
 *     def is_month(self, month: int | str) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'month' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))
 */
  __pyx_tuple__69 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_month); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 1067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__69);
  __Pyx_GIVEREF(__pyx_tuple__69);
  __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_month, 1067, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 1067, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1071
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))
 * 
 *     def is_month_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_start
 */
  __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_month_1st, 1071, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(0, 1071, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1075
 *         return self._dt.dt.is_month_start
 * 
 *     def is_month_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_end
 */
  __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_month_lst, 1075, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 1075, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1079
 *         return self._dt.dt.is_month_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month_1st(self) -> pddt:
 *         """Go to the 1st day of the month `<'pddt'>`."""
 */
  __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_month_1st, 1079, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)) __PYX_ERR(0, 1079, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1090
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month_lst(self) -> pddt:
 *         """Go to the last day of the month `<'pddt'>`."""
 */
  __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_month_lst, 1090, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 1090, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1099
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the current month `<'pddt'>`."""
 */
  __pyx_tuple__75 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_day); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 1099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__75);
  __Pyx_GIVEREF(__pyx_tuple__75);
  __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_curr_month, 1099, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 1099, __pyx_L1_error)
  __pyx_tuple__77 = PyTuple_Pack(1, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 1099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__77);
  __Pyx_GIVEREF(__pyx_tuple__77);

  /* "cytimes/pddatetime.py":1135
 *         return self.to_month_lst()  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the previous month `<'pddt'>`."""
 */
  __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_prev_month, 1135, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 1135, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1140
 *         return self.to_month(-1, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the next month `<'pddt'>`."""
 */
  __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_next_month, 1140, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)) __PYX_ERR(0, 1140, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1145
 *         return self.to_month(1, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month(self, offset: cython.int = 0, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the current month (+/-) 'offset' `<'pddt'>`."""
 */
  __pyx_tuple__80 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_offset, __pyx_n_s_day); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__80);
  __Pyx_GIVEREF(__pyx_tuple__80);
  __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_month, 1145, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __pyx_tuple__82 = PyTuple_Pack(2, __pyx_int_0, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__82);
  __Pyx_GIVEREF(__pyx_tuple__82);

  /* "cytimes/pddatetime.py":1234
 *         return self._dt.dt.isocalendar()
 * 
 *     def is_weekday(self, weekday: int | str) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'weekday' `<'Series[bool]'>`."""
 *         return self._arr_to_series(
 */
  __pyx_tuple__83 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_weekday); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 1234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__83);
  __Pyx_GIVEREF(__pyx_tuple__83);
  __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_weekday, 1234, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(0, 1234, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1240
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_monday(self) -> pddt:
 *         """Go to Monday of the current week `<'pddt'>`."""
 */
  __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_monday, 1240, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(0, 1240, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1245
 *         return self._c_to_curr_weekday(0)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_tuesday(self) -> pddt:
 *         """Go to Tuesday of the current week `<'pddt'>`."""
 */
  __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_tuesday, 1245, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 1245, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1250
 *         return self._c_to_curr_weekday(1)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_wednesday(self) -> pddt:
 *         """Go to Wednesday of the current week `<'pddt'>`."""
 */
  __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_wednesday, 1250, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(0, 1250, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1255
 *         return self._c_to_curr_weekday(2)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_thursday(self) -> pddt:
 *         """Go to Thursday of the current week `<'pddt'>`."""
 */
  __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_thursday, 1255, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 1255, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1260
 *         return self._c_to_curr_weekday(3)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_friday(self) -> pddt:
 *         """Go to Friday of the current week `<'pddt'>`."""
 */
  __pyx_codeobj__89 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_friday, 1260, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__89)) __PYX_ERR(0, 1260, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1265
 *         return self._c_to_curr_weekday(4)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_saturday(self) -> pddt:
 *         """Go to Saturday of the current week `<'pddt'>`."""
 */
  __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_saturday, 1265, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 1265, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1270
 *         return self._c_to_curr_weekday(5)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_sunday(self) -> pddt:
 *         """Go to Sunday of the current week `<'pddt'>`."""
 */
  __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_sunday, 1270, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)) __PYX_ERR(0, 1270, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1275
 *         return self._c_to_curr_weekday(6)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 */
  __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_curr_weekday, 1275, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 1275, __pyx_L1_error)
  __pyx_tuple__93 = PyTuple_Pack(1, Py_None); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__93);
  __Pyx_GIVEREF(__pyx_tuple__93);

  /* "cytimes/pddatetime.py":1291
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 */
  __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_prev_weekday, 1291, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(0, 1291, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1296
 *         return self.to_weekday(-1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 */
  __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_next_weekday, 1296, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(0, 1296, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1301
 *         return self.to_weekday(1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_weekday(
 *         self,
 */
  __pyx_tuple__96 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_offset, __pyx_n_s_weekday); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__96);
  __Pyx_GIVEREF(__pyx_tuple__96);
  __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__96, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_weekday, 1301, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__97)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __pyx_tuple__98 = PyTuple_Pack(2, __pyx_int_0, Py_None); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__98);
  __Pyx_GIVEREF(__pyx_tuple__98);

  /* "cytimes/pddatetime.py":1332
 * 
 *     # Day -------------------------------------------------------------------------------------
 *     def is_day(self, day: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'day' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.day.values == day)
 */
  __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_day, 1332, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__99)) __PYX_ERR(0, 1332, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1336
 *         return self._arr_to_series(self._dt.dt.day.values == day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_yesterday(self) -> pddt:
 *         """Go to the previous day `<'pddt'>`."""
 */
  __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_yesterday, 1336, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(0, 1336, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1345
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_tomorrow(self) -> pddt:
 *         """Go to the next day `<'pddt'>`."""
 */
  __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_tomorrow, 1345, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__101)) __PYX_ERR(0, 1345, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1354
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_day(self, offset: cython.int) -> pddt:
 *         """Go to the current day (+/-) 'offset' `<'pddt'>`."""
 */
  __pyx_tuple__102 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_offset); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(0, 1354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__102);
  __Pyx_GIVEREF(__pyx_tuple__102);
  __pyx_codeobj__103 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__102, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_day, 1354, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__103)) __PYX_ERR(0, 1354, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1368
 * 
 *     # Time ------------------------------------------------------------------------------------
 *     def is_time_start(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the current time is the
 *         start of time (00:00:00.000000) `<'Series[bool]'>`."""
 */
  __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_time_start, 1368, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(0, 1368, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1373
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_START)
 * 
 *     def is_time_end(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the current time is the
 *         end of time (23:59:59.999999) `<'Series[bool]'>`."""
 */
  __pyx_codeobj__105 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_is_time_end, 1373, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__105)) __PYX_ERR(0, 1373, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1378
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_END)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time_start(self) -> pddt:
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 */
  __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_time_start, 1378, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(0, 1378, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1387
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time_end(self) -> pddt:
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 */
  __pyx_codeobj__107 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_time_end, 1387, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__107)) __PYX_ERR(0, 1387, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1398
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time(
 *         self,
 */
  __pyx_tuple__108 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_hour, __pyx_n_s_minute, __pyx_n_s_second, __pyx_n_s_millisecond, __pyx_n_s_microsecond); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(0, 1398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__108);
  __Pyx_GIVEREF(__pyx_tuple__108);
  __pyx_codeobj__109 = (PyObject*)__Pyx_PyCode_New(6, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__108, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_to_time, 1398, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__109)) __PYX_ERR(0, 1398, __pyx_L1_error)
  __pyx_tuple__110 = PyTuple_Pack(5, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(0, 1398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__110);
  __Pyx_GIVEREF(__pyx_tuple__110);

  /* "cytimes/pddatetime.py":1453
 *         return TIMEZONE_AVAILABLE
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_localize(
 *         self,
 */
  __pyx_tuple__111 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tz, __pyx_n_s_ambiguous, __pyx_n_s_nonexistent); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 1453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__111);
  __Pyx_GIVEREF(__pyx_tuple__111);
  __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_tz_localize, 1453, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(0, 1453, __pyx_L1_error)
  __pyx_tuple__113 = PyTuple_Pack(3, Py_None, __pyx_n_u_raise, __pyx_n_u_raise); if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 1453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__113);
  __Pyx_GIVEREF(__pyx_tuple__113);

  /* "cytimes/pddatetime.py":1494
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_convert(
 *         self,
 */
  __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_tz_convert, 1494, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 1494, __pyx_L1_error)
  __pyx_tuple__115 = PyTuple_Pack(3, Py_None, __pyx_n_u_raise, __pyx_n_u_raise); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(0, 1494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__115);
  __Pyx_GIVEREF(__pyx_tuple__115);

  /* "cytimes/pddatetime.py":1520
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_switch(
 *         self,
 */
  __pyx_tuple__116 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_targ_tz, __pyx_n_s_base_tz, __pyx_n_s_naive, __pyx_n_s_ambiguous, __pyx_n_s_nonexistent); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__116);
  __Pyx_GIVEREF(__pyx_tuple__116);
  __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(6, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__116, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_tz_switch, 1520, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __pyx_tuple__118 = PyTuple_Pack(4, Py_None, Py_False, __pyx_n_u_raise, __pyx_n_u_raise); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__118);
  __Pyx_GIVEREF(__pyx_tuple__118);

  /* "cytimes/pddatetime.py":1567
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def astimezone(
 *         self,
 */
  __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_astimezone, 1567, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(0, 1567, __pyx_L1_error)
  __pyx_tuple__120 = PyTuple_Pack(3, Py_None, __pyx_n_u_raise, __pyx_n_u_raise); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(0, 1567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__120);
  __Pyx_GIVEREF(__pyx_tuple__120);

  /* "cytimes/pddatetime.py":1590
 * 
 *     # Frequency -------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_round(
 *         self,
 */
  __pyx_tuple__121 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_freq, __pyx_n_s_ambiguous, __pyx_n_s_nonexistent); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 1590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__121);
  __Pyx_GIVEREF(__pyx_tuple__121);
  __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_freq_round, 1590, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(0, 1590, __pyx_L1_error)
  __pyx_tuple__123 = PyTuple_Pack(2, __pyx_n_u_raise, __pyx_n_u_raise); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 1590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__123);
  __Pyx_GIVEREF(__pyx_tuple__123);

  /* "cytimes/pddatetime.py":1618
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_ceil(
 *         self,
 */
  __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_freq_ceil, 1618, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(0, 1618, __pyx_L1_error)
  __pyx_tuple__125 = PyTuple_Pack(2, __pyx_n_u_raise, __pyx_n_u_raise); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 1618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__125);
  __Pyx_GIVEREF(__pyx_tuple__125);

  /* "cytimes/pddatetime.py":1646
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_floor(
 *         self,
 */
  __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_freq_floor, 1646, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(0, 1646, __pyx_L1_error)
  __pyx_tuple__127 = PyTuple_Pack(2, __pyx_n_u_raise, __pyx_n_u_raise); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 1646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__127);
  __Pyx_GIVEREF(__pyx_tuple__127);

  /* "cytimes/pddatetime.py":1675
 * 
 *     # Delta -----------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def add_delta(
 *         self,
 */
  __pyx_tuple__128 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_years, __pyx_n_s_months, __pyx_n_s_days, __pyx_n_s_weeks, __pyx_n_s_hours, __pyx_n_s_minutes, __pyx_n_s_seconds, __pyx_n_s_milliseconds, __pyx_n_s_microseconds); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(0, 1675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__128);
  __Pyx_GIVEREF(__pyx_tuple__128);
  __pyx_codeobj__129 = (PyObject*)__Pyx_PyCode_New(10, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__128, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_add_delta, 1675, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__129)) __PYX_ERR(0, 1675, __pyx_L1_error)
  __pyx_tuple__130 = PyTuple_Pack(9, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(0, 1675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__130);
  __Pyx_GIVEREF(__pyx_tuple__130);

  /* "cytimes/pddatetime.py":1720
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def sub_delta(
 *         self,
 */
  __pyx_codeobj__131 = (PyObject*)__Pyx_PyCode_New(10, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__128, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_sub_delta, 1720, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__131)) __PYX_ERR(0, 1720, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1763
 *         return self._new(dt, None, None, False)
 * 
 *     def cal_delta(             # <<<<<<<<<<<<<<
 *         self,
 *         other: object,
 */
  __pyx_tuple__132 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_other, __pyx_n_s_unit, __pyx_n_s_inclusive); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(0, 1763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__132);
  __Pyx_GIVEREF(__pyx_tuple__132);
  __pyx_codeobj__133 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__132, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_cal_delta, 1763, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__133)) __PYX_ERR(0, 1763, __pyx_L1_error)
  __pyx_tuple__134 = PyTuple_Pack(2, __pyx_n_u_D, __pyx_n_u_both); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(0, 1763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__134);
  __Pyx_GIVEREF(__pyx_tuple__134);

  /* "cytimes/pddatetime.py":1780
 * 
 *     # Replace ---------------------------------------------------------------------------------
 *     def replace(             # <<<<<<<<<<<<<<
 *         self,
 *         year: cython.int = -1,
 */
  __pyx_tuple__135 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_year, __pyx_n_s_month, __pyx_n_s_day, __pyx_n_s_hour, __pyx_n_s_minute, __pyx_n_s_second, __pyx_n_s_millisecond, __pyx_n_s_microsecond, __pyx_n_s_dt); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 1780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__135);
  __Pyx_GIVEREF(__pyx_tuple__135);
  __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(9, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_replace, 1780, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(0, 1780, __pyx_L1_error)
  __pyx_tuple__137 = PyTuple_Pack(8, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 1780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__137);
  __Pyx_GIVEREF(__pyx_tuple__137);

  /* "cytimes/pddatetime.py":1838
 * 
 *     # Format ----------------------------------------------------------------------------------
 *     def strftime(self, format: str) -> Series[str]:             # <<<<<<<<<<<<<<
 *         """Convert to string with the given 'format' `<'Series[str]'>`.
 * 
 */
  __pyx_tuple__138 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_format); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(0, 1838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__138);
  __Pyx_GIVEREF(__pyx_tuple__138);
  __pyx_codeobj__139 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__138, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_strftime, 1838, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__139)) __PYX_ERR(0, 1838, __pyx_L1_error)

  /* "cytimes/pddatetime.py":1845
 * 
 *     # Unit ------------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def as_unit(self, unit: Literal["s", "ms", "us", "ns"]) -> pddt:
 *         """Convert to specific time 'unit' resolution `<'pddt'>`.
 */
  __pyx_tuple__140 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_unit); if (unlikely(!__pyx_tuple__140)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__140);
  __Pyx_GIVEREF(__pyx_tuple__140);
  __pyx_codeobj__141 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__140, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_as_unit, 1845, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__141)) __PYX_ERR(0, 1845, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2369
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def equals(self, o: object) -> bool:             # <<<<<<<<<<<<<<
 *         """Test whether two objects contain the same elements `<'bool'>`.
 *         (Equivalent to `pandas.Series.equal()` method).
 */
  __pyx_tuple__142 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_o, __pyx_n_s_err); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(0, 2369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__142);
  __Pyx_GIVEREF(__pyx_tuple__142);
  __pyx_codeobj__143 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__142, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_equals, 2369, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__143)) __PYX_ERR(0, 2369, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2381
 * 
 *     # Special methods - copy ------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def copy(self) -> pddt:
 *         "Make a (deep)copy of the `<'pddt'>`."
 */
  __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_copy, 2381, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(0, 2381, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2386
 *         return self._new(self._dt, None, None, True)
 * 
 *     def __copy__(self, *args, **kwargs) -> pddt:             # <<<<<<<<<<<<<<
 *         return self._new(self._dt, None, None, True)
 * 
 */
  __pyx_tuple__145 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__145);
  __Pyx_GIVEREF(__pyx_tuple__145);
  __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_copy_2, 2386, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 2386, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2389
 *         return self._new(self._dt, None, None, True)
 * 
 *     def __deepcopy__(self, *args, **kwargs) -> pddt:             # <<<<<<<<<<<<<<
 *         return self._new(self._dt, None, None, True)
 * 
 */
  __pyx_codeobj__147 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_deepcopy, 2389, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__147)) __PYX_ERR(0, 2389, __pyx_L1_error)

  /* "cytimes/pddatetime.py":2412
 *         return self._dt.__iter__()
 * 
 *     def __array__(self) -> np.ndarray:             # <<<<<<<<<<<<<<
 *         return self._dt.__array__()
 * 
 */
  __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_cytimes_pddatetime_py, __pyx_n_s_array, 2412, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(0, 2412, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */
  __pyx_tuple__149 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_state, __pyx_n_s_dict_2, __pyx_n_s_use_setstate); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(8, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__149);
  __Pyx_GIVEREF(__pyx_tuple__149);
  __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(8, 1, __pyx_L1_error)

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_pddt__set_state(self, __pyx_state)
 */
  __pyx_tuple__151 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(8, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__151);
  __Pyx_GIVEREF(__pyx_tuple__151);
  __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(8, 16, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __pyx_unpickle_pddt(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_tuple__153 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(8, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__153);
  __Pyx_GIVEREF(__pyx_tuple__153);
  __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_pddt, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(8, 1, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}
/* #### Code section: init_constants ### */

static CYTHON_SMALL_CODE int __Pyx_InitConstants(void) {
  __pyx_umethod_PyUnicode_Type_lower.type = (PyObject*)&PyUnicode_Type;
  __pyx_umethod_PyUnicode_Type_lower.method_name = &__pyx_n_s_lower;
  if (__Pyx_CreateStringTabAndInitStrings() < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_100 = PyInt_FromLong(100); if (unlikely(!__pyx_int_100)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_365 = PyInt_FromLong(365); if (unlikely(!__pyx_int_365)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_400 = PyInt_FromLong(400); if (unlikely(!__pyx_int_400)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000000 = PyInt_FromLong(1000000L); if (unlikely(!__pyx_int_1000000)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_60000000 = PyInt_FromLong(60000000L); if (unlikely(!__pyx_int_60000000)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_218360617 = PyInt_FromLong(218360617L); if (unlikely(!__pyx_int_218360617)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_221774984 = PyInt_FromLong(221774984L); if (unlikely(!__pyx_int_221774984)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_238332308 = PyInt_FromLong(238332308L); if (unlikely(!__pyx_int_238332308)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_globals ### */

static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
  return 0;
}
/* #### Code section: init_module ### */

static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/

static int __Pyx_modinit_global_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __pyx_v_7cytimes_10pddatetime_UNIT_FREQUENCY = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_7cytimes_10pddatetime_FN_PD_DATERANGE = Py_None; Py_INCREF(Py_None);
  __pyx_v_7cytimes_10pddatetime_FN_PD_TODATETIME = Py_None; Py_INCREF(Py_None);
  __pyx_v_7cytimes_10pddatetime_FN_PD_TOTIMEDELTA = Py_None; Py_INCREF(Py_None);
  __pyx_v_7cytimes_10pddatetime_FN_NP_ABS = Py_None; Py_INCREF(Py_None);
  __pyx_v_7cytimes_10pddatetime_FN_NP_FULL = Py_None; Py_INCREF(Py_None);
  __pyx_v_7cytimes_10pddatetime_FN_NP_WHERE = Py_None; Py_INCREF(Py_None);
  __pyx_v_7cytimes_10pddatetime_FN_NP_MIN = Py_None; Py_INCREF(Py_None);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(void) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  if (__Pyx_ExportVoidPtr(__pyx_n_s_UNIT_FREQUENCY, (void *)&__pyx_v_7cytimes_10pddatetime_UNIT_FREQUENCY, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_FN_PD_DATERANGE, (void *)&__pyx_v_7cytimes_10pddatetime_FN_PD_DATERANGE, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_FN_PD_TODATETIME, (void *)&__pyx_v_7cytimes_10pddatetime_FN_PD_TODATETIME, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_FN_PD_TOTIMEDELTA, (void *)&__pyx_v_7cytimes_10pddatetime_FN_PD_TOTIMEDELTA, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_FN_NP_ABS, (void *)&__pyx_v_7cytimes_10pddatetime_FN_NP_ABS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_FN_NP_FULL, (void *)&__pyx_v_7cytimes_10pddatetime_FN_NP_FULL, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_FN_NP_WHERE, (void *)&__pyx_v_7cytimes_10pddatetime_FN_NP_WHERE, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_FN_NP_MIN, (void *)&__pyx_v_7cytimes_10pddatetime_FN_NP_MIN, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_function_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(void) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __pyx_vtabptr_7cytimes_10pddatetime_pddt = &__pyx_vtable_7cytimes_10pddatetime_pddt;
  __pyx_vtable_7cytimes_10pddatetime_pddt._c_unit = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *))__pyx_f_7cytimes_10pddatetime_4pddt__c_unit;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_year_1st = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_year_1st;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_year_lst = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_year_lst;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_curr_year = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_year *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_year;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_prev_year = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_year *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_year;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_next_year = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_year *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_next_year;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_year = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_year *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_year;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_quarter_1st = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter_1st;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_quarter_lst = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter_lst;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_curr_quarter = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_quarter *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_quarter;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_prev_quarter = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_quarter *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_quarter;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_next_quarter = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_quarter *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_next_quarter;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_quarter = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_quarter *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_quarter;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_month_1st = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_month_1st;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_month_lst = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_month_lst;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_curr_month = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_month *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_month;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_prev_month = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_month *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_month;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_next_month = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_month *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_next_month;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_month = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_month *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_month;
  __pyx_vtable_7cytimes_10pddatetime_pddt._c_to_curr_weekday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int))__pyx_f_7cytimes_10pddatetime_4pddt__c_to_curr_weekday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_monday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_monday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_tuesday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_tuesday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_wednesday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_wednesday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_thursday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_thursday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_friday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_friday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_saturday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_saturday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_sunday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_sunday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_curr_weekday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_curr_weekday *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_curr_weekday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_prev_weekday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_prev_weekday *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_prev_weekday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_next_weekday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_next_weekday *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_next_weekday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_weekday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_weekday *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_weekday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_yesterday = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_yesterday;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_tomorrow = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_tomorrow;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_day = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_day;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_time_start = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_time_start;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_time_end = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_to_time_end;
  __pyx_vtable_7cytimes_10pddatetime_pddt.to_time = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_to_time *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_to_time;
  __pyx_vtable_7cytimes_10pddatetime_pddt._c_tz_localize = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__c_tz_localize;
  __pyx_vtable_7cytimes_10pddatetime_pddt._c_tz_convert = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__c_tz_convert;
  __pyx_vtable_7cytimes_10pddatetime_pddt.tz_localize = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_localize *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_tz_localize;
  __pyx_vtable_7cytimes_10pddatetime_pddt.tz_convert = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_convert *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_tz_convert;
  __pyx_vtable_7cytimes_10pddatetime_pddt.tz_switch = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_tz_switch *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_tz_switch;
  __pyx_vtable_7cytimes_10pddatetime_pddt.astimezone = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_astimezone *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_astimezone;
  __pyx_vtable_7cytimes_10pddatetime_pddt.freq_round = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_round *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_freq_round;
  __pyx_vtable_7cytimes_10pddatetime_pddt.freq_ceil = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_ceil *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_freq_ceil;
  __pyx_vtable_7cytimes_10pddatetime_pddt.freq_floor = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_freq_floor *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_freq_floor;
  __pyx_vtable_7cytimes_10pddatetime_pddt._c_cal_delta = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__c_cal_delta;
  __pyx_vtable_7cytimes_10pddatetime_pddt.add_delta = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_add_delta *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_add_delta;
  __pyx_vtable_7cytimes_10pddatetime_pddt.sub_delta = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt_sub_delta *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt_sub_delta;
  __pyx_vtable_7cytimes_10pddatetime_pddt.as_unit = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_as_unit;
  __pyx_vtable_7cytimes_10pddatetime_pddt._new = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__new;
  __pyx_vtable_7cytimes_10pddatetime_pddt._parse_dtobj = (PyDateTime_DateTime *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, int))__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtobj;
  __pyx_vtable_7cytimes_10pddatetime_pddt._parse_dtsobj = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *, int))__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj;
  __pyx_vtable_7cytimes_10pddatetime_pddt._parse_dtsobj_fallback = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__parse_dtsobj_fallback;
  __pyx_vtable_7cytimes_10pddatetime_pddt._parse_month = (int (*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__parse_month;
  __pyx_vtable_7cytimes_10pddatetime_pddt._parse_weekday = (int (*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__parse_weekday;
  __pyx_vtable_7cytimes_10pddatetime_pddt._parse_frequency = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__parse_frequency;
  __pyx_vtable_7cytimes_10pddatetime_pddt._adjust_unit = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, int))__pyx_f_7cytimes_10pddatetime_4pddt__adjust_unit;
  __pyx_vtable_7cytimes_10pddatetime_pddt._arr_to_series = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__arr_to_series;
  __pyx_vtable_7cytimes_10pddatetime_pddt._arr_to_tdindex = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__arr_to_tdindex;
  __pyx_vtable_7cytimes_10pddatetime_pddt._obj_to_pddt = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__obj_to_pddt;
  __pyx_vtable_7cytimes_10pddatetime_pddt._obj_to_series = (PyObject *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__obj_to_series;
  __pyx_vtable_7cytimes_10pddatetime_pddt._validate_amb_nonex = (int (*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, PyObject *))__pyx_f_7cytimes_10pddatetime_4pddt__validate_amb_nonex;
  __pyx_vtable_7cytimes_10pddatetime_pddt._raise_error = (int (*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, PyObject *, struct __pyx_opt_args_7cytimes_10pddatetime_4pddt__raise_error *__pyx_optional_args))__pyx_f_7cytimes_10pddatetime_4pddt__raise_error;
  __pyx_vtable_7cytimes_10pddatetime_pddt.copy = (struct __pyx_obj_7cytimes_10pddatetime_pddt *(*)(struct __pyx_obj_7cytimes_10pddatetime_pddt *, int __pyx_skip_dispatch))__pyx_f_7cytimes_10pddatetime_4pddt_copy;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_ptype_7cytimes_10pddatetime_pddt = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_7cytimes_10pddatetime_pddt_spec, NULL); if (unlikely(!__pyx_ptype_7cytimes_10pddatetime_pddt)) __PYX_ERR(0, 54, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_7cytimes_10pddatetime_pddt_spec, __pyx_ptype_7cytimes_10pddatetime_pddt) < 0) __PYX_ERR(0, 54, __pyx_L1_error)
  #else
  __pyx_ptype_7cytimes_10pddatetime_pddt = &__pyx_type_7cytimes_10pddatetime_pddt;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_ptype_7cytimes_10pddatetime_pddt) < 0) __PYX_ERR(0, 54, __pyx_L1_error)
  #endif
  #if PY_MAJOR_VERSION < 3
  __pyx_ptype_7cytimes_10pddatetime_pddt->tp_print = 0;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_7cytimes_10pddatetime_pddt->tp_dictoffset && __pyx_ptype_7cytimes_10pddatetime_pddt->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_ptype_7cytimes_10pddatetime_pddt->tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_UPDATE_DESCRIPTOR_DOC
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 54, __pyx_L1_error)
    if (__Pyx_IS_TYPE(wrapper, &PyWrapperDescr_Type)) {
      __pyx_wrapperbase_7cytimes_10pddatetime_4pddt_8__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_7cytimes_10pddatetime_4pddt_8__init__.doc = __pyx_doc_7cytimes_10pddatetime_4pddt_8__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_7cytimes_10pddatetime_4pddt_8__init__;
    }
  }
  #endif
  if (__Pyx_SetVtable(__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_vtabptr_7cytimes_10pddatetime_pddt) < 0) __PYX_ERR(0, 54, __pyx_L1_error)
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if (__Pyx_MergeVtables(__pyx_ptype_7cytimes_10pddatetime_pddt) < 0) __PYX_ERR(0, 54, __pyx_L1_error)
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_pddt, (PyObject *) __pyx_ptype_7cytimes_10pddatetime_pddt) < 0) __PYX_ERR(0, 54, __pyx_L1_error)
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_7cytimes_10pddatetime_pddt) < 0) __PYX_ERR(0, 54, __pyx_L1_error)
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace_spec, NULL); if (unlikely(!__pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace)) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace_spec, __pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  #else
  __pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace = &__pyx_type_7cytimes_10pddatetime___pyx_scope_struct__replace;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  #endif
  #if PY_MAJOR_VERSION < 3
  __pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace->tp_print = 0;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace->tp_dictoffset && __pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_ptype_7cytimes_10pddatetime___pyx_scope_struct__replace->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_10(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", 
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
  #else
  sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyHeapTypeObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(9, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType_3_0_10(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyBoolObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_4bool_bool) __PYX_ERR(10, 8, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType_3_0_10(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyComplexObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_7complex_complex) __PYX_ERR(11, 15, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(1, 271, __pyx_L1_error)
  __pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(1, 316, __pyx_L1_error)
  __pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(1, 320, __pyx_L1_error)
  __pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(1, 359, __pyx_L1_error)
  __pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(1, 848, __pyx_L1_error)
  __pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_number) __PYX_ERR(1, 850, __pyx_L1_error)
  __pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(1, 852, __pyx_L1_error)
  __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(1, 854, __pyx_L1_error)
  __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(1, 856, __pyx_L1_error)
  __pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(1, 858, __pyx_L1_error)
  __pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(1, 860, __pyx_L1_error)
  __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(1, 862, __pyx_L1_error)
  __pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(1, 864, __pyx_L1_error)
  __pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_character) __PYX_ERR(1, 866, __pyx_L1_error)
  __pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(1, 930, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("datetime"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cpython_8datetime_date = __Pyx_ImportType_3_0_10(__pyx_t_1, "datetime", "date", sizeof(PyDateTime_Date), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyDateTime_Date),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_8datetime_date) __PYX_ERR(3, 70, __pyx_L1_error)
  __pyx_ptype_7cpython_8datetime_time = __Pyx_ImportType_3_0_10(__pyx_t_1, "datetime", "time", sizeof(PyDateTime_Time), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyDateTime_Time),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_8datetime_time) __PYX_ERR(3, 83, __pyx_L1_error)
  __pyx_ptype_7cpython_8datetime_datetime = __Pyx_ImportType_3_0_10(__pyx_t_1, "datetime", "datetime", sizeof(PyDateTime_DateTime), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyDateTime_DateTime),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_8datetime_datetime) __PYX_ERR(3, 109, __pyx_L1_error)
  __pyx_ptype_7cpython_8datetime_timedelta = __Pyx_ImportType_3_0_10(__pyx_t_1, "datetime", "timedelta", sizeof(PyDateTime_Delta), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyDateTime_Delta),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_8datetime_timedelta) __PYX_ERR(3, 147, __pyx_L1_error)
  __pyx_ptype_7cpython_8datetime_tzinfo = __Pyx_ImportType_3_0_10(__pyx_t_1, "datetime", "tzinfo", sizeof(PyDateTime_TZInfo), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyDateTime_TZInfo),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_8datetime_tzinfo) __PYX_ERR(3, 160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("cytimes.cyparser"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cytimes_8cyparser_Result = __Pyx_ImportType_3_0_10(__pyx_t_1, "cytimes.cyparser", "Result", sizeof(struct __pyx_obj_7cytimes_8cyparser_Result), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_7cytimes_8cyparser_Result),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cytimes_8cyparser_Result) __PYX_ERR(4, 153, __pyx_L1_error)
  __pyx_vtabptr_7cytimes_8cyparser_Result = (struct __pyx_vtabstruct_7cytimes_8cyparser_Result*)__Pyx_GetVtable(__pyx_ptype_7cytimes_8cyparser_Result); if (unlikely(!__pyx_vtabptr_7cytimes_8cyparser_Result)) __PYX_ERR(4, 153, __pyx_L1_error)
  __pyx_ptype_7cytimes_8cyparser_Config = __Pyx_ImportType_3_0_10(__pyx_t_1, "cytimes.cyparser", "Config", sizeof(struct __pyx_obj_7cytimes_8cyparser_Config), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_7cytimes_8cyparser_Config),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cytimes_8cyparser_Config) __PYX_ERR(4, 174, __pyx_L1_error)
  __pyx_vtabptr_7cytimes_8cyparser_Config = (struct __pyx_vtabstruct_7cytimes_8cyparser_Config*)__Pyx_GetVtable(__pyx_ptype_7cytimes_8cyparser_Config); if (unlikely(!__pyx_vtabptr_7cytimes_8cyparser_Config)) __PYX_ERR(4, 174, __pyx_L1_error)
  __pyx_ptype_7cytimes_8cyparser_Parser = __Pyx_ImportType_3_0_10(__pyx_t_1, "cytimes.cyparser", "Parser", sizeof(struct __pyx_obj_7cytimes_8cyparser_Parser), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_7cytimes_8cyparser_Parser),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cytimes_8cyparser_Parser) __PYX_ERR(4, 188, __pyx_L1_error)
  __pyx_vtabptr_7cytimes_8cyparser_Parser = (struct __pyx_vtabstruct_7cytimes_8cyparser_Parser*)__Pyx_GetVtable(__pyx_ptype_7cytimes_8cyparser_Parser); if (unlikely(!__pyx_vtabptr_7cytimes_8cyparser_Parser)) __PYX_ERR(4, 188, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("cytimes.cydelta"); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cytimes_7cydelta_cytimedelta = __Pyx_ImportType_3_0_10(__pyx_t_1, "cytimes.cydelta", "cytimedelta", sizeof(struct __pyx_obj_7cytimes_7cydelta_cytimedelta), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_7cytimes_7cydelta_cytimedelta),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cytimes_7cydelta_cytimedelta) __PYX_ERR(12, 28, __pyx_L1_error)
  __pyx_vtabptr_7cytimes_7cydelta_cytimedelta = (struct __pyx_vtabstruct_7cytimes_7cydelta_cytimedelta*)__Pyx_GetVtable(__pyx_ptype_7cytimes_7cydelta_cytimedelta); if (unlikely(!__pyx_vtabptr_7cytimes_7cydelta_cytimedelta)) __PYX_ERR(12, 28, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("cytimes.pydatetime"); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cytimes_10pydatetime_pydt = __Pyx_ImportType_3_0_10(__pyx_t_1, "cytimes.pydatetime", "pydt", sizeof(struct __pyx_obj_7cytimes_10pydatetime_pydt), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_7cytimes_10pydatetime_pydt),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cytimes_10pydatetime_pydt) __PYX_ERR(7, 35, __pyx_L1_error)
  __pyx_vtabptr_7cytimes_10pydatetime_pydt = (struct __pyx_vtabstruct_7cytimes_10pydatetime_pydt*)__Pyx_GetVtable(__pyx_ptype_7cytimes_10pydatetime_pydt); if (unlikely(!__pyx_vtabptr_7cytimes_10pydatetime_pydt)) __PYX_ERR(7, 35, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_variable_import_code(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __pyx_t_1 = PyImport_ImportModule("cytimes.cyparser"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "CONFIG_PERTAIN", (void **)&__pyx_vp_7cytimes_8cyparser_CONFIG_PERTAIN, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "CONFIG_JUMP", (void **)&__pyx_vp_7cytimes_8cyparser_CONFIG_JUMP, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "CONFIG_UTC", (void **)&__pyx_vp_7cytimes_8cyparser_CONFIG_UTC, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "CONFIG_TZ", (void **)&__pyx_vp_7cytimes_8cyparser_CONFIG_TZ, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "CONFIG_MONTH", (void **)&__pyx_vp_7cytimes_8cyparser_CONFIG_MONTH, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "CONFIG_WEEKDAY", (void **)&__pyx_vp_7cytimes_8cyparser_CONFIG_WEEKDAY, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "CONFIG_HMS", (void **)&__pyx_vp_7cytimes_8cyparser_CONFIG_HMS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "CONFIG_AMPM", (void **)&__pyx_vp_7cytimes_8cyparser_CONFIG_AMPM, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "US_FRACTION_CORRECTION", (void **)&__pyx_vp_7cytimes_8cyparser_US_FRACTION_CORRECTION, "unsigned int [5]") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TIMEZONE_NAME_LOCAL", (void **)&__pyx_vp_7cytimes_8cyparser_TIMEZONE_NAME_LOCAL, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("cytimes.typeref"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "ZONEINFO", (void **)&__pyx_vp_7cytimes_7typeref_ZONEINFO, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "STRUCT_TIME", (void **)&__pyx_vp_7cytimes_7typeref_STRUCT_TIME, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DATETIME64", (void **)&__pyx_vp_7cytimes_7typeref_DATETIME64, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DT64_ARRAY", (void **)&__pyx_vp_7cytimes_7typeref_DT64_ARRAY, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TIMEDELTA64", (void **)&__pyx_vp_7cytimes_7typeref_TIMEDELTA64, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TD64_ARRAY", (void **)&__pyx_vp_7cytimes_7typeref_TD64_ARRAY, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "SERIES", (void **)&__pyx_vp_7cytimes_7typeref_SERIES, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DATETIMEINDEX", (void **)&__pyx_vp_7cytimes_7typeref_DATETIMEINDEX, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TIMESTAMP", (void **)&__pyx_vp_7cytimes_7typeref_TIMESTAMP, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DT64TZ_ARRAY", (void **)&__pyx_vp_7cytimes_7typeref_DT64TZ_ARRAY, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TIMEDELTAINDEX", (void **)&__pyx_vp_7cytimes_7typeref_TIMEDELTAINDEX, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TIMEDELTA", (void **)&__pyx_vp_7cytimes_7typeref_TIMEDELTA, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "BASEOFFSET", (void **)&__pyx_vp_7cytimes_7typeref_BASEOFFSET, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_DATEOFFSET", (void **)&__pyx_vp_7cytimes_7typeref_OFST_DATEOFFSET, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_MICRO", (void **)&__pyx_vp_7cytimes_7typeref_OFST_MICRO, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_DAY", (void **)&__pyx_vp_7cytimes_7typeref_OFST_DAY, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_MONTHBEGIN", (void **)&__pyx_vp_7cytimes_7typeref_OFST_MONTHBEGIN, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_MONTHEND", (void **)&__pyx_vp_7cytimes_7typeref_OFST_MONTHEND, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_QUARTERBEGIN", (void **)&__pyx_vp_7cytimes_7typeref_OFST_QUARTERBEGIN, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_QUARTEREND", (void **)&__pyx_vp_7cytimes_7typeref_OFST_QUARTEREND, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_YEARBEGIN", (void **)&__pyx_vp_7cytimes_7typeref_OFST_YEARBEGIN, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "OFST_YEAREND", (void **)&__pyx_vp_7cytimes_7typeref_OFST_YEAREND, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "PARSERINFO", (void **)&__pyx_vp_7cytimes_7typeref_PARSERINFO, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "RELATIVEDELTA", (void **)&__pyx_vp_7cytimes_7typeref_RELATIVEDELTA, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("cytimes.cydatetime"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DAYS_BR_MONTH", (void **)&__pyx_vp_7cytimes_10cydatetime_DAYS_BR_MONTH, "unsigned int [13]") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DAYS_IN_MONTH", (void **)&__pyx_vp_7cytimes_10cydatetime_DAYS_IN_MONTH, "unsigned int [13]") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DAYS_BR_QUARTER", (void **)&__pyx_vp_7cytimes_10cydatetime_DAYS_BR_QUARTER, "unsigned int [5]") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DAYS_BR_QUARTER_NDARRAY", (void **)&__pyx_vp_7cytimes_10cydatetime_DAYS_BR_QUARTER_NDARRAY, "PyArrayObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DAYS_IN_QUARTER", (void **)&__pyx_vp_7cytimes_10cydatetime_DAYS_IN_QUARTER, "unsigned int [5]") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "MONTH_TO_QUARTER", (void **)&__pyx_vp_7cytimes_10cydatetime_MONTH_TO_QUARTER, "unsigned int [13]") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "UTC", (void **)&__pyx_vp_7cytimes_10cydatetime_UTC, "PyDateTime_TZInfo *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "EPOCH_UTC", (void **)&__pyx_vp_7cytimes_10cydatetime_EPOCH_UTC, "PyDateTime_DateTime *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "EPOCH_US", (void **)&__pyx_vp_7cytimes_10cydatetime_EPOCH_US, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "EPOCH_SEC", (void **)&__pyx_vp_7cytimes_10cydatetime_EPOCH_SEC, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "EPOCH_DAY", (void **)&__pyx_vp_7cytimes_10cydatetime_EPOCH_DAY, "int") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DT_MAX_US", (void **)&__pyx_vp_7cytimes_10cydatetime_DT_MAX_US, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "DT_MIN_US", (void **)&__pyx_vp_7cytimes_10cydatetime_DT_MIN_US, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TIME_START", (void **)&__pyx_vp_7cytimes_10cydatetime_TIME_START, "PyDateTime_Time *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TIME_END", (void **)&__pyx_vp_7cytimes_10cydatetime_TIME_END, "PyDateTime_Time *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "US_DAY", (void **)&__pyx_vp_7cytimes_10cydatetime_US_DAY, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "US_HOUR", (void **)&__pyx_vp_7cytimes_10cydatetime_US_HOUR, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "NS_DAY", (void **)&__pyx_vp_7cytimes_10cydatetime_NS_DAY, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "NS_HOUR", (void **)&__pyx_vp_7cytimes_10cydatetime_NS_HOUR, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "NS_MINUTE", (void **)&__pyx_vp_7cytimes_10cydatetime_NS_MINUTE, "PY_LONG_LONG") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TD_UNIT_ADJUSTMENT", (void **)&__pyx_vp_7cytimes_10cydatetime_TD_UNIT_ADJUSTMENT, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "FN_TIME_LOCALTIME", (void **)&__pyx_vp_7cytimes_10cydatetime_FN_TIME_LOCALTIME, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("cytimes.cydelta"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "WEEKDAY_REPRS", (void **)&__pyx_vp_7cytimes_7cydelta_WEEKDAY_REPRS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("cytimes.pydatetime"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr_3_0_10(__pyx_t_1, "TIMEZONE_AVAILABLE", (void **)&__pyx_vp_7cytimes_10pydatetime_TIMEZONE_AVAILABLE, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_function_import_code(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __pyx_t_1 = PyImport_ImportModule("cytimes.cydatetime"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "ymd_to_ordinal", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_ymd_to_ordinal, "unsigned int (unsigned int, unsigned int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "gen_dt_now", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_gen_dt_now, "PyDateTime_DateTime *(void)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "gen_dt_now_tz", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_gen_dt_now_tz, "PyDateTime_DateTime *(PyDateTime_TZInfo *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt_fr_dt", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt_fr_dt, "PyDateTime_DateTime *(PyDateTime_DateTime *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt_fr_date", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt_fr_date, "PyDateTime_DateTime *(PyDateTime_Date *, struct __pyx_opt_args_7cytimes_10cydatetime_dt_fr_date *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt_replace", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt_replace, "PyDateTime_DateTime *(PyDateTime_DateTime *, struct __pyx_opt_args_7cytimes_10cydatetime_dt_replace *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt_replace_tzinfo", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt_replace_tzinfo, "PyDateTime_DateTime *(PyDateTime_DateTime *, PyDateTime_TZInfo *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt_astimezone", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt_astimezone, "PyDateTime_DateTime *(PyDateTime_DateTime *, PyDateTime_TZInfo *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "gen_tzinfo_local", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_gen_tzinfo_local, "PyDateTime_TZInfo *(struct __pyx_opt_args_7cytimes_10cydatetime_gen_tzinfo_local *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "tzinfo_name", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_tzinfo_name, "PyObject *(PyObject *, PyDateTime_DateTime *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64_to_dt", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64_to_dt, "PyDateTime_DateTime *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64array_to_days", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64array_to_days, "PyArrayObject *(PyArrayObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64array_to_hours", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64array_to_hours, "PyArrayObject *(PyArrayObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64array_to_minutes", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64array_to_minutes, "PyArrayObject *(PyArrayObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64array_to_seconds", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64array_to_seconds, "PyArrayObject *(PyArrayObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64array_to_milliseconds", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64array_to_milliseconds, "PyArrayObject *(PyArrayObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64array_to_microseconds", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64array_to_microseconds, "PyArrayObject *(PyArrayObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64array_to_nanoseconds", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64array_to_nanoseconds, "PyArrayObject *(PyArrayObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "get_dt64series_unit", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_get_dt64series_unit, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64series_to_seconds", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64series_to_seconds, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64series_to_microseconds", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64series_to_microseconds, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64series_to_ordinals", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64series_to_ordinals, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "dt64series_to_timestamps", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_dt64series_to_timestamps, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "get_td64series_unit", (void (**)(void))&__pyx_f_7cytimes_10cydatetime_get_td64series_unit, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}


#if PY_MAJOR_VERSION >= 3
#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_pddatetime(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_pddatetime},
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "pddatetime",
      0, /* m_doc */
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      0, /* m_size */
    #elif CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstate), /* m_size */
    #else
      -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif
#endif

#ifndef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#elif PY_MAJOR_VERSION < 3
#ifdef __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" void
#else
#define __Pyx_PyMODINIT_FUNC void
#endif
#else
#ifdef __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyObject *
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC initpddatetime(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC initpddatetime(void)
#else
__Pyx_PyMODINIT_FUNC PyInit_pddatetime(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_pddatetime(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    #if PY_VERSION_HEX >= 0x030700A1
    static PY_INT64_T main_interpreter_id = -1;
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return (unlikely(current_id == -1)) ? -1 : 0;
    } else if (unlikely(main_interpreter_id != current_id))
    #else
    static PyInterpreterState *main_interpreter = NULL;
    PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
    if (!main_interpreter) {
        main_interpreter = current_interpreter;
    } else if (unlikely(main_interpreter != current_interpreter))
    #endif
    {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *module, const char* from_name, const char* to_name, int allow_none)
#else
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
#endif
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
#if CYTHON_COMPILING_IN_LIMITED_API
            result = PyModule_AddObject(module, to_name, value);
#else
            result = PyDict_SetItemString(moddict, to_name, value);
#endif
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    if (__Pyx_check_single_interpreter())
        return NULL;
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
#if CYTHON_COMPILING_IN_LIMITED_API
    moddict = module;
#else
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
#endif
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec_pddatetime(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'pddatetime' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #elif PY_MAJOR_VERSION >= 3
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_m = __pyx_pyinit_module;
  Py_INCREF(__pyx_m);
  #else
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("pddatetime", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #elif CYTHON_USE_MODULE_STATE
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  {
    int add_module_result = PyState_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "pddatetime" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #endif
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_cython_runtime = __Pyx_PyImport_AddModuleRef((const char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_REFNANNY
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
  PyErr_Clear();
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
  if (!__Pyx_RefNanny)
      Py_FatalError("failed to import 'refnanny' module");
}
#endif
  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_pddatetime(void)", 0);
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pxy_PyFrame_Initialize_Offsets
  __Pxy_PyFrame_Initialize_Offsets();
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_AsyncGen_USED
  if (__pyx_AsyncGen_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  PyEval_InitThreads();
  #endif
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main_cytimes__pddatetime) {
    if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "cytimes.pddatetime")) {
      if (unlikely((PyDict_SetItemString(modules, "cytimes.pddatetime", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code();
  if (unlikely((__Pyx_modinit_variable_export_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_function_export_code();
  if (unlikely((__Pyx_modinit_type_init_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_type_import_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_variable_import_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_function_import_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif

  /* "cytimes/pddatetime.py":23
 * from cython.cimports.cytimes.cyparser import Config, Parser, CONFIG_MONTH, CONFIG_WEEKDAY  # type: ignore
 * 
 * np.import_array()             # <<<<<<<<<<<<<<
 * np.import_umath()
 * datetime.import_datetime()
 */
  __pyx_t_2 = __pyx_f_5numpy_import_array(); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 23, __pyx_L1_error)

  /* "cytimes/pddatetime.py":24
 * 
 * np.import_array()
 * np.import_umath()             # <<<<<<<<<<<<<<
 * datetime.import_datetime()
 * 
 */
  __pyx_t_2 = __pyx_f_5numpy_import_umath(); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 24, __pyx_L1_error)

  /* "cytimes/pddatetime.py":25
 * np.import_array()
 * np.import_umath()
 * datetime.import_datetime()             # <<<<<<<<<<<<<<
 * 
 * # Python imports
 */
  __pyx_f_7cpython_8datetime_import_datetime();

  /* "cytimes/pddatetime.py":28
 * 
 * # Python imports
 * from typing import Literal, Iterator             # <<<<<<<<<<<<<<
 * import datetime, numpy as np
 * from pandas.errors import OutOfBoundsDatetime
 */
  __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_n_s_Literal);
  __Pyx_GIVEREF(__pyx_n_s_Literal);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_Literal)) __PYX_ERR(0, 28, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_Iterator);
  __Pyx_GIVEREF(__pyx_n_s_Iterator);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_n_s_Iterator)) __PYX_ERR(0, 28, __pyx_L1_error);
  __pyx_t_4 = __Pyx_Import(__pyx_n_s_typing, __pyx_t_3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_Literal); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Literal, __pyx_t_3) < 0) __PYX_ERR(0, 28, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_Iterator); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Iterator, __pyx_t_3) < 0) __PYX_ERR(0, 28, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":29
 * # Python imports
 * from typing import Literal, Iterator
 * import datetime, numpy as np             # <<<<<<<<<<<<<<
 * from pandas.errors import OutOfBoundsDatetime
 * from pandas import to_datetime, to_timedelta, date_range
 */
  __pyx_t_4 = __Pyx_ImportDottedModule(__pyx_n_s_datetime, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_datetime, __pyx_t_4) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_ImportDottedModule(__pyx_n_s_numpy, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_4) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":30
 * from typing import Literal, Iterator
 * import datetime, numpy as np
 * from pandas.errors import OutOfBoundsDatetime             # <<<<<<<<<<<<<<
 * from pandas import to_datetime, to_timedelta, date_range
 * from pandas import Series, DataFrame, Index, Timestamp, TimedeltaIndex
 */
  __pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_n_s_OutOfBoundsDatetime);
  __Pyx_GIVEREF(__pyx_n_s_OutOfBoundsDatetime);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 0, __pyx_n_s_OutOfBoundsDatetime)) __PYX_ERR(0, 30, __pyx_L1_error);
  __pyx_t_3 = __Pyx_Import(__pyx_n_s_pandas_errors, __pyx_t_4, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_OutOfBoundsDatetime); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_OutOfBoundsDatetime, __pyx_t_4) < 0) __PYX_ERR(0, 30, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":31
 * import datetime, numpy as np
 * from pandas.errors import OutOfBoundsDatetime
 * from pandas import to_datetime, to_timedelta, date_range             # <<<<<<<<<<<<<<
 * from pandas import Series, DataFrame, Index, Timestamp, TimedeltaIndex
 * from cytimes.cyparser import Config
 */
  __pyx_t_3 = PyList_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_n_s_to_datetime);
  __Pyx_GIVEREF(__pyx_n_s_to_datetime);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_to_datetime)) __PYX_ERR(0, 31, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_to_timedelta);
  __Pyx_GIVEREF(__pyx_n_s_to_timedelta);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_n_s_to_timedelta)) __PYX_ERR(0, 31, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_date_range);
  __Pyx_GIVEREF(__pyx_n_s_date_range);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 2, __pyx_n_s_date_range)) __PYX_ERR(0, 31, __pyx_L1_error);
  __pyx_t_4 = __Pyx_Import(__pyx_n_s_pandas, __pyx_t_3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_to_datetime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_to_datetime, __pyx_t_3) < 0) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_to_timedelta); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_to_timedelta, __pyx_t_3) < 0) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_date_range); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_date_range, __pyx_t_3) < 0) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":32
 * from pandas.errors import OutOfBoundsDatetime
 * from pandas import to_datetime, to_timedelta, date_range
 * from pandas import Series, DataFrame, Index, Timestamp, TimedeltaIndex             # <<<<<<<<<<<<<<
 * from cytimes.cyparser import Config
 * from cytimes.pydatetime import pydt
 */
  __pyx_t_4 = PyList_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_n_s_Series);
  __Pyx_GIVEREF(__pyx_n_s_Series);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 0, __pyx_n_s_Series)) __PYX_ERR(0, 32, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_DataFrame);
  __Pyx_GIVEREF(__pyx_n_s_DataFrame);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 1, __pyx_n_s_DataFrame)) __PYX_ERR(0, 32, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_Index);
  __Pyx_GIVEREF(__pyx_n_s_Index);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 2, __pyx_n_s_Index)) __PYX_ERR(0, 32, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_Timestamp);
  __Pyx_GIVEREF(__pyx_n_s_Timestamp);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 3, __pyx_n_s_Timestamp)) __PYX_ERR(0, 32, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_TimedeltaIndex);
  __Pyx_GIVEREF(__pyx_n_s_TimedeltaIndex);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 4, __pyx_n_s_TimedeltaIndex)) __PYX_ERR(0, 32, __pyx_L1_error);
  __pyx_t_3 = __Pyx_Import(__pyx_n_s_pandas, __pyx_t_4, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Series); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Series, __pyx_t_4) < 0) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_DataFrame); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DataFrame, __pyx_t_4) < 0) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Index, __pyx_t_4) < 0) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Timestamp); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Timestamp, __pyx_t_4) < 0) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_TimedeltaIndex); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TimedeltaIndex, __pyx_t_4) < 0) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":33
 * from pandas import to_datetime, to_timedelta, date_range
 * from pandas import Series, DataFrame, Index, Timestamp, TimedeltaIndex
 * from cytimes.cyparser import Config             # <<<<<<<<<<<<<<
 * from cytimes.pydatetime import pydt
 * from cytimes import cydatetime as cydt, typeref, errors
 */
  __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_n_s_Config);
  __Pyx_GIVEREF(__pyx_n_s_Config);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_Config)) __PYX_ERR(0, 33, __pyx_L1_error);
  __pyx_t_4 = __Pyx_Import(__pyx_n_s_cytimes_cyparser, __pyx_t_3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":34
 * from pandas import Series, DataFrame, Index, Timestamp, TimedeltaIndex
 * from cytimes.cyparser import Config
 * from cytimes.pydatetime import pydt             # <<<<<<<<<<<<<<
 * from cytimes import cydatetime as cydt, typeref, errors
 * 
 */
  __pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_n_s_pydt);
  __Pyx_GIVEREF(__pyx_n_s_pydt);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 0, __pyx_n_s_pydt)) __PYX_ERR(0, 34, __pyx_L1_error);
  __pyx_t_3 = __Pyx_Import(__pyx_n_s_cytimes_pydatetime, __pyx_t_4, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":35
 * from cytimes.cyparser import Config
 * from cytimes.pydatetime import pydt
 * from cytimes import cydatetime as cydt, typeref, errors             # <<<<<<<<<<<<<<
 * 
 * __all__ = ["pddt"]
 */
  __pyx_t_3 = PyList_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_n_s_cydatetime);
  __Pyx_GIVEREF(__pyx_n_s_cydatetime);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_cydatetime)) __PYX_ERR(0, 35, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_typeref);
  __Pyx_GIVEREF(__pyx_n_s_typeref);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_n_s_typeref)) __PYX_ERR(0, 35, __pyx_L1_error);
  __Pyx_INCREF(__pyx_n_s_errors);
  __Pyx_GIVEREF(__pyx_n_s_errors);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 2, __pyx_n_s_errors)) __PYX_ERR(0, 35, __pyx_L1_error);
  __pyx_t_4 = __Pyx_Import(__pyx_n_s_cytimes, __pyx_t_3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_cydatetime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_cydt, __pyx_t_3) < 0) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_typeref); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_typeref, __pyx_t_3) < 0) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_errors); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_errors, __pyx_t_3) < 0) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":37
 * from cytimes import cydatetime as cydt, typeref, errors
 * 
 * __all__ = ["pddt"]             # <<<<<<<<<<<<<<
 * 
 * # Constants -----------------------------------------------------------------------------------
 */
  __pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_n_u_pddt);
  __Pyx_GIVEREF(__pyx_n_u_pddt);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_pddt)) __PYX_ERR(0, 37, __pyx_L1_error);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_all, __pyx_t_4) < 0) __PYX_ERR(0, 37, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":41
 * # Constants -----------------------------------------------------------------------------------
 * # . unit
 * UNIT_FREQUENCY: set[str] = {"D", "h", "m", "s", "ms", "us", "ns"}             # <<<<<<<<<<<<<<
 * # . function
 * FN_PD_DATERANGE: object = date_range
 */
  __pyx_t_4 = PySet_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PySet_Add(__pyx_t_4, __pyx_n_u_D) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
  if (PySet_Add(__pyx_t_4, __pyx_n_u_h) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
  if (PySet_Add(__pyx_t_4, __pyx_n_u_m) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
  if (PySet_Add(__pyx_t_4, __pyx_n_u_s) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
  if (PySet_Add(__pyx_t_4, __pyx_n_u_ms) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
  if (PySet_Add(__pyx_t_4, __pyx_n_u_us) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
  if (PySet_Add(__pyx_t_4, __pyx_n_u_ns) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
  __Pyx_XGOTREF(__pyx_v_7cytimes_10pddatetime_UNIT_FREQUENCY);
  __Pyx_DECREF_SET(__pyx_v_7cytimes_10pddatetime_UNIT_FREQUENCY, ((PyObject*)__pyx_t_4));
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":43
 * UNIT_FREQUENCY: set[str] = {"D", "h", "m", "s", "ms", "us", "ns"}
 * # . function
 * FN_PD_DATERANGE: object = date_range             # <<<<<<<<<<<<<<
 * FN_PD_TODATETIME: object = to_datetime
 * FN_PD_TOTIMEDELTA: object = to_timedelta
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_date_range); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_XGOTREF(__pyx_v_7cytimes_10pddatetime_FN_PD_DATERANGE);
  __Pyx_DECREF_SET(__pyx_v_7cytimes_10pddatetime_FN_PD_DATERANGE, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":44
 * # . function
 * FN_PD_DATERANGE: object = date_range
 * FN_PD_TODATETIME: object = to_datetime             # <<<<<<<<<<<<<<
 * FN_PD_TOTIMEDELTA: object = to_timedelta
 * FN_NP_ABS: object = np.abs
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_to_datetime); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_XGOTREF(__pyx_v_7cytimes_10pddatetime_FN_PD_TODATETIME);
  __Pyx_DECREF_SET(__pyx_v_7cytimes_10pddatetime_FN_PD_TODATETIME, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":45
 * FN_PD_DATERANGE: object = date_range
 * FN_PD_TODATETIME: object = to_datetime
 * FN_PD_TOTIMEDELTA: object = to_timedelta             # <<<<<<<<<<<<<<
 * FN_NP_ABS: object = np.abs
 * FN_NP_FULL: object = np.full
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_to_timedelta); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_XGOTREF(__pyx_v_7cytimes_10pddatetime_FN_PD_TOTIMEDELTA);
  __Pyx_DECREF_SET(__pyx_v_7cytimes_10pddatetime_FN_PD_TOTIMEDELTA, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":46
 * FN_PD_TODATETIME: object = to_datetime
 * FN_PD_TOTIMEDELTA: object = to_timedelta
 * FN_NP_ABS: object = np.abs             # <<<<<<<<<<<<<<
 * FN_NP_FULL: object = np.full
 * FN_NP_WHERE: object = np.where
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_abs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_XGOTREF(__pyx_v_7cytimes_10pddatetime_FN_NP_ABS);
  __Pyx_DECREF_SET(__pyx_v_7cytimes_10pddatetime_FN_NP_ABS, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":47
 * FN_PD_TOTIMEDELTA: object = to_timedelta
 * FN_NP_ABS: object = np.abs
 * FN_NP_FULL: object = np.full             # <<<<<<<<<<<<<<
 * FN_NP_WHERE: object = np.where
 * FN_NP_MIN: object = np.minimum
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 47, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_full); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 47, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_XGOTREF(__pyx_v_7cytimes_10pddatetime_FN_NP_FULL);
  __Pyx_DECREF_SET(__pyx_v_7cytimes_10pddatetime_FN_NP_FULL, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":48
 * FN_NP_ABS: object = np.abs
 * FN_NP_FULL: object = np.full
 * FN_NP_WHERE: object = np.where             # <<<<<<<<<<<<<<
 * FN_NP_MIN: object = np.minimum
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_where); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_XGOTREF(__pyx_v_7cytimes_10pddatetime_FN_NP_WHERE);
  __Pyx_DECREF_SET(__pyx_v_7cytimes_10pddatetime_FN_NP_WHERE, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":49
 * FN_NP_FULL: object = np.full
 * FN_NP_WHERE: object = np.where
 * FN_NP_MIN: object = np.minimum             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_minimum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_XGOTREF(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN);
  __Pyx_DECREF_SET(__pyx_v_7cytimes_10pddatetime_FN_NP_MIN, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cytimes/pddatetime.py":70
 *     _default: object
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def now(
 *         cls,
 */
  __pyx_t_4 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_size, __pyx_n_s_int) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_tz, __pyx_kp_s_str_datetime_tzinfo_None) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_name, __pyx_kp_s_str_None) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_unit, __pyx_kp_s_Literal_s_ms_us_ns_None) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_n_s_pddt) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_1now, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_now, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__29)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__30);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_now, __pyx_t_3) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);
  __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_now); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Method_ClassMethod(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_now, __pyx_t_4) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":96
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_dtobj(
 *         cls,
 */
  __pyx_t_4 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_size, __pyx_n_s_int) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtobj, __pyx_n_s_object) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_default, __pyx_kp_s_object_None) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_day1st, __pyx_kp_s_bool_None) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_year1st, __pyx_kp_s_bool_None) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_cfg, __pyx_kp_s_Config_None) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_name, __pyx_kp_s_str_None) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_unit, __pyx_kp_s_Literal_s_ms_us_ns_None) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_n_s_pddt) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_3from_dtobj, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_from_dtobj, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__32)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__33);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_dtobj, __pyx_t_3) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);
  __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_dtobj); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Method_ClassMethod(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_dtobj, __pyx_t_4) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":174
 *         month: int,
 *         day: int,
 *         hour: int = 0,             # <<<<<<<<<<<<<<
 *         minute: int = 0,
 *         second: int = 0,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 174, __pyx_L1_error)
  __Pyx_INCREF(__pyx_int_0);
  __pyx_k__9 = ((PyObject*)__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);

  /* "cytimes/pddatetime.py":175
 *         day: int,
 *         hour: int = 0,
 *         minute: int = 0,             # <<<<<<<<<<<<<<
 *         second: int = 0,
 *         microsecond: int = 0,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 175, __pyx_L1_error)
  __Pyx_INCREF(__pyx_int_0);
  __pyx_k__10 = ((PyObject*)__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);

  /* "cytimes/pddatetime.py":176
 *         hour: int = 0,
 *         minute: int = 0,
 *         second: int = 0,             # <<<<<<<<<<<<<<
 *         microsecond: int = 0,
 *         nanosecond: int = 0,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 176, __pyx_L1_error)
  __Pyx_INCREF(__pyx_int_0);
  __pyx_k__11 = ((PyObject*)__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);

  /* "cytimes/pddatetime.py":177
 *         minute: int = 0,
 *         second: int = 0,
 *         microsecond: int = 0,             # <<<<<<<<<<<<<<
 *         nanosecond: int = 0,
 *         tz: str | datetime.tzinfo | None = None,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_INCREF(__pyx_int_0);
  __pyx_k__12 = ((PyObject*)__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);

  /* "cytimes/pddatetime.py":178
 *         second: int = 0,
 *         microsecond: int = 0,
 *         nanosecond: int = 0,             # <<<<<<<<<<<<<<
 *         tz: str | datetime.tzinfo | None = None,
 *         name: str | None = None,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 178, __pyx_L1_error)
  __Pyx_INCREF(__pyx_int_0);
  __pyx_k__13 = ((PyObject*)__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);

  /* "cytimes/pddatetime.py":174
 *         month: int,
 *         day: int,
 *         hour: int = 0,             # <<<<<<<<<<<<<<
 *         minute: int = 0,
 *         second: int = 0,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 174, __pyx_L1_error)

  /* "cytimes/pddatetime.py":175
 *         day: int,
 *         hour: int = 0,
 *         minute: int = 0,             # <<<<<<<<<<<<<<
 *         second: int = 0,
 *         microsecond: int = 0,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 175, __pyx_L1_error)

  /* "cytimes/pddatetime.py":176
 *         hour: int = 0,
 *         minute: int = 0,
 *         second: int = 0,             # <<<<<<<<<<<<<<
 *         microsecond: int = 0,
 *         nanosecond: int = 0,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 176, __pyx_L1_error)

  /* "cytimes/pddatetime.py":177
 *         minute: int = 0,
 *         second: int = 0,
 *         microsecond: int = 0,             # <<<<<<<<<<<<<<
 *         nanosecond: int = 0,
 *         tz: str | datetime.tzinfo | None = None,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 177, __pyx_L1_error)

  /* "cytimes/pddatetime.py":178
 *         second: int = 0,
 *         microsecond: int = 0,
 *         nanosecond: int = 0,             # <<<<<<<<<<<<<<
 *         tz: str | datetime.tzinfo | None = None,
 *         name: str | None = None,
 */
  if (!(likely(__Pyx_Py3Int_CheckExact(__pyx_int_0)) || __Pyx_RaiseUnexpectedTypeError("int", __pyx_int_0))) __PYX_ERR(0, 178, __pyx_L1_error)

  /* "cytimes/pddatetime.py":167
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_datetime(
 *         cls,
 */
  __pyx_t_4 = PyTuple_New(8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_0)) __PYX_ERR(0, 167, __pyx_L1_error);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_0)) __PYX_ERR(0, 167, __pyx_L1_error);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_int_0)) __PYX_ERR(0, 167, __pyx_L1_error);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_int_0)) __PYX_ERR(0, 167, __pyx_L1_error);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_int_0)) __PYX_ERR(0, 167, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None)) __PYX_ERR(0, 167, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 6, Py_None)) __PYX_ERR(0, 167, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 7, Py_None)) __PYX_ERR(0, 167, __pyx_L1_error);
  __pyx_t_3 = __Pyx_PyDict_NewPresized(13); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_size, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_year, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_month, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_day, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_hour, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_minute, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_second, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_microsecond, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_nanosecond, __pyx_n_s_int) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_tz, __pyx_kp_s_str_datetime_tzinfo_None) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_name, __pyx_kp_s_str_None) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_unit, __pyx_kp_s_Literal_s_ms_us_ns_None) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_n_s_pddt) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_5from_datetime, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_from_datetime, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__35)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_t_4);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_datetime, __pyx_t_5) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);
  __Pyx_GetNameInClass(__pyx_t_5, (PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_datetime); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_Method_ClassMethod(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_datetime, __pyx_t_3) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":221
 *         return cls(typeref.SERIES([dt] * size, name=name), unit=unit, copy=False)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_range(
 *         cls,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_start, __pyx_n_s_object) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_end, __pyx_n_s_object) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_freq, __pyx_kp_s_Literal_Y_M_W_D_Bh_m_s_ms_us_ns) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_periods, __pyx_n_s_int) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_tz, __pyx_kp_s_str_datetime_tzinfo_None) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_inclusive, __pyx_kp_s_Literal_left_right_both_neither) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_normalize, __pyx_n_s_bool) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_name, __pyx_kp_s_str_None) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_unit, __pyx_kp_s_Literal_s_ms_us_ns_None) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_n_s_pddt) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_7from_range, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_from_range, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__37)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__38);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_range, __pyx_t_5) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);
  __Pyx_GetNameInClass(__pyx_t_5, (PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_range); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_Method_ClassMethod(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_from_range, __pyx_t_3) < 0) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":567
 * 
 *     # Year ------------------------------------------------------------------------------------
 *     def is_leapyear(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are leap years `<'Series[bool]'>`."""
 *         return self._dt.dt.is_leap_year
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 567, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_11is_leapyear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_leapyear, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__40)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_leapyear, __pyx_t_5) < 0) __PYX_ERR(0, 567, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":571
 *         return self._dt.dt.is_leap_year
 * 
 *     def leap_bt_years(self, year: int) -> Series[int]:             # <<<<<<<<<<<<<<
 *         """Calculate the number of leap years between the dates
 *         and the given 'year' `<'Series[int]'>`."""
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_year, __pyx_n_s_int) < 0) __PYX_ERR(0, 571, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_kp_s_Series_int) < 0) __PYX_ERR(0, 571, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_13leap_bt_years, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_leap_bt_years, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__42)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_leap_bt_years, __pyx_t_3) < 0) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":603
 *         return self._dt.dt.day_of_year
 * 
 *     def is_year(self, year: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'year' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.year.values == year)
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_year, __pyx_n_s_int) < 0) __PYX_ERR(0, 603, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 603, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_15is_year, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_year, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__44)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_year, __pyx_t_5) < 0) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":607
 *         return self._arr_to_series(self._dt.dt.year.values == year)
 * 
 *     def is_year_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_start
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 607, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_17is_year_1st, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_year_1st, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__45)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_year_1st, __pyx_t_3) < 0) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":611
 *         return self._dt.dt.is_year_start
 * 
 *     def is_year_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the year `<'Series[bool]'>`."""
 *         return self._dt.dt.is_year_end
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 611, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_19is_year_lst, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_year_lst, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__46)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_year_lst, __pyx_t_5) < 0) __PYX_ERR(0, 611, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":615
 *         return self._dt.dt.is_year_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year_1st(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_21to_year_1st, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_year_1st, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__47)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_year_1st, __pyx_t_5) < 0) __PYX_ERR(0, 615, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":626
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year_lst(self) -> pddt:
 *         """Go to the 1st day of the year `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_23to_year_lst, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_year_lst, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__48)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_year_lst, __pyx_t_5) < 0) __PYX_ERR(0, 626, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":635
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_year(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_month, __pyx_kp_s_cython_int_str_None) < 0) __PYX_ERR(0, 635, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 635, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_25to_curr_year, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_curr_year, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__50)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__51);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_curr_year, __pyx_t_3) < 0) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":708
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_year(
 *         self,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_month, __pyx_kp_s_cython_int_str_None) < 0) __PYX_ERR(0, 708, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 708, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_27to_prev_year, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_prev_year, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__52)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__51);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_prev_year, __pyx_t_5) < 0) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":717
 *         return self.to_year(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_year(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_month, __pyx_kp_s_cython_int_str_None) < 0) __PYX_ERR(0, 717, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 717, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_29to_next_year, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_next_year, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__51);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_next_year, __pyx_t_3) < 0) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":726
 *         return self.to_year(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_year(
 *         self,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_offset, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 726, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_month, __pyx_kp_s_cython_int_str_None) < 0) __PYX_ERR(0, 726, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 726, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_31to_year, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_year, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__56);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_year, __pyx_t_5) < 0) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":853
 *         return self._arr_to_series(self._dt.dt.quarter.values * 3)
 * 
 *     def is_quarter(self, quarter: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'quarter' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_quarter, __pyx_n_s_int) < 0) __PYX_ERR(0, 853, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 853, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_33is_quarter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_quarter, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__58)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_quarter, __pyx_t_3) < 0) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":857
 *         return self._arr_to_series(self._dt.dt.quarter.values == quarter)
 * 
 *     def is_quarter_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_start
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 857, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_35is_quarter_1st, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_quarter_1st, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__59)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_quarter_1st, __pyx_t_5) < 0) __PYX_ERR(0, 857, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":861
 *         return self._dt.dt.is_quarter_start
 * 
 *     def is_quarter_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the quarter `<'Series[bool]'>`."""
 *         return self._dt.dt.is_quarter_end
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 861, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_37is_quarter_lst, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_quarter_lst, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__60)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_quarter_lst, __pyx_t_3) < 0) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":865
 *         return self._dt.dt.is_quarter_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter_1st(self) -> pddt:
 *         """Go to the 1st day of the quarter `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_39to_quarter_1st, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_quarter_1st, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_quarter_1st, __pyx_t_3) < 0) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":878
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter_lst(self) -> pddt:
 *         """Go to the last day of the quarter `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_41to_quarter_lst, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_quarter_lst, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__62)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_quarter_lst, __pyx_t_3) < 0) __PYX_ERR(0, 878, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":887
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])'
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_month, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 887, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 887, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_43to_curr_quarter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_curr_quarter, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__63)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__64);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_curr_quarter, __pyx_t_5) < 0) __PYX_ERR(0, 887, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":957
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])' and
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_month, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 957, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 957, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_45to_prev_quarter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_prev_quarter, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__65)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__64);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_prev_quarter, __pyx_t_3) < 0) __PYX_ERR(0, 957, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":963
 *         return self.to_quarter(-1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_quarter(self, month: cython.int = -1, day: cython.int = -1) -> pddt:
 *         """Go to specific 'month (of the quarter [1..3])' and
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_month, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 963, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 963, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_47to_next_quarter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_next_quarter, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__66)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__64);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_next_quarter, __pyx_t_5) < 0) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":969
 *         return self.to_quarter(1, month, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_quarter(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_offset, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 969, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_month, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 969, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 969, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_49to_quarter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_quarter, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__67)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__68);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_quarter, __pyx_t_3) < 0) __PYX_ERR(0, 969, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1067
 *         )
 * 
 *     def is_month(self, month: int | str) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'month' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_month, __pyx_kp_s_int_str) < 0) __PYX_ERR(0, 1067, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 1067, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_51is_month, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_month, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__70)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_month, __pyx_t_5) < 0) __PYX_ERR(0, 1067, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1071
 *         return self._arr_to_series(self._dt.dt.month.values == self._parse_month(month))
 * 
 *     def is_month_1st(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the 1st day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_start
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 1071, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_53is_month_1st, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_month_1st, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__71)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_month_1st, __pyx_t_3) < 0) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1075
 *         return self._dt.dt.is_month_start
 * 
 *     def is_month_lst(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are the last day of the month `<'Series[bool]'>`."""
 *         return self._dt.dt.is_month_end
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 1075, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_55is_month_lst, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_month_lst, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__72)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_month_lst, __pyx_t_5) < 0) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1079
 *         return self._dt.dt.is_month_end
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month_1st(self) -> pddt:
 *         """Go to the 1st day of the month `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_57to_month_1st, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_month_1st, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__73)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_month_1st, __pyx_t_5) < 0) __PYX_ERR(0, 1079, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1090
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month_lst(self) -> pddt:
 *         """Go to the last day of the month `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_59to_month_lst, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_month_lst, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__74)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_month_lst, __pyx_t_5) < 0) __PYX_ERR(0, 1090, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1099
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the current month `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1099, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_61to_curr_month, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_curr_month, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__76)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__77);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_curr_month, __pyx_t_3) < 0) __PYX_ERR(0, 1099, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1135
 *         return self.to_month_lst()  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the previous month `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1135, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_63to_prev_month, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_prev_month, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__78)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__77);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_prev_month, __pyx_t_5) < 0) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1140
 *         return self.to_month(-1, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_month(self, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the next month `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1140, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_65to_next_month, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_next_month, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__79)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__77);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_next_month, __pyx_t_3) < 0) __PYX_ERR(0, 1140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1145
 *         return self.to_month(1, day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_month(self, offset: cython.int = 0, day: cython.int = -1) -> pddt:
 *         """Go to specific 'day' of the current month (+/-) 'offset' `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_offset, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1145, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1145, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_67to_month, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_month, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__81)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__82);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_month, __pyx_t_5) < 0) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1234
 *         return self._dt.dt.isocalendar()
 * 
 *     def is_weekday(self, weekday: int | str) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'weekday' `<'Series[bool]'>`."""
 *         return self._arr_to_series(
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_weekday, __pyx_kp_s_int_str) < 0) __PYX_ERR(0, 1234, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 1234, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_69is_weekday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_weekday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__84)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_weekday, __pyx_t_3) < 0) __PYX_ERR(0, 1234, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1240
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_monday(self) -> pddt:
 *         """Go to Monday of the current week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_71to_monday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_monday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__85)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_monday, __pyx_t_3) < 0) __PYX_ERR(0, 1240, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1245
 *         return self._c_to_curr_weekday(0)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_tuesday(self) -> pddt:
 *         """Go to Tuesday of the current week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_73to_tuesday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_tuesday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__86)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_tuesday, __pyx_t_3) < 0) __PYX_ERR(0, 1245, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1250
 *         return self._c_to_curr_weekday(1)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_wednesday(self) -> pddt:
 *         """Go to Wednesday of the current week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_75to_wednesday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_wednesday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__87)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_wednesday, __pyx_t_3) < 0) __PYX_ERR(0, 1250, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1255
 *         return self._c_to_curr_weekday(2)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_thursday(self) -> pddt:
 *         """Go to Thursday of the current week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_77to_thursday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_thursday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__88)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_thursday, __pyx_t_3) < 0) __PYX_ERR(0, 1255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1260
 *         return self._c_to_curr_weekday(3)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_friday(self) -> pddt:
 *         """Go to Friday of the current week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_79to_friday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_friday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__89)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_friday, __pyx_t_3) < 0) __PYX_ERR(0, 1260, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1265
 *         return self._c_to_curr_weekday(4)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_saturday(self) -> pddt:
 *         """Go to Saturday of the current week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_81to_saturday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_saturday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__90)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_saturday, __pyx_t_3) < 0) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1270
 *         return self._c_to_curr_weekday(5)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_sunday(self) -> pddt:
 *         """Go to Sunday of the current week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_83to_sunday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_sunday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__91)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_sunday, __pyx_t_3) < 0) __PYX_ERR(0, 1270, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1275
 *         return self._c_to_curr_weekday(6)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_curr_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the current week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_weekday, __pyx_kp_s_int_str_None) < 0) __PYX_ERR(0, 1275, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_85to_curr_weekday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_curr_weekday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__92)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__93);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_curr_weekday, __pyx_t_5) < 0) __PYX_ERR(0, 1275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1291
 *         return self._new(dt, None, None, False)  # exit
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_prev_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the previous week `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_weekday, __pyx_kp_s_int_str_None) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_87to_prev_weekday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_prev_weekday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__94)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__93);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_prev_weekday, __pyx_t_3) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1296
 *         return self.to_weekday(-1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_next_weekday(self, weekday: int | str | None = None) -> pddt:
 *         """Go to specific 'weekday' of the next week `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_weekday, __pyx_kp_s_int_str_None) < 0) __PYX_ERR(0, 1296, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_89to_next_weekday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_next_weekday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__95)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__93);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_next_weekday, __pyx_t_5) < 0) __PYX_ERR(0, 1296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1301
 *         return self.to_weekday(1, weekday)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_weekday(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_offset, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1301, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_weekday, __pyx_kp_s_cython_int_str_None) < 0) __PYX_ERR(0, 1301, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_91to_weekday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_weekday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__97)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__98);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_weekday, __pyx_t_3) < 0) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1332
 * 
 *     # Day -------------------------------------------------------------------------------------
 *     def is_day(self, day: int) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the dates are in the given 'day' `<'Series[bool]'>`."""
 *         return self._arr_to_series(self._dt.dt.day.values == day)
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_day, __pyx_n_s_int) < 0) __PYX_ERR(0, 1332, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 1332, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_93is_day, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_day, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__99)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_day, __pyx_t_5) < 0) __PYX_ERR(0, 1332, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1336
 *         return self._arr_to_series(self._dt.dt.day.values == day)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_yesterday(self) -> pddt:
 *         """Go to the previous day `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_95to_yesterday, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_yesterday, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__100)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_yesterday, __pyx_t_5) < 0) __PYX_ERR(0, 1336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1345
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_tomorrow(self) -> pddt:
 *         """Go to the next day `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_97to_tomorrow, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_tomorrow, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__101)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_tomorrow, __pyx_t_5) < 0) __PYX_ERR(0, 1345, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1354
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_day(self, offset: cython.int) -> pddt:
 *         """Go to the current day (+/-) 'offset' `<'pddt'>`."""
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_offset, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1354, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_99to_day, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_day, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__103)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_day, __pyx_t_3) < 0) __PYX_ERR(0, 1354, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1368
 * 
 *     # Time ------------------------------------------------------------------------------------
 *     def is_time_start(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the current time is the
 *         start of time (00:00:00.000000) `<'Series[bool]'>`."""
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 1368, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_101is_time_start, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_time_start, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__104)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_time_start, __pyx_t_5) < 0) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1373
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_START)
 * 
 *     def is_time_end(self) -> Series[bool]:             # <<<<<<<<<<<<<<
 *         """Whether the current time is the
 *         end of time (23:59:59.999999) `<'Series[bool]'>`."""
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_kp_s_Series_bool) < 0) __PYX_ERR(0, 1373, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_103is_time_end, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_is_time_end, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__105)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_is_time_end, __pyx_t_3) < 0) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1378
 *         return self._arr_to_series(self._dt.dt.time.values == cydt.TIME_END)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time_start(self) -> pddt:
 *         """Go to the start of time (00:00:00.000000) `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_105to_time_start, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_time_start, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__106)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_time_start, __pyx_t_3) < 0) __PYX_ERR(0, 1378, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1387
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time_end(self) -> pddt:
 *         """Go to the end of time (23:59:59.999999) `<'pddt'>`."""
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_107to_time_end, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_time_end, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__107)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_time_end, __pyx_t_3) < 0) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1398
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def to_time(
 *         self,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_hour, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1398, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_minute, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1398, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_second, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1398, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_millisecond, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1398, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_microsecond, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1398, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_109to_time, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_to_time, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__109)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__110);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_to_time, __pyx_t_5) < 0) __PYX_ERR(0, 1398, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1453
 *         return TIMEZONE_AVAILABLE
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_localize(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_tz, __pyx_kp_s_str_datetime_tzinfo_None) < 0) __PYX_ERR(0, 1453, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_ambiguous, __pyx_kp_s_bool_Series_bool_Literal_raise_i) < 0) __PYX_ERR(0, 1453, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_nonexistent, __pyx_kp_s_Literal_shift_forward_shift_back) < 0) __PYX_ERR(0, 1453, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_111tz_localize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_tz_localize, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__112)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__113);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_tz_localize, __pyx_t_3) < 0) __PYX_ERR(0, 1453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1494
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_convert(
 *         self,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_tz, __pyx_kp_s_str_datetime_tzinfo_None) < 0) __PYX_ERR(0, 1494, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_ambiguous, __pyx_kp_s_bool_Series_bool_Literal_raise_i) < 0) __PYX_ERR(0, 1494, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_nonexistent, __pyx_kp_s_Literal_shift_forward_shift_back) < 0) __PYX_ERR(0, 1494, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_113tz_convert, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_tz_convert, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__114)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__115);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_tz_convert, __pyx_t_5) < 0) __PYX_ERR(0, 1494, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1520
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def tz_switch(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_targ_tz, __pyx_kp_s_str_datetime_tzinfo_None) < 0) __PYX_ERR(0, 1520, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_base_tz, __pyx_kp_s_str_datetime_tzinfo_None) < 0) __PYX_ERR(0, 1520, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_naive, __pyx_n_s_bool) < 0) __PYX_ERR(0, 1520, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_ambiguous, __pyx_kp_s_bool_Series_bool_Literal_raise_i) < 0) __PYX_ERR(0, 1520, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_nonexistent, __pyx_kp_s_Literal_shift_forward_shift_back) < 0) __PYX_ERR(0, 1520, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_115tz_switch, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_tz_switch, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__117)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__118);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_tz_switch, __pyx_t_3) < 0) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1567
 *         )
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def astimezone(
 *         self,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_tz, __pyx_kp_s_str_datetime_tzinfo_None) < 0) __PYX_ERR(0, 1567, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_ambiguous, __pyx_kp_s_bool_Series_bool_Literal_raise_i) < 0) __PYX_ERR(0, 1567, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_nonexistent, __pyx_kp_s_Literal_shift_forward_shift_back) < 0) __PYX_ERR(0, 1567, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_117astimezone, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_astimezone, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__119)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__120);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_astimezone, __pyx_t_5) < 0) __PYX_ERR(0, 1567, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1590
 * 
 *     # Frequency -------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_round(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_freq, __pyx_kp_s_Literal_D_h_m_s_ms_us_ns) < 0) __PYX_ERR(0, 1590, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_ambiguous, __pyx_kp_s_bool_Series_bool_Literal_raise_i) < 0) __PYX_ERR(0, 1590, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_nonexistent, __pyx_kp_s_Literal_shift_forward_shift_back) < 0) __PYX_ERR(0, 1590, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_119freq_round, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_freq_round, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__122)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__123);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_freq_round, __pyx_t_3) < 0) __PYX_ERR(0, 1590, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1618
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_ceil(
 *         self,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_freq, __pyx_kp_s_Literal_D_h_m_s_ms_us_ns) < 0) __PYX_ERR(0, 1618, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_ambiguous, __pyx_kp_s_bool_Series_bool_Literal_raise_i) < 0) __PYX_ERR(0, 1618, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_nonexistent, __pyx_kp_s_Literal_shift_forward_shift_back) < 0) __PYX_ERR(0, 1618, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_121freq_ceil, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_freq_ceil, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__124)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__125);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_freq_ceil, __pyx_t_5) < 0) __PYX_ERR(0, 1618, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1646
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def freq_floor(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_freq, __pyx_kp_s_Literal_D_h_m_s_ms_us_ns) < 0) __PYX_ERR(0, 1646, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_ambiguous, __pyx_kp_s_bool_Series_bool_Literal_raise_i) < 0) __PYX_ERR(0, 1646, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_nonexistent, __pyx_kp_s_Literal_shift_forward_shift_back) < 0) __PYX_ERR(0, 1646, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_123freq_floor, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_freq_floor, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__126)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__127);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_freq_floor, __pyx_t_3) < 0) __PYX_ERR(0, 1646, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1675
 * 
 *     # Delta -----------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def add_delta(
 *         self,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_years, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_months, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_days, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_weeks, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_hours, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_minutes, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_seconds, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_milliseconds, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_microseconds, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_125add_delta, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_add_delta, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__129)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__130);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_add_delta, __pyx_t_5) < 0) __PYX_ERR(0, 1675, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1720
 *         return self._new(dt, None, None, False)
 * 
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def sub_delta(
 *         self,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_years, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_months, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_days, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_weeks, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_hours, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_minutes, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_seconds, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_milliseconds, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_microseconds, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_127sub_delta, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_sub_delta, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__131)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__130);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_sub_delta, __pyx_t_3) < 0) __PYX_ERR(0, 1720, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1763
 *         return self._new(dt, None, None, False)
 * 
 *     def cal_delta(             # <<<<<<<<<<<<<<
 *         self,
 *         other: object,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_other, __pyx_n_s_object) < 0) __PYX_ERR(0, 1763, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_unit, __pyx_kp_s_Literal_Y_M_W_D_h_m_s_ms_us_ns) < 0) __PYX_ERR(0, 1763, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_inclusive, __pyx_kp_s_Literal_one_both_neither) < 0) __PYX_ERR(0, 1763, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_int) < 0) __PYX_ERR(0, 1763, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_129cal_delta, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_cal_delta, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__133)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__134);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_cal_delta, __pyx_t_5) < 0) __PYX_ERR(0, 1763, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1780
 * 
 *     # Replace ---------------------------------------------------------------------------------
 *     def replace(             # <<<<<<<<<<<<<<
 *         self,
 *         year: cython.int = -1,
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_year, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_month, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_day, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_hour, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_minute, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_second, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_millisecond, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_microsecond, __pyx_kp_s_cython_int) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_n_s_pddt) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_131replace, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_replace, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__136)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__137);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_replace, __pyx_t_3) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1838
 * 
 *     # Format ----------------------------------------------------------------------------------
 *     def strftime(self, format: str) -> Series[str]:             # <<<<<<<<<<<<<<
 *         """Convert to string with the given 'format' `<'Series[str]'>`.
 * 
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_format, __pyx_n_s_str) < 0) __PYX_ERR(0, 1838, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Series_str) < 0) __PYX_ERR(0, 1838, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_133strftime, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_strftime, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__139)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_strftime, __pyx_t_5) < 0) __PYX_ERR(0, 1838, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":1845
 * 
 *     # Unit ------------------------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def as_unit(self, unit: Literal["s", "ms", "us", "ns"]) -> pddt:
 *         """Convert to specific time 'unit' resolution `<'pddt'>`.
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_unit, __pyx_kp_s_Literal_s_ms_us_ns) < 0) __PYX_ERR(0, 1845, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_135as_unit, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_as_unit, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__141)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_as_unit, __pyx_t_3) < 0) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":2369
 *             self._raise_error(err, "Comparison failed")
 * 
 *     def equals(self, o: object) -> bool:             # <<<<<<<<<<<<<<
 *         """Test whether two objects contain the same elements `<'bool'>`.
 *         (Equivalent to `pandas.Series.equal()` method).
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_o, __pyx_n_s_object) < 0) __PYX_ERR(0, 2369, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_n_s_bool) < 0) __PYX_ERR(0, 2369, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_157equals, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_equals, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__143)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_equals, __pyx_t_5) < 0) __PYX_ERR(0, 2369, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":2381
 * 
 *     # Special methods - copy ------------------------------------------------------------------
 *     @cython.ccall             # <<<<<<<<<<<<<<
 *     def copy(self) -> pddt:
 *         "Make a (deep)copy of the `<'pddt'>`."
 */
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_159copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt_copy, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__144)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_copy, __pyx_t_5) < 0) __PYX_ERR(0, 2381, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":2386
 *         return self._new(self._dt, None, None, True)
 * 
 *     def __copy__(self, *args, **kwargs) -> pddt:             # <<<<<<<<<<<<<<
 *         return self._new(self._dt, None, None, True)
 * 
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_n_s_pddt) < 0) __PYX_ERR(0, 2386, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_161__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt___copy, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__146)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_copy_2, __pyx_t_3) < 0) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":2389
 *         return self._new(self._dt, None, None, True)
 * 
 *     def __deepcopy__(self, *args, **kwargs) -> pddt:             # <<<<<<<<<<<<<<
 *         return self._new(self._dt, None, None, True)
 * 
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_n_s_pddt) < 0) __PYX_ERR(0, 2389, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_163__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt___deepcopy, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__147)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_deepcopy, __pyx_t_5) < 0) __PYX_ERR(0, 2389, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "cytimes/pddatetime.py":2412
 *         return self._dt.__iter__()
 * 
 *     def __array__(self) -> np.ndarray:             # <<<<<<<<<<<<<<
 *         return self._dt.__array__()
 * 
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_return, __pyx_kp_s_np_ndarray) < 0) __PYX_ERR(0, 2412, __pyx_L1_error)
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_177__array__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt___array, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__148)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_array, __pyx_t_3) < 0) __PYX_ERR(0, 2412, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_179__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt___reduce_cython, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__150)); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(8, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_pddt, (type(self), 0xd380488, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_pddt__set_state(self, __pyx_state)
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_4pddt_181__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_pddt___setstate_cython, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__152)); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_7cytimes_10pddatetime_pddt, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(8, 16, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_7cytimes_10pddatetime_pddt);

  /* "(tree fragment)":1
 * def __pyx_unpickle_pddt(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7cytimes_10pddatetime_1__pyx_unpickle_pddt, 0, __pyx_n_s_pyx_unpickle_pddt, NULL, __pyx_n_s_cytimes_pddatetime, __pyx_d, ((PyObject *)__pyx_codeobj__154)); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_pddt, __pyx_t_3) < 0) __PYX_ERR(8, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cytimes/pddatetime.py":1
 * # cython: language_level=3             # <<<<<<<<<<<<<<
 * # cython: wraparound=False
 * # cython: boundscheck=False
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  if (__pyx_m) {
    if (__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init cytimes.pddatetime", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      PyErr_Fetch(&tp, &value, &tb);
      PyState_RemoveModule(&__pyx_moduledef);
      PyErr_Restore(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init cytimes.pddatetime");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #elif PY_MAJOR_VERSION >= 3
  return __pyx_m;
  #else
  return;
  #endif
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyErrExceptionMatches */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyErrFetchRestore */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#endif
}
#endif

/* PyObjectGetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError */
#if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
#endif
}

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* GetTopmostException */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    PyObject *exc_value = exc_info->exc_value;
    if (exc_value == NULL || exc_value == Py_None) {
        *value = NULL;
        *type = NULL;
        *tb = NULL;
    } else {
        *value = exc_value;
        Py_INCREF(*value);
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        *tb = PyException_GetTraceback(exc_value);
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #endif
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    PyObject *tmp_value = exc_info->exc_value;
    exc_info->exc_value = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
  #else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
  #endif
}
#endif

/* GetException */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type = NULL, *local_value, *local_tb = NULL;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if PY_VERSION_HEX >= 0x030C00A6
    local_value = tstate->current_exception;
    tstate->current_exception = 0;
    if (likely(local_value)) {
        local_type = (PyObject*) Py_TYPE(local_value);
        Py_INCREF(local_type);
        local_tb = PyException_GetTraceback(local_value);
    }
  #else
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
  #endif
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE && PY_VERSION_HEX >= 0x030C00A6
    if (unlikely(tstate->current_exception))
#elif CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    #if PY_MAJOR_VERSION >= 3
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
    #endif
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
      #if PY_VERSION_HEX >= 0x030B00a4
        tmp_value = exc_info->exc_value;
        exc_info->exc_value = local_value;
        tmp_type = NULL;
        tmp_tb = NULL;
        Py_XDECREF(local_type);
        Py_XDECREF(local_tb);
      #else
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
      #endif
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
}

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    #if PY_MAJOR_VERSION < 3
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    #else
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    #endif
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* RaiseException */
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    __Pyx_PyThreadState_declare
    CYTHON_UNUSED_VAR(cause);
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
      #if PY_VERSION_HEX >= 0x030C00A6
        PyException_SetTraceback(value, tb);
      #elif CYTHON_FAST_THREAD_STATE
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#else
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

/* ExtTypeTest */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    __Pyx_TypeName obj_type_name;
    __Pyx_TypeName type_name;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj));
    type_name = __Pyx_PyType_GetName(type);
    PyErr_Format(PyExc_TypeError,
                 "Cannot convert " __Pyx_FMT_TYPENAME " to " __Pyx_FMT_TYPENAME,
                 obj_type_name, type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
}

/* SwapException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_value = exc_info->exc_value;
    exc_info->exc_value = *value;
    if (tmp_value == NULL || tmp_value == Py_None) {
        Py_XDECREF(tmp_value);
        tmp_value = NULL;
        tmp_type = NULL;
        tmp_tb = NULL;
    } else {
        tmp_type = (PyObject*) Py_TYPE(tmp_value);
        Py_INCREF(tmp_type);
        #if CYTHON_COMPILING_IN_CPYTHON
        tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback;
        Py_XINCREF(tmp_tb);
        #else
        tmp_tb = PyException_GetTraceback(tmp_value);
        #endif
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
  #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
  #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL && !CYTHON_VECTORCALL
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
                                               PyObject *globals) {
    PyFrameObject *f;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject **fastlocals;
    Py_ssize_t i;
    PyObject *result;
    assert(globals != NULL);
    /* XXX Perhaps we should create a specialized
       PyFrame_New() that doesn't take locals, but does
       take builtins without sanity checking them.
       */
    assert(tstate != NULL);
    f = PyFrame_New(tstate, co, globals, NULL);
    if (f == NULL) {
        return NULL;
    }
    fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
    for (i = 0; i < na; i++) {
        Py_INCREF(*args);
        fastlocals[i] = *args++;
    }
    result = PyEval_EvalFrameEx(f,0);
    ++tstate->recursion_depth;
    Py_DECREF(f);
    --tstate->recursion_depth;
    return result;
}
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
    PyObject *globals = PyFunction_GET_GLOBALS(func);
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
    PyObject *closure;
#if PY_MAJOR_VERSION >= 3
    PyObject *kwdefs;
#endif
    PyObject *kwtuple, **k;
    PyObject **d;
    Py_ssize_t nd;
    Py_ssize_t nk;
    PyObject *result;
    assert(kwargs == NULL || PyDict_Check(kwargs));
    nk = kwargs ? PyDict_Size(kwargs) : 0;
    #if PY_MAJOR_VERSION < 3
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) {
        return NULL;
    }
    #else
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) {
        return NULL;
    }
    #endif
    if (
#if PY_MAJOR_VERSION >= 3
            co->co_kwonlyargcount == 0 &&
#endif
            likely(kwargs == NULL || nk == 0) &&
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
        if (argdefs == NULL && co->co_argcount == nargs) {
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
            goto done;
        }
        else if (nargs == 0 && argdefs != NULL
                 && co->co_argcount == Py_SIZE(argdefs)) {
            /* function called with no arguments, but all parameters have
               a default value: use default values as arguments .*/
            args = &PyTuple_GET_ITEM(argdefs, 0);
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
            goto done;
        }
    }
    if (kwargs != NULL) {
        Py_ssize_t pos, i;
        kwtuple = PyTuple_New(2 * nk);
        if (kwtuple == NULL) {
            result = NULL;
            goto done;
        }
        k = &PyTuple_GET_ITEM(kwtuple, 0);
        pos = i = 0;
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
            Py_INCREF(k[i]);
            Py_INCREF(k[i+1]);
            i += 2;
        }
        nk = i / 2;
    }
    else {
        kwtuple = NULL;
        k = NULL;
    }
    closure = PyFunction_GET_CLOSURE(func);
#if PY_MAJOR_VERSION >= 3
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
#endif
    if (argdefs != NULL) {
        d = &PyTuple_GET_ITEM(argdefs, 0);
        nd = Py_SIZE(argdefs);
    }
    else {
        d = NULL;
        nd = 0;
    }
#if PY_MAJOR_VERSION >= 3
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif

/* PyObjectCallMethO */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    #if PY_MAJOR_VERSION < 3
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    #else
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    #endif
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall */
#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) < 0) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    #if PY_VERSION_HEX < 0x030800B1
    #if CYTHON_FAST_PYCCALL
    if (PyCFunction_Check(func)) {
        if (kwargs) {
            return _PyCFunction_FastCallDict(func, args, nargs, kwargs);
        } else {
            return _PyCFunction_FastCallKeywords(func, args, nargs, NULL);
        }
    }
    #if PY_VERSION_HEX >= 0x030700A1
    if (!kwargs && __Pyx_IS_TYPE(func, &PyMethodDescr_Type)) {
        return _PyMethodDescr_FastCallKeywords(func, args, nargs, NULL);
    }
    #endif
    #endif
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs);
    }
    #endif
    #endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
        #if PY_VERSION_HEX < 0x03090000
        vectorcallfunc f = _PyVectorcall_Function(func);
        #else
        vectorcallfunc f = PyVectorcall_Function(func);
        #endif
        if (f) {
            return f(func, args, (size_t)nargs, NULL);
        }
        #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL
        if (__Pyx_CyFunction_CheckExact(func)) {
            __pyx_vectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func);
            if (f) return f(func, args, (size_t)nargs, NULL);
        }
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_empty_tuple, kwargs);
    }
    #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
    #else
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #endif
}

/* PyObjectCallOneArg */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* pybytes_as_double */
static double __Pyx_SlowPyString_AsDouble(PyObject *obj) {
    PyObject *float_value;
#if PY_MAJOR_VERSION >= 3
    float_value = PyFloat_FromString(obj);
#else
    float_value = PyFloat_FromString(obj, 0);
#endif
    if (likely(float_value)) {
#if CYTHON_ASSUME_SAFE_MACROS
        double value = PyFloat_AS_DOUBLE(float_value);
#else
        double value = PyFloat_AsDouble(float_value);
#endif
        Py_DECREF(float_value);
        return value;
    }
    return (double)-1;
}
static const char* __Pyx__PyBytes_AsDouble_Copy(const char* start, char* buffer, Py_ssize_t length) {
    int last_was_punctuation = 1;
    Py_ssize_t i;
    for (i=0; i < length; i++) {
        char chr = start[i];
        int is_punctuation = (chr == '_') | (chr == '.') | (chr == 'e') | (chr == 'E');
        *buffer = chr;
        buffer += (chr != '_');
        if (unlikely(last_was_punctuation & is_punctuation)) goto parse_failure;
        last_was_punctuation = is_punctuation;
    }
    if (unlikely(last_was_punctuation)) goto parse_failure;
    *buffer = '\0';
    return buffer;
parse_failure:
    return NULL;
}
static double __Pyx__PyBytes_AsDouble_inf_nan(const char* start, Py_ssize_t length) {
    int matches = 1;
    char sign = start[0];
    int is_signed = (sign == '+') | (sign == '-');
    start += is_signed;
    length -= is_signed;
    switch (start[0]) {
        #ifdef Py_NAN
        case 'n':
        case 'N':
            if (unlikely(length != 3)) goto parse_failure;
            matches &= (start[1] == 'a' || start[1] == 'A');
            matches &= (start[2] == 'n' || start[2] == 'N');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_NAN : Py_NAN;
        #endif
        case 'i':
        case 'I':
            if (unlikely(length < 3)) goto parse_failure;
            matches &= (start[1] == 'n' || start[1] == 'N');
            matches &= (start[2] == 'f' || start[2] == 'F');
            if (likely(length == 3 && matches))
                return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
            if (unlikely(length != 8)) goto parse_failure;
            matches &= (start[3] == 'i' || start[3] == 'I');
            matches &= (start[4] == 'n' || start[4] == 'N');
            matches &= (start[5] == 'i' || start[5] == 'I');
            matches &= (start[6] == 't' || start[6] == 'T');
            matches &= (start[7] == 'y' || start[7] == 'Y');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
        case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':
            break;
        default:
            goto parse_failure;
    }
    return 0.0;
parse_failure:
    return -1.0;
}
static CYTHON_INLINE int __Pyx__PyBytes_AsDouble_IsSpace(char ch) {
    return (ch == 0x20) | !((ch < 0x9) | (ch > 0xd));
}
CYTHON_UNUSED static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length) {
    double value;
    Py_ssize_t i, digits;
    const char *last = start + length;
    char *end;
    while (__Pyx__PyBytes_AsDouble_IsSpace(*start))
        start++;
    while (start < last - 1 && __Pyx__PyBytes_AsDouble_IsSpace(last[-1]))
        last--;
    length = last - start;
    if (unlikely(length <= 0)) goto fallback;
    value = __Pyx__PyBytes_AsDouble_inf_nan(start, length);
    if (unlikely(value == -1.0)) goto fallback;
    if (value != 0.0) return value;
    digits = 0;
    for (i=0; i < length; digits += start[i++] != '_');
    if (likely(digits == length)) {
        value = PyOS_string_to_double(start, &end, NULL);
    } else if (digits < 40) {
        char number[40];
        last = __Pyx__PyBytes_AsDouble_Copy(start, number, length);
        if (unlikely(!last)) goto fallback;
        value = PyOS_string_to_double(number, &end, NULL);
    } else {
        char *number = (char*) PyMem_Malloc((digits + 1) * sizeof(char));
        if (unlikely(!number)) goto fallback;
        last = __Pyx__PyBytes_AsDouble_Copy(start, number, length);
        if (unlikely(!last)) {
            PyMem_Free(number);
            goto fallback;
        }
        value = PyOS_string_to_double(number, &end, NULL);
        PyMem_Free(number);
    }
    if (likely(end == last) || (value == (double)-1 && PyErr_Occurred())) {
        return value;
    }
fallback:
    return __Pyx_SlowPyString_AsDouble(obj);
}

/* PyDictVersioning */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if !CYTHON_AVOID_BORROWED_REFS
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && PY_VERSION_HEX < 0x030d0000
    result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    } else if (unlikely(PyErr_Occurred())) {
        return NULL;
    }
#elif CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
#else
    result = PyDict_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
#endif
#else
    result = PyObject_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PyObjectFormatAndDecref */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f) {
    if (unlikely(!s)) return NULL;
    if (likely(PyUnicode_CheckExact(s))) return s;
    #if PY_MAJOR_VERSION < 3
    if (likely(PyString_CheckExact(s))) {
        PyObject *result = PyUnicode_FromEncodedObject(s, NULL, "strict");
        Py_DECREF(s);
        return result;
    }
    #endif
    return __Pyx_PyObject_FormatAndDecref(s, f);
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f) {
    PyObject *result;
    if (unlikely(!s)) return NULL;
    result = PyObject_Format(s, f);
    Py_DECREF(s);
    return result;
}

/* JoinPyUnicode */
static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char) {
#if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyObject *result_uval;
    int result_ukind, kind_shift;
    Py_ssize_t i, char_pos;
    void *result_udata;
    CYTHON_MAYBE_UNUSED_VAR(max_char);
#if CYTHON_PEP393_ENABLED
    result_uval = PyUnicode_New(result_ulength, max_char);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
    kind_shift = (result_ukind == PyUnicode_4BYTE_KIND) ? 2 : result_ukind - 1;
    result_udata = PyUnicode_DATA(result_uval);
#else
    result_uval = PyUnicode_FromUnicode(NULL, result_ulength);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = sizeof(Py_UNICODE);
    kind_shift = (result_ukind == 4) ? 2 : result_ukind - 1;
    result_udata = PyUnicode_AS_UNICODE(result_uval);
#endif
    assert(kind_shift == 2 || kind_shift == 1 || kind_shift == 0);
    char_pos = 0;
    for (i=0; i < value_count; i++) {
        int ukind;
        Py_ssize_t ulength;
        void *udata;
        PyObject *uval = PyTuple_GET_ITEM(value_tuple, i);
        if (unlikely(__Pyx_PyUnicode_READY(uval)))
            goto bad;
        ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
        if (unlikely(!ulength))
            continue;
        if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - ulength < char_pos))
            goto overflow;
        ukind = __Pyx_PyUnicode_KIND(uval);
        udata = __Pyx_PyUnicode_DATA(uval);
        if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) {
            memcpy((char *)result_udata + (char_pos << kind_shift), udata, (size_t) (ulength << kind_shift));
        } else {
            #if PY_VERSION_HEX >= 0x030d0000
            if (unlikely(PyUnicode_CopyCharacters(result_uval, char_pos, uval, 0, ulength) < 0)) goto bad;
            #elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters)
            _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
            #else
            Py_ssize_t j;
            for (j=0; j < ulength; j++) {
                Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
                __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
            }
            #endif
        }
        char_pos += ulength;
    }
    return result_uval;
overflow:
    PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
bad:
    Py_DECREF(result_uval);
    return NULL;
#else
    CYTHON_UNUSED_VAR(max_char);
    CYTHON_UNUSED_VAR(result_ulength);
    CYTHON_UNUSED_VAR(value_count);
    return PyUnicode_Join(__pyx_empty_unicode, value_tuple);
#endif
}

/* ModInt[long] */
static CYTHON_INLINE long __Pyx_mod_long(long a, long b) {
    long r = a % b;
    r += ((r != 0) & ((r ^ b) < 0)) * b;
    return r;
}

/* TupleAndListFromArray */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        Py_INCREF(__pyx_empty_tuple);
        return __pyx_empty_tuple;
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_RichCompareBool(s1, s2, equals);
#else
#if PY_MAJOR_VERSION < 3
    PyObject* owned_ref = NULL;
#endif
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
#if PY_MAJOR_VERSION < 3
    if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
        owned_ref = PyUnicode_FromObject(s2);
        if (unlikely(!owned_ref))
            return -1;
        s2 = owned_ref;
        s2_is_unicode = 1;
    } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
        owned_ref = PyUnicode_FromObject(s1);
        if (unlikely(!owned_ref))
            return -1;
        s1 = owned_ref;
        s1_is_unicode = 1;
    } else if (((!s2_is_unicode) & (!s1_is_unicode))) {
        return __Pyx_PyBytes_Equals(s1, s2, equals);
    }
#endif
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length;
        int kind;
        void *data1, *data2;
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
        #if CYTHON_PEP393_ENABLED
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
        #else
            hash1 = ((PyUnicodeObject*)s1)->hash;
            hash2 = ((PyUnicodeObject*)s2)->hash;
        #endif
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            #if PY_MAJOR_VERSION < 3
            Py_XDECREF(owned_ref);
            #endif
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        #if PY_MAJOR_VERSION < 3
        Py_XDECREF(owned_ref);
        #endif
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_EQ);
return_ne:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = PyTuple_GET_SIZE(kwnames);
    for (i = 0; i < n; i++)
    {
        if (s == PyTuple_GET_ITEM(kwnames, i)) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs = PyTuple_GET_SIZE(kwnames);
    PyObject *dict;
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* RaiseDoubleKeywords */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

/* ParseKeywords */
static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject *const *kwvalues,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    int kwds_is_tuple = CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds));
    while (1) {
        Py_XDECREF(key); key = NULL;
        Py_XDECREF(value); value = NULL;
        if (kwds_is_tuple) {
            Py_ssize_t size;
#if CYTHON_ASSUME_SAFE_MACROS
            size = PyTuple_GET_SIZE(kwds);
#else
            size = PyTuple_Size(kwds);
            if (size < 0) goto bad;
#endif
            if (pos >= size) break;
#if CYTHON_AVOID_BORROWED_REFS
            key = __Pyx_PySequence_ITEM(kwds, pos);
            if (!key) goto bad;
#elif CYTHON_ASSUME_SAFE_MACROS
            key = PyTuple_GET_ITEM(kwds, pos);
#else
            key = PyTuple_GetItem(kwds, pos);
            if (!key) goto bad;
#endif
            value = kwvalues[pos];
            pos++;
        }
        else
        {
            if (!PyDict_Next(kwds, &pos, &key, &value)) break;
#if CYTHON_AVOID_BORROWED_REFS
            Py_INCREF(key);
#endif
        }
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
#if CYTHON_AVOID_BORROWED_REFS
            Py_INCREF(value);
            Py_DECREF(key);
#endif
            key = NULL;
            value = NULL;
            continue;
        }
#if !CYTHON_AVOID_BORROWED_REFS
        Py_INCREF(key);
#endif
        Py_INCREF(value);
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
#if CYTHON_AVOID_BORROWED_REFS
                    value = NULL;
#endif
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key)
                );
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
#if CYTHON_AVOID_BORROWED_REFS
                    value = NULL;
#endif
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    Py_XDECREF(key);
    Py_XDECREF(value);
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    #if PY_MAJOR_VERSION < 3
    PyErr_Format(PyExc_TypeError,
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    Py_XDECREF(key);
    Py_XDECREF(value);
    return -1;
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* ArgTypeTest */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    __Pyx_TypeName type_name;
    __Pyx_TypeName obj_type_name;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (exact) {
        #if PY_MAJOR_VERSION == 2
        if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    }
    type_name = __Pyx_PyType_GetName(type);
    obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME
        ", got " __Pyx_FMT_TYPENAME ")", name, type_name, obj_type_name);
    __Pyx_DECREF_TypeName(type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* RaiseUnexpectedTypeError */
static int
__Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj)
{
    __Pyx_TypeName obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError, "Expected %s, got " __Pyx_FMT_TYPENAME,
                 expected, obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
#if PY_MAJOR_VERSION == 2
static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
    PyObject *exception, *value, *tb;
    int res;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&exception, &value, &tb);
    res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
    if (unlikely(res == -1)) {
        PyErr_WriteUnraisable(err);
        res = 0;
    }
    if (!res) {
        res = PyObject_IsSubclass(err, exc_type2);
        if (unlikely(res == -1)) {
            PyErr_WriteUnraisable(err);
            res = 0;
        }
    }
    __Pyx_ErrRestore(exception, value, tb);
    return res;
}
#else
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
#endif
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        #if PY_MAJOR_VERSION < 3
        if (likely(exc_type == t)) return 1;
        #endif
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* PyObjectSetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_setattr))
        return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value);
#endif
    return PyObject_SetAttr(obj, attr_name, value);
}
#endif

/* KeywordStringCheck */
static int __Pyx_CheckKeywordStrings(
    PyObject *kw,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
#if CYTHON_COMPILING_IN_PYPY
    if (!kw_allowed && PyDict_Next(kw, &pos, &key, 0))
        goto invalid_keyword;
    return 1;
#else
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kw))) {
        Py_ssize_t kwsize;
#if CYTHON_ASSUME_SAFE_MACROS
        kwsize = PyTuple_GET_SIZE(kw);
#else
        kwsize = PyTuple_Size(kw);
        if (kwsize < 0) return 0;
#endif
        if (unlikely(kwsize == 0))
            return 1;
        if (!kw_allowed) {
#if CYTHON_ASSUME_SAFE_MACROS
            key = PyTuple_GET_ITEM(kw, 0);
#else
            key = PyTuple_GetItem(kw, pos);
            if (!key) return 0;
#endif
            goto invalid_keyword;
        }
#if PY_VERSION_HEX < 0x03090000
        for (pos = 0; pos < kwsize; pos++) {
#if CYTHON_ASSUME_SAFE_MACROS
            key = PyTuple_GET_ITEM(kw, pos);
#else
            key = PyTuple_GetItem(kw, pos);
            if (!key) return 0;
#endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
        }
#endif
        return 1;
    }
    while (PyDict_Next(kw, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_Check(key)))
        #endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
    }
    if (!kw_allowed && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    return 0;
#endif
invalid_keyword:
    #if PY_MAJOR_VERSION < 3
    PyErr_Format(PyExc_TypeError,
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

/* PyIntBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long x;
        long a = PyInt_AS_LONG(op1);
        
            x = (long)((unsigned long)a - (unsigned long)b);
            if (likely((x^a) >= 0 || (x^~b) >= 0))
                return PyInt_FromLong(x);
            return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a, x;
#ifdef HAVE_LONG_LONG
        const PY_LONG_LONG llb = intval;
        PY_LONG_LONG lla, llx;
#endif
        if (unlikely(__Pyx_PyLong_IsZero(op1))) {
            return PyLong_FromLong(-intval);
        }
        if (likely(__Pyx_PyLong_IsCompact(op1))) {
            a = __Pyx_PyLong_CompactValue(op1);
        } else {
            const digit* digits = __Pyx_PyLong_Digits(op1);
            const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1);
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                default: return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
            }
        }
                x = a - b;
            return PyLong_FromLong(x);
#ifdef HAVE_LONG_LONG
        long_long:
                llx = lla - llb;
            return PyLong_FromLongLong(llx);
#endif
        
        
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
#if CYTHON_COMPILING_IN_LIMITED_API
        double a = __pyx_PyFloat_AsDouble(op1);
#else
        double a = PyFloat_AS_DOUBLE(op1);
#endif
            double result;
            
            PyFPE_START_PROTECT("subtract", return NULL)
            result = ((double)a) - (double)b;
            PyFPE_END_PROTECT(result)
            return PyFloat_FromDouble(result);
    }
    return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
}
#endif

/* PyIntBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_FloorDivideObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long x;
        long a = PyInt_AS_LONG(op1);
        
            if (unlikely(b == -1 && ((unsigned long)a) == 0-(unsigned long)a))
                return PyInt_Type.tp_as_number->nb_floor_divide(op1, op2);
            else {
                long q, r;
                q = a / b;
                r = a - q*b;
                q -= ((r != 0) & ((r ^ b) < 0));
                x = q;
            }
            return PyInt_FromLong(x);
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a, x;
#ifdef HAVE_LONG_LONG
        const PY_LONG_LONG llb = intval;
        PY_LONG_LONG lla, llx;
#endif
        if (unlikely(__Pyx_PyLong_IsZero(op1))) {
            return __Pyx_NewRef(op1);
        }
        if (likely(__Pyx_PyLong_IsCompact(op1))) {
            a = __Pyx_PyLong_CompactValue(op1);
        } else {
            const digit* digits = __Pyx_PyLong_Digits(op1);
            const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1);
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                default: return PyLong_Type.tp_as_number->nb_floor_divide(op1, op2);
            }
        }
                {
                    long q, r;
                    q = a / b;
                    r = a - q*b;
                    q -= ((r != 0) & ((r ^ b) < 0));
                    x = q;
                }
            return PyLong_FromLong(x);
#ifdef HAVE_LONG_LONG
        long_long:
                {
                    PY_LONG_LONG q, r;
                    q = lla / llb;
                    r = lla - q*llb;
                    q -= ((r != 0) & ((r ^ llb) < 0));
                    llx = q;
                }
            return PyLong_FromLongLong(llx);
#endif
        
        
    }
    #endif
    return (inplace ? PyNumber_InPlaceFloorDivide : PyNumber_FloorDivide)(op1, op2);
}
#endif

/* PyIntBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long x;
        long a = PyInt_AS_LONG(op1);
        
            x = (long)((unsigned long)a + (unsigned long)b);
            if (likely((x^a) >= 0 || (x^b) >= 0))
                return PyInt_FromLong(x);
            return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a, x;
#ifdef HAVE_LONG_LONG
        const PY_LONG_LONG llb = intval;
        PY_LONG_LONG lla, llx;
#endif
        if (unlikely(__Pyx_PyLong_IsZero(op1))) {
            return __Pyx_NewRef(op2);
        }
        if (likely(__Pyx_PyLong_IsCompact(op1))) {
            a = __Pyx_PyLong_CompactValue(op1);
        } else {
            const digit* digits = __Pyx_PyLong_Digits(op1);
            const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1);
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                default: return PyLong_Type.tp_as_number->nb_add(op1, op2);
            }
        }
                x = a + b;
            return PyLong_FromLong(x);
#ifdef HAVE_LONG_LONG
        long_long:
                llx = lla + llb;
            return PyLong_FromLongLong(llx);
#endif
        
        
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
#if CYTHON_COMPILING_IN_LIMITED_API
        double a = __pyx_PyFloat_AsDouble(op1);
#else
        double a = PyFloat_AS_DOUBLE(op1);
#endif
            double result;
            
            PyFPE_START_PROTECT("add", return NULL)
            result = ((double)a) + (double)b;
            PyFPE_END_PROTECT(result)
            return PyFloat_FromDouble(result);
    }
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#endif

/* RaiseUnboundLocalError */
static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) {
    PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname);
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (unlikely(!j)) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (mm && mm->mp_subscript) {
            PyObject *r, *key = PyInt_FromSsize_t(i);
            if (unlikely(!key)) return NULL;
            r = mm->mp_subscript(o, key);
            Py_DECREF(key);
            return r;
        }
        if (likely(sm && sm->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return sm->sq_item(o, i);
        }
    }
#else
    if (is_list || !PyMapping_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) {
    PyObject *runerr = NULL;
    Py_ssize_t key_value;
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        __Pyx_TypeName index_type_name = __Pyx_PyType_GetName(Py_TYPE(index));
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError,
            "cannot fit '" __Pyx_FMT_TYPENAME "' into an index-sized integer", index_type_name);
        __Pyx_DECREF_TypeName(index_type_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
    __Pyx_TypeName obj_type_name;
    if (likely(PyType_Check(obj))) {
        PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_n_s_class_getitem);
        if (!meth) {
            PyErr_Clear();
        } else {
            PyObject *result = __Pyx_PyObject_CallOneArg(meth, key);
            Py_DECREF(meth);
            return result;
        }
    }
    obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "'" __Pyx_FMT_TYPENAME "' object is not subscriptable", obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
    PyTypeObject *tp = Py_TYPE(obj);
    PyMappingMethods *mm = tp->tp_as_mapping;
    PySequenceMethods *sm = tp->tp_as_sequence;
    if (likely(mm && mm->mp_subscript)) {
        return mm->mp_subscript(obj, key);
    }
    if (likely(sm && sm->sq_item)) {
        return __Pyx_PyObject_GetIndex(obj, key);
    }
    return __Pyx_PyObject_GetItem_Slow(obj, key);
}
#endif

/* PyIntBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long a = PyInt_AS_LONG(op1);
        
#ifdef HAVE_LONG_LONG
            if (sizeof(PY_LONG_LONG) > sizeof(long)) {
                PY_LONG_LONG result = (PY_LONG_LONG)a * (PY_LONG_LONG)b;
                return (result >= LONG_MIN && result <= LONG_MAX) ?
                    PyInt_FromLong((long)result) : PyLong_FromLongLong(result);
            }
#endif
#if CYTHON_USE_TYPE_SLOTS
            return PyInt_Type.tp_as_number->nb_multiply(op1, op2);
#else
            return PyNumber_Multiply(op1, op2);
#endif
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a, x;
#ifdef HAVE_LONG_LONG
        const PY_LONG_LONG llb = intval;
        PY_LONG_LONG lla, llx;
#endif
        if (unlikely(__Pyx_PyLong_IsZero(op1))) {
            return __Pyx_NewRef(op1);
        }
        if (likely(__Pyx_PyLong_IsCompact(op1))) {
            a = __Pyx_PyLong_CompactValue(op1);
        } else {
            const digit* digits = __Pyx_PyLong_Digits(op1);
            const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1);
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT+30) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT+30) {
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT+30) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT+30) {
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT+30) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT+30) {
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT+30) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT+30) {
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT+30) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT+30) {
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT+30) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    #ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT+30) {
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
                    #endif
                    }
                    CYTHON_FALLTHROUGH;
                default: return PyLong_Type.tp_as_number->nb_multiply(op1, op2);
            }
        }
                CYTHON_UNUSED_VAR(a);
                CYTHON_UNUSED_VAR(b);
                #ifdef HAVE_LONG_LONG
                lla = a;
                goto long_long;
                #else
                return PyLong_Type.tp_as_number->nb_multiply(op1, op2);
                #endif
            return PyLong_FromLong(x);
#ifdef HAVE_LONG_LONG
        long_long:
                llx = lla * llb;
            return PyLong_FromLongLong(llx);
#endif
        
        
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
#if CYTHON_COMPILING_IN_LIMITED_API
        double a = __pyx_PyFloat_AsDouble(op1);
#else
        double a = PyFloat_AS_DOUBLE(op1);
#endif
            double result;
            
            PyFPE_START_PROTECT("multiply", return NULL)
            result = ((double)a) * (double)b;
            PyFPE_END_PROTECT(result)
            return PyFloat_FromDouble(result);
    }
    return (inplace ? PyNumber_InPlaceMultiply : PyNumber_Multiply)(op1, op2);
}
#endif

/* DictGetItem */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (!PyErr_Occurred()) {
            if (unlikely(PyTuple_Check(key))) {
                PyObject* args = PyTuple_Pack(1, key);
                if (likely(args)) {
                    PyErr_SetObject(PyExc_KeyError, args);
                    Py_DECREF(args);
                }
            } else {
                PyErr_SetObject(PyExc_KeyError, key);
            }
        }
        return NULL;
    }
    Py_INCREF(value);
    return value;
}
#endif

/* FixUpExtensionType */
#if CYTHON_USE_TYPE_SPECS
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
#if PY_VERSION_HEX > 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED_VAR(spec);
    CYTHON_UNUSED_VAR(type);
#else
    const PyType_Slot *slot = spec->slots;
    while (slot && slot->slot && slot->slot != Py_tp_members)
        slot++;
    if (slot && slot->slot == Py_tp_members) {
        int changed = 0;
#if !(PY_VERSION_HEX <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON)
        const
#endif
            PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
        while (memb && memb->name) {
            if (memb->name[0] == '_' && memb->name[1] == '_') {
#if PY_VERSION_HEX < 0x030900b1
                if (strcmp(memb->name, "__weaklistoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_weaklistoffset = memb->offset;
                    changed = 1;
                }
                else if (strcmp(memb->name, "__dictoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_dictoffset = memb->offset;
                    changed = 1;
                }
#if CYTHON_METH_FASTCALL
                else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
#if PY_VERSION_HEX >= 0x030800b4
                    type->tp_vectorcall_offset = memb->offset;
#else
                    type->tp_print = (printfunc) memb->offset;
#endif
                    changed = 1;
                }
#endif
#else
                if ((0));
#endif
#if PY_VERSION_HEX <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON
                else if (strcmp(memb->name, "__module__") == 0) {
                    PyObject *descr;
                    assert(memb->type == T_OBJECT);
                    assert(memb->flags == 0 || memb->flags == READONLY);
                    descr = PyDescr_NewMember(type, memb);
                    if (unlikely(!descr))
                        return -1;
                    if (unlikely(PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr) < 0)) {
                        Py_DECREF(descr);
                        return -1;
                    }
                    Py_DECREF(descr);
                    changed = 1;
                }
#endif
            }
            memb++;
        }
        if (changed)
            PyType_Modified(type);
    }
#endif
    return 0;
}
#endif

/* FetchSharedCythonModule */
static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    return __Pyx_PyImport_AddModuleRef((char*) __PYX_ABI_MODULE_NAME);
}

/* FetchCommonType */
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t basicsize,
                               Py_ssize_t expected_basicsize) {
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
#if !CYTHON_USE_TYPE_SPECS
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
    PyObject* abi_module;
    const char* object_name;
    PyTypeObject *cached_type = NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) return NULL;
    object_name = strrchr(type->tp_name, '.');
    object_name = object_name ? object_name+1 : type->tp_name;
    cached_type = (PyTypeObject*) PyObject_GetAttrString(abi_module, object_name);
    if (cached_type) {
        if (__Pyx_VerifyCachedType(
              (PyObject *)cached_type,
              object_name,
              cached_type->tp_basicsize,
              type->tp_basicsize) < 0) {
            goto bad;
        }
        goto done;
    }
    if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
    PyErr_Clear();
    if (PyType_Ready(type) < 0) goto bad;
    if (PyObject_SetAttrString(abi_module, object_name, (PyObject *)type) < 0)
        goto bad;
    Py_INCREF(type);
    cached_type = type;
done:
    Py_DECREF(abi_module);
    return cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}
#else
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module, *cached_type = NULL;
    const char* object_name = strrchr(spec->name, '.');
    object_name = object_name ? object_name+1 : spec->name;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) return NULL;
    cached_type = PyObject_GetAttrString(abi_module, object_name);
    if (cached_type) {
        Py_ssize_t basicsize;
#if CYTHON_COMPILING_IN_LIMITED_API
        PyObject *py_basicsize;
        py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
        if (unlikely(!py_basicsize)) goto bad;
        basicsize = PyLong_AsSsize_t(py_basicsize);
        Py_DECREF(py_basicsize);
        py_basicsize = 0;
        if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
#else
        basicsize = likely(PyType_Check(cached_type)) ? ((PyTypeObject*) cached_type)->tp_basicsize : -1;
#endif
        if (__Pyx_VerifyCachedType(
              cached_type,
              object_name,
              basicsize,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    }
    if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
    PyErr_Clear();
    CYTHON_UNUSED_VAR(module);
    cached_type = __Pyx_PyType_FromModuleAndSpec(abi_module, spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
    if (PyObject_SetAttrString(abi_module, object_name, cached_type) < 0) goto bad;
done:
    Py_DECREF(abi_module);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}
#endif

/* PyVectorcallFastCallDict */
#if CYTHON_METH_FASTCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i, pos;
    size_t j;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (j = 0; j < nargs; j++) newargs[j] = args[j];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (PyDict_Next(kw, &pos, &key, &value)) {
        keys_are_strings &= Py_TYPE(key)->tp_flags;
        Py_INCREF(key);
        Py_INCREF(value);
        PyTuple_SET_ITEM(kwnames, i, key);
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    if (likely(kw == NULL) || PyDict_GET_SIZE(kw) == 0) {
        return vc(func, args, nargs, NULL);
    }
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) {
    if (__Pyx_CyFunction_Check(func)) {
        return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) {
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx_CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure)
{
    CYTHON_UNUSED_VAR(closure);
    if (unlikely(op->func_doc == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
        if (unlikely(!op->func_doc)) return NULL;
#else
        if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
#if PY_MAJOR_VERSION >= 3
            op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
#else
            op->func_doc = PyString_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
#endif
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
#endif
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_name == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_name = PyObject_GetAttrString(op->func, "__name__");
#elif PY_MAJOR_VERSION >= 3
        op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#else
        op->func_name = PyString_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
#if PY_MAJOR_VERSION >= 3
    if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else
    if (unlikely(value == NULL || !PyString_Check(value)))
#endif
    {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_qualname);
    return op->func_qualname;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
#if PY_MAJOR_VERSION >= 3
    if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else
    if (unlikely(value == NULL || !PyString_Check(value)))
#endif
    {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
static int
__Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL)) {
        PyErr_SetString(PyExc_TypeError,
               "function's dictionary may not be deleted");
        return -1;
    }
    if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
               "setting function's dictionary to a non-dict");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_dict, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(op);
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = op->defaults_tuple;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = op->defaults_kwdict;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = op->func_annotations;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
    int is_coroutine;
    CYTHON_UNUSED_VAR(context);
    if (op->func_is_coroutine) {
        return __Pyx_NewRef(op->func_is_coroutine);
    }
    is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
#if PY_VERSION_HEX >= 0x03050000
    if (is_coroutine) {
        PyObject *module, *fromlist, *marker = __pyx_n_s_is_coroutine;
        fromlist = PyList_New(1);
        if (unlikely(!fromlist)) return NULL;
        Py_INCREF(marker);
#if CYTHON_ASSUME_SAFE_MACROS
        PyList_SET_ITEM(fromlist, 0, marker);
#else
        if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) {
            Py_DECREF(marker);
            Py_DECREF(fromlist);
            return NULL;
        }
#endif
        module = PyImport_ImportModuleLevelObject(__pyx_n_s_asyncio_coroutines, NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
        if (unlikely(!module)) goto ignore;
        op->func_is_coroutine = __Pyx_PyObject_GetAttrStr(module, marker);
        Py_DECREF(module);
        if (likely(op->func_is_coroutine)) {
            return __Pyx_NewRef(op->func_is_coroutine);
        }
ignore:
        PyErr_Clear();
    }
#endif
    op->func_is_coroutine = __Pyx_PyBool_FromLong(is_coroutine);
    return __Pyx_NewRef(op->func_is_coroutine);
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_GetAttrString(op->func, "__module__");
}
static int
__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_SetAttrString(op->func, "__module__", value);
}
#endif
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {(char *) "__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
    {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
    {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
    {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {(char *) "_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
#if !CYTHON_COMPILING_IN_LIMITED_API
    {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
#endif
#if CYTHON_USE_TYPE_SPECS
    {(char *) "__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#if CYTHON_METH_FASTCALL
#if CYTHON_BACKPORT_VECTORCALL
    {(char *) "__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
#else
#if !CYTHON_COMPILING_IN_LIMITED_API
    {(char *) "__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
#endif
#endif
#endif
#if PY_VERSION_HEX < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API
    {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
{
    CYTHON_UNUSED_VAR(args);
#if PY_MAJOR_VERSION >= 3
    Py_INCREF(m->func_qualname);
    return m->func_qualname;
#else
    return PyString_FromString(((PyCFunctionObject*)m)->m_ml->ml_name);
#endif
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if PY_VERSION_HEX < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
#endif
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
                                       PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyCFunctionObject *cf = (PyCFunctionObject*) op;
#endif
    if (unlikely(op == NULL))
        return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    op->func = PyCFunction_NewEx(ml, (PyObject*)op, module);
    if (unlikely(!op->func)) return NULL;
#endif
    op->flags = flags;
    __Pyx_CyFunction_weakreflist(op) = NULL;
#if !CYTHON_COMPILING_IN_LIMITED_API
    cf->m_ml = ml;
    cf->m_self = (PyObject *) op;
#endif
    Py_XINCREF(closure);
    op->func_closure = closure;
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_XINCREF(module);
    cf->m_module = module;
#endif
    op->func_dict = NULL;
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_classobj = NULL;
#else
    ((PyCMethodObject*)op)->mm_class = NULL;
#endif
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    Py_XINCREF(code);
    op->func_code = code;
    op->defaults_pyobjects = 0;
    op->defaults_size = 0;
    op->defaults = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    op->func_is_coroutine = NULL;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func);
#else
    Py_CLEAR(((PyCFunctionObject*)m)->m_module);
#endif
    Py_CLEAR(m->func_dict);
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
#if PY_VERSION_HEX < 0x030900B1
    Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
#else
    {
        PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
        ((PyCMethodObject *) (m))->mm_class = NULL;
        Py_XDECREF(cls);
    }
#endif
#endif
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    Py_CLEAR(m->func_is_coroutine);
    if (m->defaults) {
        PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
        int i;
        for (i = 0; i < m->defaults_pyobjects; i++)
            Py_XDECREF(pydefaults[i]);
        PyObject_Free(m->defaults);
        m->defaults = NULL;
    }
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    __Pyx_PyHeapTypeObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    Py_VISIT(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func);
#else
    Py_VISIT(((PyCFunctionObject*)m)->m_module);
#endif
    Py_VISIT(m->func_dict);
    Py_VISIT(m->func_name);
    Py_VISIT(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    Py_VISIT(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
#endif
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    Py_VISIT(m->func_is_coroutine);
    if (m->defaults) {
        PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
        int i;
        for (i = 0; i < m->defaults_pyobjects; i++)
            Py_VISIT(pydefaults[i]);
    }
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
#if PY_MAJOR_VERSION >= 3
    return PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
#else
    return PyString_FromFormat("<cyfunction %s at %p>",
                               PyString_AsString(op->func_qualname), (void *)op);
#endif
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
    PyObject *py_name = NULL;
    PyCFunction meth;
    int flags;
    meth = PyCFunction_GetFunction(f);
    if (unlikely(!meth)) return NULL;
    flags = PyCFunction_GetFlags(f);
    if (unlikely(flags < 0)) return NULL;
#else
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    int flags = f->m_ml->ml_flags;
#endif
    Py_ssize_t size;
    switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void*)meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_MACROS
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 0))
                return (*meth)(self, NULL);
#if CYTHON_COMPILING_IN_LIMITED_API
            py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL);
            if (!py_name) return NULL;
            PyErr_Format(PyExc_TypeError,
                "%.200S() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)",
                py_name, size);
            Py_DECREF(py_name);
#else
            PyErr_Format(PyExc_TypeError,
                "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)",
                f->m_ml->ml_name, size);
#endif
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_MACROS
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
#if CYTHON_COMPILING_IN_LIMITED_API
            py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL);
            if (!py_name) return NULL;
            PyErr_Format(PyExc_TypeError,
                "%.200S() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)",
                py_name, size);
            Py_DECREF(py_name);
#else
            PyErr_Format(PyExc_TypeError,
                "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)",
                f->m_ml->ml_name, size);
#endif
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
#if CYTHON_COMPILING_IN_LIMITED_API
    py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL);
    if (!py_name) return NULL;
    PyErr_Format(PyExc_TypeError, "%.200S() takes no keyword arguments",
                 py_name);
    Py_DECREF(py_name);
#else
    PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments",
                 f->m_ml->ml_name);
#endif
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *self, *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
    if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
    self = ((PyCFunctionObject*)func)->m_self;
#endif
    result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
    return result;
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
#if CYTHON_ASSUME_SAFE_MACROS
        argc = PyTuple_GET_SIZE(args);
#else
        argc = PyTuple_Size(args);
        if (unlikely(!argc) < 0) return NULL;
#endif
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
#if PY_MAJOR_VERSION > 2
            PyErr_Format(PyExc_TypeError,
                         "unbound method %.200S() needs an argument",
                         cyfunc->func_qualname);
#else
            PyErr_SetString(PyExc_TypeError,
                            "unbound method needs an argument");
#endif
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            PyErr_Format(PyExc_TypeError, "%.200s() needs an argument",
                         ((PyCFunctionObject*)cyfunc)->m_ml->ml_name);
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(PyTuple_GET_SIZE(kwnames))) {
        PyErr_Format(PyExc_TypeError,
                     "%.200s() takes no keyword arguments", ((PyCFunctionObject*)cyfunc)->m_ml->ml_name);
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
#if CYTHON_BACKPORT_VECTORCALL
    Py_ssize_t nargs = (Py_ssize_t)nargsf;
#else
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
#endif
    PyObject *self;
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
        self = ((PyCFunctionObject*)cyfunc)->m_self;
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)",
            def->ml_name, nargs);
        return NULL;
    }
    return def->ml_meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
#if CYTHON_BACKPORT_VECTORCALL
    Py_ssize_t nargs = (Py_ssize_t)nargsf;
#else
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
#endif
    PyObject *self;
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
        self = ((PyCFunctionObject*)cyfunc)->m_self;
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)",
            def->ml_name, nargs);
        return NULL;
    }
    return def->ml_meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
#if CYTHON_BACKPORT_VECTORCALL
    Py_ssize_t nargs = (Py_ssize_t)nargsf;
#else
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
#endif
    PyObject *self;
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
        self = ((PyCFunctionObject*)cyfunc)->m_self;
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
    PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
#if CYTHON_BACKPORT_VECTORCALL
    Py_ssize_t nargs = (Py_ssize_t)nargsf;
#else
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
#endif
    PyObject *self;
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
        self = ((PyCFunctionObject*)cyfunc)->m_self;
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCMethod)(void(*)(void))def->ml_meth)(self, cls, args, (size_t)nargs, kwnames);
}
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if (defined(_Py_TPFLAGS_HAVE_VECTORCALL) && CYTHON_METH_FASTCALL)
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    __pyx_CyFunctionType_slots
};
#else
static PyTypeObject __pyx_CyFunctionType_type = {
    PyVarObject_HEAD_INIT(0, 0)
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
    (destructor) __Pyx_CyFunction_dealloc,
#if !CYTHON_METH_FASTCALL
    0,
#elif CYTHON_BACKPORT_VECTORCALL
    (printfunc)offsetof(__pyx_CyFunctionObject, func_vectorcall),
#else
    offsetof(PyCFunctionObject, vectorcall),
#endif
    0,
    0,
#if PY_MAJOR_VERSION < 3
    0,
#else
    0,
#endif
    (reprfunc) __Pyx_CyFunction_repr,
    0,
    0,
    0,
    0,
    __Pyx_CyFunction_CallAsMethod,
    0,
    0,
    0,
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if defined(_Py_TPFLAGS_HAVE_VECTORCALL) && CYTHON_METH_FASTCALL
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    0,
    (traverseproc) __Pyx_CyFunction_traverse,
    (inquiry) __Pyx_CyFunction_clear,
    0,
#if PY_VERSION_HEX < 0x030500A0
    offsetof(__pyx_CyFunctionObject, func_weakreflist),
#else
    offsetof(PyCFunctionObject, m_weakreflist),
#endif
    0,
    0,
    __pyx_CyFunction_methods,
    __pyx_CyFunction_members,
    __pyx_CyFunction_getsets,
    0,
    0,
    __Pyx_PyMethod_New,
    0,
    offsetof(__pyx_CyFunctionObject, func_dict),
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
#if PY_VERSION_HEX >= 0x030400a1
    0,
#endif
#if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
    0,
#endif
#if __PYX_NEED_TP_PRINT_SLOT
    0,
#endif
#if PY_VERSION_HEX >= 0x030C0000
    0,
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
    0,
#endif
};
#endif
static int __pyx_CyFunction_init(PyObject *module) {
#if CYTHON_USE_TYPE_SPECS
    __pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_CyFunctionType_spec, NULL);
#else
    CYTHON_UNUSED_VAR(module);
    __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type);
#endif
    if (unlikely(__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_Malloc(size);
    if (unlikely(!m->defaults))
        return PyErr_NoMemory();
    memset(m->defaults, 0, size);
    m->defaults_pyobjects = pyobjects;
    m->defaults_size = size;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunction */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    PyObject *op = __Pyx_CyFunction_Init(
        PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType),
        ml, flags, qualname, closure, module, globals, code
    );
    if (likely(op)) {
        PyObject_GC_Track(op);
    }
    return op;
}

/* UnpackUnboundCMethod */
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) {
    PyObject *result;
    PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args));
    if (unlikely(!selfless_args)) return NULL;
    result = PyObject_Call(method, selfless_args, kwargs);
    Py_DECREF(selfless_args);
    return result;
}
static PyMethodDef __Pyx_UnboundCMethod_Def = {
     "CythonUnboundCMethod",
     __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall),
     METH_VARARGS | METH_KEYWORDS,
     NULL
};
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    target->method = method;
#if CYTHON_COMPILING_IN_CPYTHON
    #if PY_MAJOR_VERSION >= 3
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    #else
    if (likely(!__Pyx_CyOrPyCFunction_Check(method)))
    #endif
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    } else
#endif
#if CYTHON_COMPILING_IN_PYPY
#else
    if (PyCFunction_Check(method))
#endif
    {
        PyObject *self;
        int self_found;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        self = PyObject_GetAttrString(method, "__self__");
        if (!self) {
            PyErr_Clear();
        }
#else
        self = PyCFunction_GET_SELF(method);
#endif
        self_found = (self && self != Py_None);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        Py_XDECREF(self);
#endif
        if (self_found) {
            PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method);
            if (unlikely(!unbound_method)) return -1;
            Py_DECREF(method);
            target->method = unbound_method;
        }
    }
    return 0;
}

/* CallUnboundCMethod0 */
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_ASSUME_SAFE_MACROS
    args = PyTuple_New(1);
    if (unlikely(!args)) goto bad;
    Py_INCREF(self);
    PyTuple_SET_ITEM(args, 0, self);
#else
    args = PyTuple_Pack(1, self);
    if (unlikely(!args)) goto bad;
#endif
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    Py_DECREF(args);
bad:
    return result;
}

/* PyUnicode_Unicode */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj) {
    if (unlikely(obj == Py_None))
        obj = __pyx_kp_u_None;
    return __Pyx_NewRef(obj);
}

/* CIntToDigits */
static const char DIGIT_PAIRS_10[2*10*10+1] = {
    "00010203040506070809"
    "10111213141516171819"
    "20212223242526272829"
    "30313233343536373839"
    "40414243444546474849"
    "50515253545556575859"
    "60616263646566676869"
    "70717273747576777879"
    "80818283848586878889"
    "90919293949596979899"
};
static const char DIGIT_PAIRS_8[2*8*8+1] = {
    "0001020304050607"
    "1011121314151617"
    "2021222324252627"
    "3031323334353637"
    "4041424344454647"
    "5051525354555657"
    "6061626364656667"
    "7071727374757677"
};
static const char DIGITS_HEX[2*16+1] = {
    "0123456789abcdef"
    "0123456789ABCDEF"
};

/* BuildPyUnicode */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, char* chars, int clength,
                                                int prepend_sign, char padding_char) {
    PyObject *uval;
    Py_ssize_t uoffset = ulength - clength;
#if CYTHON_USE_UNICODE_INTERNALS
    Py_ssize_t i;
#if CYTHON_PEP393_ENABLED
    void *udata;
    uval = PyUnicode_New(ulength, 127);
    if (unlikely(!uval)) return NULL;
    udata = PyUnicode_DATA(uval);
#else
    Py_UNICODE *udata;
    uval = PyUnicode_FromUnicode(NULL, ulength);
    if (unlikely(!uval)) return NULL;
    udata = PyUnicode_AS_UNICODE(uval);
#endif
    if (uoffset > 0) {
        i = 0;
        if (prepend_sign) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, 0, '-');
            i++;
        }
        for (; i < uoffset; i++) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, i, padding_char);
        }
    }
    for (i=0; i < clength; i++) {
        __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, uoffset+i, chars[i]);
    }
#else
    {
        PyObject *sign = NULL, *padding = NULL;
        uval = NULL;
        if (uoffset > 0) {
            prepend_sign = !!prepend_sign;
            if (uoffset > prepend_sign) {
                padding = PyUnicode_FromOrdinal(padding_char);
                if (likely(padding) && uoffset > prepend_sign + 1) {
                    PyObject *tmp;
                    PyObject *repeat = PyInt_FromSsize_t(uoffset - prepend_sign);
                    if (unlikely(!repeat)) goto done_or_error;
                    tmp = PyNumber_Multiply(padding, repeat);
                    Py_DECREF(repeat);
                    Py_DECREF(padding);
                    padding = tmp;
                }
                if (unlikely(!padding)) goto done_or_error;
            }
            if (prepend_sign) {
                sign = PyUnicode_FromOrdinal('-');
                if (unlikely(!sign)) goto done_or_error;
            }
        }
        uval = PyUnicode_DecodeASCII(chars, clength, NULL);
        if (likely(uval) && padding) {
            PyObject *tmp = PyNumber_Add(padding, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
        if (likely(uval) && sign) {
            PyObject *tmp = PyNumber_Add(sign, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
done_or_error:
        Py_XDECREF(padding);
        Py_XDECREF(sign);
    }
#endif
    return uval;
}

/* CIntToPyUnicode */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_From_Py_ssize_t(Py_ssize_t value, Py_ssize_t width, char padding_char, char format_char) {
    char digits[sizeof(Py_ssize_t)*3+2];
    char *dpos, *end = digits + sizeof(Py_ssize_t)*3+2;
    const char *hex_digits = DIGITS_HEX;
    Py_ssize_t length, ulength;
    int prepend_sign, last_one_off;
    Py_ssize_t remaining;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Py_ssize_t neg_one = (Py_ssize_t) -1, const_zero = (Py_ssize_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (format_char == 'X') {
        hex_digits += 16;
        format_char = 'x';
    }
    remaining = value;
    last_one_off = 0;
    dpos = end;
    do {
        int digit_pos;
        switch (format_char) {
        case 'o':
            digit_pos = abs((int)(remaining % (8*8)));
            remaining = (Py_ssize_t) (remaining / (8*8));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 8);
            break;
        case 'd':
            digit_pos = abs((int)(remaining % (10*10)));
            remaining = (Py_ssize_t) (remaining / (10*10));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_10 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 10);
            break;
        case 'x':
            *(--dpos) = hex_digits[abs((int)(remaining % 16))];
            remaining = (Py_ssize_t) (remaining / 16);
            break;
        default:
            assert(0);
            break;
        }
    } while (unlikely(remaining != 0));
    assert(!last_one_off || *dpos == '0');
    dpos += last_one_off;
    length = end - dpos;
    ulength = length;
    prepend_sign = 0;
    if (!is_unsigned && value <= neg_one) {
        if (padding_char == ' ' || width <= length + 1) {
            *(--dpos) = '-';
            ++length;
        } else {
            prepend_sign = 1;
        }
        ++ulength;
    }
    if (width > ulength) {
        ulength = width;
    }
    if (ulength == 1) {
        return PyUnicode_FromOrdinal(*dpos);
    }
    return __Pyx_PyUnicode_BuildFromAscii(ulength, dpos, (int) length, prepend_sign, padding_char);
}

/* GetAttr3 */
#if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
    int res = PyObject_GetOptionalAttr(o, n, &r);
    return (res != 0) ? r : __Pyx_NewRef(d);
#else
  #if CYTHON_USE_TYPE_SLOTS
    if (likely(PyString_Check(n))) {
        r = __Pyx_PyObject_GetAttrStrNoError(o, n);
        if (unlikely(!r) && likely(!PyErr_Occurred())) {
            r = __Pyx_NewRef(d);
        }
        return r;
    }
  #endif
    r = PyObject_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
#endif
}

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *module = 0;
    PyObject *empty_dict = 0;
    PyObject *empty_list = 0;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (unlikely(!py_import))
        goto bad;
    if (!from_list) {
        empty_list = PyList_New(0);
        if (unlikely(!empty_list))
            goto bad;
        from_list = empty_list;
    }
    #endif
    empty_dict = PyDict_New();
    if (unlikely(!empty_dict))
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if (strchr(__Pyx_MODULE_NAME, '.') != NULL) {
                module = PyImport_ImportModuleLevelObject(
                    name, __pyx_d, empty_dict, from_list, 1);
                if (unlikely(!module)) {
                    if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError)))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_MAJOR_VERSION < 3
            PyObject *py_level = PyInt_FromLong(level);
            if (unlikely(!py_level))
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, __pyx_d, empty_dict, from_list, py_level, (PyObject *)NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, __pyx_d, empty_dict, from_list, level);
            #endif
        }
    }
bad:
    Py_XDECREF(empty_dict);
    Py_XDECREF(empty_list);
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_import);
    #endif
    return module;
}

/* ImportFrom */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        const char* module_name_str = 0;
        PyObject* module_name = 0;
        PyObject* module_dot = 0;
        PyObject* full_name = 0;
        PyErr_Clear();
        module_name_str = PyModule_GetName(module);
        if (unlikely(!module_name_str)) { goto modbad; }
        module_name = PyUnicode_FromString(module_name_str);
        if (unlikely(!module_name)) { goto modbad; }
        module_dot = PyUnicode_Concat(module_name, __pyx_kp_u__8);
        if (unlikely(!module_dot)) { goto modbad; }
        full_name = PyUnicode_Concat(module_dot, name);
        if (unlikely(!full_name)) { goto modbad; }
        #if PY_VERSION_HEX < 0x030700A1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM  < 0x07030400)
        {
            PyObject *modules = PyImport_GetModuleDict();
            if (unlikely(!modules))
                goto modbad;
            value = PyObject_GetItem(modules, full_name);
        }
        #else
        value = PyImport_GetModule(full_name);
        #endif
      modbad:
        Py_XDECREF(full_name);
        Py_XDECREF(module_dot);
        Py_XDECREF(module_name);
    }
    if (unlikely(!value)) {
        PyErr_Format(PyExc_ImportError,
        #if PY_MAJOR_VERSION < 3
            "cannot import name %.230s", PyString_AS_STRING(name));
        #else
            "cannot import name %S", name);
        #endif
    }
    return value;
}

/* GetAttr */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_USE_TYPE_SLOTS
#if PY_MAJOR_VERSION >= 3
    if (likely(PyUnicode_Check(n)))
#else
    if (likely(PyString_Check(n)))
#endif
        return __Pyx_PyObject_GetAttrStr(o, n);
#endif
    return PyObject_GetAttr(o, n);
}

/* HasAttr */
#if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!__Pyx_PyBaseString_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_GetAttr(o, n);
    if (!r) {
        PyErr_Clear();
        return 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}
#endif

/* PyObjectCallNoArg */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg[2] = {NULL, NULL};
    return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectGetMethod */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    __Pyx_TypeName type_name;
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
        if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR))
#elif PY_MAJOR_VERSION >= 3
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type)))
        #endif
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (likely(descr != NULL)) {
        *method = descr;
        return 0;
    }
    type_name = __Pyx_PyType_GetName(tp);
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, name);
#else
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%.400s'",
                 type_name, PyString_AS_STRING(name));
#endif
    __Pyx_DECREF_TypeName(type_name);
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}

/* PyObjectCallMethod0 */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
}

/* ValidateBasesTuple */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) {
    Py_ssize_t i, n;
#if CYTHON_ASSUME_SAFE_MACROS
    n = PyTuple_GET_SIZE(bases);
#else
    n = PyTuple_Size(bases);
    if (n < 0) return -1;
#endif
    for (i = 1; i < n; i++)
    {
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *b0 = PySequence_GetItem(bases, i);
        if (!b0) return -1;
#elif CYTHON_ASSUME_SAFE_MACROS
        PyObject *b0 = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *b0 = PyTuple_GetItem(bases, i);
        if (!b0) return -1;
#endif
        PyTypeObject *b;
#if PY_MAJOR_VERSION < 3
        if (PyClass_Check(b0))
        {
            PyErr_Format(PyExc_TypeError, "base class '%.200s' is an old-style class",
                         PyString_AS_STRING(((PyClassObject*)b0)->cl_name));
#if CYTHON_AVOID_BORROWED_REFS
            Py_DECREF(b0);
#endif
            return -1;
        }
#endif
        b = (PyTypeObject*) b0;
        if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE))
        {
            __Pyx_TypeName b_name = __Pyx_PyType_GetName(b);
            PyErr_Format(PyExc_TypeError,
                "base class '" __Pyx_FMT_TYPENAME "' is not a heap type", b_name);
            __Pyx_DECREF_TypeName(b_name);
#if CYTHON_AVOID_BORROWED_REFS
            Py_DECREF(b0);
#endif
            return -1;
        }
        if (dictoffset == 0)
        {
            Py_ssize_t b_dictoffset = 0;
#if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY
            b_dictoffset = b->tp_dictoffset;
#else
            PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__");
            if (!py_b_dictoffset) goto dictoffset_return;
            b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset);
            Py_DECREF(py_b_dictoffset);
            if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return;
#endif
            if (b_dictoffset) {
                {
                    __Pyx_TypeName b_name = __Pyx_PyType_GetName(b);
                    PyErr_Format(PyExc_TypeError,
                        "extension type '%.200s' has no __dict__ slot, "
                        "but base type '" __Pyx_FMT_TYPENAME "' has: "
                        "either add 'cdef dict __dict__' to the extension type "
                        "or add '__slots__ = [...]' to the base type",
                        type_name, b_name);
                    __Pyx_DECREF_TypeName(b_name);
                }
#if !(CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY)
              dictoffset_return:
#endif
#if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(b0);
#endif
                return -1;
            }
        }
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(b0);
#endif
    }
    return 0;
}
#endif

/* PyType_Ready */
static int __Pyx_PyType_Ready(PyTypeObject *t) {
#if CYTHON_USE_TYPE_SPECS || !(CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API) || defined(PYSTON_MAJOR_VERSION)
    (void)__Pyx_PyObject_CallMethod0;
#if CYTHON_USE_TYPE_SPECS
    (void)__Pyx_validate_bases_tuple;
#endif
    return PyType_Ready(t);
#else
    int r;
    PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
    if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1))
        return -1;
#if PY_VERSION_HEX >= 0x03050000 && !defined(PYSTON_MAJOR_VERSION)
    {
        int gc_was_enabled;
    #if PY_VERSION_HEX >= 0x030A00b1
        gc_was_enabled = PyGC_Disable();
        (void)__Pyx_PyObject_CallMethod0;
    #else
        PyObject *ret, *py_status;
        PyObject *gc = NULL;
        #if PY_VERSION_HEX >= 0x030700a1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400)
        gc = PyImport_GetModule(__pyx_kp_u_gc);
        #endif
        if (unlikely(!gc)) gc = PyImport_Import(__pyx_kp_u_gc);
        if (unlikely(!gc)) return -1;
        py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_isenabled);
        if (unlikely(!py_status)) {
            Py_DECREF(gc);
            return -1;
        }
        gc_was_enabled = __Pyx_PyObject_IsTrue(py_status);
        Py_DECREF(py_status);
        if (gc_was_enabled > 0) {
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_disable);
            if (unlikely(!ret)) {
                Py_DECREF(gc);
                return -1;
            }
            Py_DECREF(ret);
        } else if (unlikely(gc_was_enabled == -1)) {
            Py_DECREF(gc);
            return -1;
        }
    #endif
        t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#if PY_VERSION_HEX >= 0x030A0000
        t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE;
#endif
#else
        (void)__Pyx_PyObject_CallMethod0;
#endif
    r = PyType_Ready(t);
#if PY_VERSION_HEX >= 0x03050000 && !defined(PYSTON_MAJOR_VERSION)
        t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
    #if PY_VERSION_HEX >= 0x030A00b1
        if (gc_was_enabled)
            PyGC_Enable();
    #else
        if (gc_was_enabled) {
            PyObject *tp, *v, *tb;
            PyErr_Fetch(&tp, &v, &tb);
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_enable);
            if (likely(ret || r == -1)) {
                Py_XDECREF(ret);
                PyErr_Restore(tp, v, tb);
            } else {
                Py_XDECREF(tp);
                Py_XDECREF(v);
                Py_XDECREF(tb);
                r = -1;
            }
        }
        Py_DECREF(gc);
    #endif
    }
#endif
    return r;
#endif
}

/* PyObject_GenericGetAttrNoDict */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
    __Pyx_TypeName type_name = __Pyx_PyType_GetName(tp);
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, attr_name);
#else
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%.400s'",
                 type_name, PyString_AS_STRING(attr_name));
#endif
    __Pyx_DECREF_TypeName(type_name);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
    PyObject *descr;
    PyTypeObject *tp = Py_TYPE(obj);
    if (unlikely(!PyString_Check(attr_name))) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    assert(!tp->tp_dictoffset);
    descr = _PyType_Lookup(tp, attr_name);
    if (unlikely(!descr)) {
        return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
    }
    Py_INCREF(descr);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
    #endif
    {
        descrgetfunc f = Py_TYPE(descr)->tp_descr_get;
        if (unlikely(f)) {
            PyObject *res = f(descr, obj, (PyObject *)tp);
            Py_DECREF(descr);
            return res;
        }
    }
    return descr;
}
#endif

/* PyObject_GenericGetAttr */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
    if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
}
#endif

/* SetVTable */
static int __Pyx_SetVtable(PyTypeObject *type, void *vtable) {
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
    if (unlikely(!ob))
        goto bad;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(PyObject_SetAttr((PyObject *) type, __pyx_n_s_pyx_vtable, ob) < 0))
#else
    if (unlikely(PyDict_SetItem(type->tp_dict, __pyx_n_s_pyx_vtable, ob) < 0))
#endif
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* GetVTable */
static void* __Pyx_GetVtable(PyTypeObject *type) {
    void* ptr;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *ob = PyObject_GetAttr((PyObject *)type, __pyx_n_s_pyx_vtable);
#else
    PyObject *ob = PyObject_GetItem(type->tp_dict, __pyx_n_s_pyx_vtable);
#endif
    if (!ob)
        goto bad;
    ptr = PyCapsule_GetPointer(ob, 0);
    if (!ptr && !PyErr_Occurred())
        PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type");
    Py_DECREF(ob);
    return ptr;
bad:
    Py_XDECREF(ob);
    return NULL;
}

/* MergeVTables */
#if !CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_MergeVtables(PyTypeObject *type) {
    int i;
    void** base_vtables;
    __Pyx_TypeName tp_base_name;
    __Pyx_TypeName base_name;
    void* unknown = (void*)-1;
    PyObject* bases = type->tp_bases;
    int base_depth = 0;
    {
        PyTypeObject* base = type->tp_base;
        while (base) {
            base_depth += 1;
            base = base->tp_base;
        }
    }
    base_vtables = (void**) malloc(sizeof(void*) * (size_t)(base_depth + 1));
    base_vtables[0] = unknown;
    for (i = 1; i < PyTuple_GET_SIZE(bases); i++) {
        void* base_vtable = __Pyx_GetVtable(((PyTypeObject*)PyTuple_GET_ITEM(bases, i)));
        if (base_vtable != NULL) {
            int j;
            PyTypeObject* base = type->tp_base;
            for (j = 0; j < base_depth; j++) {
                if (base_vtables[j] == unknown) {
                    base_vtables[j] = __Pyx_GetVtable(base);
                    base_vtables[j + 1] = unknown;
                }
                if (base_vtables[j] == base_vtable) {
                    break;
                } else if (base_vtables[j] == NULL) {
                    goto bad;
                }
                base = base->tp_base;
            }
        }
    }
    PyErr_Clear();
    free(base_vtables);
    return 0;
bad:
    tp_base_name = __Pyx_PyType_GetName(type->tp_base);
    base_name = __Pyx_PyType_GetName((PyTypeObject*)PyTuple_GET_ITEM(bases, i));
    PyErr_Format(PyExc_TypeError,
        "multiple bases have vtable conflict: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'", tp_base_name, base_name);
    __Pyx_DECREF_TypeName(tp_base_name);
    __Pyx_DECREF_TypeName(base_name);
    free(base_vtables);
    return -1;
}
#endif

/* SetupReduce */
#if !CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStrNoError(meth, __pyx_n_s_name_2);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_getstate = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
    PyObject *getstate = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate);
#else
    getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_getstate);
    if (!getstate && PyErr_Occurred()) {
        goto __PYX_BAD;
    }
#endif
    if (getstate) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_getstate);
#else
        object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_n_s_getstate);
        if (!object_getstate && PyErr_Occurred()) {
            goto __PYX_BAD;
        }
#endif
        if (object_getstate != getstate) {
            goto __PYX_GOOD;
        }
    }
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython);
            if (likely(reduce_cython)) {
                ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            } else if (reduce == object_reduce || PyErr_Occurred()) {
                goto __PYX_BAD;
            }
            setstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython);
                if (likely(setstate_cython)) {
                    ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                    ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                } else if (!setstate || PyErr_Occurred()) {
                    goto __PYX_BAD;
                }
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred()) {
        __Pyx_TypeName type_obj_name =
            __Pyx_PyType_GetName((PyTypeObject*)type_obj);
        PyErr_Format(PyExc_RuntimeError,
            "Unable to initialize pickling for " __Pyx_FMT_TYPENAME, type_obj_name);
        __Pyx_DECREF_TypeName(type_obj_name);
    }
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
    Py_XDECREF(object_getstate);
    Py_XDECREF(getstate);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}
#endif

/* TypeImport */
#ifndef __PYX_HAVE_RT_ImportType_3_0_10
#define __PYX_HAVE_RT_ImportType_3_0_10
static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *module_name, const char *class_name,
    size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size)
{
    PyObject *result = 0;
    char warning[200];
    Py_ssize_t basicsize;
    Py_ssize_t itemsize;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
    PyObject *py_itemsize;
#endif
    result = PyObject_GetAttrString(module, class_name);
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#if !CYTHON_COMPILING_IN_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
    itemsize = ((PyTypeObject *)result)->tp_itemsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
    py_itemsize = PyObject_GetAttrString(result, "__itemsize__");
    if (!py_itemsize)
        goto bad;
    itemsize = PyLong_AsSsize_t(py_itemsize);
    Py_DECREF(py_itemsize);
    py_itemsize = 0;
    if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if (itemsize) {
        if (size % alignment) {
            alignment = size % alignment;
        }
        if (itemsize < (Py_ssize_t)alignment)
            itemsize = (Py_ssize_t)alignment;
    }
    if ((size_t)(basicsize + itemsize) < size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize+itemsize);
        goto bad;
    }
    if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_10 &&
            ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd-%zd from PyObject",
            module_name, class_name, size, basicsize, basicsize+itemsize);
        goto bad;
    }
    else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_10 && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(result);
    return NULL;
}
#endif

/* ImportDottedModule */
#if PY_MAJOR_VERSION >= 3
static PyObject *__Pyx__ImportDottedModule_Error(PyObject *name, PyObject *parts_tuple, Py_ssize_t count) {
    PyObject *partial_name = NULL, *slice = NULL, *sep = NULL;
    if (unlikely(PyErr_Occurred())) {
        PyErr_Clear();
    }
    if (likely(PyTuple_GET_SIZE(parts_tuple) == count)) {
        partial_name = name;
    } else {
        slice = PySequence_GetSlice(parts_tuple, 0, count);
        if (unlikely(!slice))
            goto bad;
        sep = PyUnicode_FromStringAndSize(".", 1);
        if (unlikely(!sep))
            goto bad;
        partial_name = PyUnicode_Join(sep, slice);
    }
    PyErr_Format(
#if PY_MAJOR_VERSION < 3
        PyExc_ImportError,
        "No module named '%s'", PyString_AS_STRING(partial_name));
#else
#if PY_VERSION_HEX >= 0x030600B1
        PyExc_ModuleNotFoundError,
#else
        PyExc_ImportError,
#endif
        "No module named '%U'", partial_name);
#endif
bad:
    Py_XDECREF(sep);
    Py_XDECREF(slice);
    Py_XDECREF(partial_name);
    return NULL;
}
#endif
#if PY_MAJOR_VERSION >= 3
static PyObject *__Pyx__ImportDottedModule_Lookup(PyObject *name) {
    PyObject *imported_module;
#if PY_VERSION_HEX < 0x030700A1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM  < 0x07030400)
    PyObject *modules = PyImport_GetModuleDict();
    if (unlikely(!modules))
        return NULL;
    imported_module = __Pyx_PyDict_GetItemStr(modules, name);
    Py_XINCREF(imported_module);
#else
    imported_module = PyImport_GetModule(name);
#endif
    return imported_module;
}
#endif
#if PY_MAJOR_VERSION >= 3
static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple) {
    Py_ssize_t i, nparts;
    nparts = PyTuple_GET_SIZE(parts_tuple);
    for (i=1; i < nparts && module; i++) {
        PyObject *part, *submodule;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        part = PyTuple_GET_ITEM(parts_tuple, i);
#else
        part = PySequence_ITEM(parts_tuple, i);
#endif
        submodule = __Pyx_PyObject_GetAttrStrNoError(module, part);
#if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
        Py_DECREF(part);
#endif
        Py_DECREF(module);
        module = submodule;
    }
    if (unlikely(!module)) {
        return __Pyx__ImportDottedModule_Error(name, parts_tuple, i);
    }
    return module;
}
#endif
static PyObject *__Pyx__ImportDottedModule(PyObject *name, PyObject *parts_tuple) {
#if PY_MAJOR_VERSION < 3
    PyObject *module, *from_list, *star = __pyx_n_s__27;
    CYTHON_UNUSED_VAR(parts_tuple);
    from_list = PyList_New(1);
    if (unlikely(!from_list))
        return NULL;
    Py_INCREF(star);
    PyList_SET_ITEM(from_list, 0, star);
    module = __Pyx_Import(name, from_list, 0);
    Py_DECREF(from_list);
    return module;
#else
    PyObject *imported_module;
    PyObject *module = __Pyx_Import(name, NULL, 0);
    if (!parts_tuple || unlikely(!module))
        return module;
    imported_module = __Pyx__ImportDottedModule_Lookup(name);
    if (likely(imported_module)) {
        Py_DECREF(module);
        return imported_module;
    }
    PyErr_Clear();
    return __Pyx_ImportDottedModule_WalkParts(module, name, parts_tuple);
#endif
}
static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030400B1
    PyObject *module = __Pyx__ImportDottedModule_Lookup(name);
    if (likely(module)) {
        PyObject *spec = __Pyx_PyObject_GetAttrStrNoError(module, __pyx_n_s_spec);
        if (likely(spec)) {
            PyObject *unsafe = __Pyx_PyObject_GetAttrStrNoError(spec, __pyx_n_s_initializing);
            if (likely(!unsafe || !__Pyx_PyObject_IsTrue(unsafe))) {
                Py_DECREF(spec);
                spec = NULL;
            }
            Py_XDECREF(unsafe);
        }
        if (likely(!spec)) {
            PyErr_Clear();
            return module;
        }
        Py_DECREF(spec);
        Py_DECREF(module);
    } else if (PyErr_Occurred()) {
        PyErr_Clear();
    }
#endif
    return __Pyx__ImportDottedModule(name, parts_tuple);
}

/* ClassMethod */
static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
#if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM <= 0x05080000
    if (PyObject_TypeCheck(method, &PyWrapperDescr_Type)) {
        return PyClassMethod_New(method);
    }
#else
#if CYTHON_COMPILING_IN_PYPY
    if (PyMethodDescr_Check(method))
#else
    #if PY_MAJOR_VERSION == 2
    static PyTypeObject *methoddescr_type = NULL;
    if (unlikely(methoddescr_type == NULL)) {
       PyObject *meth = PyObject_GetAttrString((PyObject*)&PyList_Type, "append");
       if (unlikely(!meth)) return NULL;
       methoddescr_type = Py_TYPE(meth);
       Py_DECREF(meth);
    }
    #else
    PyTypeObject *methoddescr_type = &PyMethodDescr_Type;
    #endif
    if (__Pyx_TypeCheck(method, methoddescr_type))
#endif
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject *)method;
        #if PY_VERSION_HEX < 0x03020000
        PyTypeObject *d_type = descr->d_type;
        #else
        PyTypeObject *d_type = descr->d_common.d_type;
        #endif
        return PyDescr_NewClassMethod(d_type, descr->d_method);
    }
#endif
    else if (PyMethod_Check(method)) {
        return PyClassMethod_New(PyMethod_GET_FUNCTION(method));
    }
    else {
        return PyClassMethod_New(method);
    }
}

/* GetNameInClass */
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) {
    PyObject *result;
    PyObject *dict;
    assert(PyType_Check(nmspace));
#if CYTHON_USE_TYPE_SLOTS
    dict = ((PyTypeObject*)nmspace)->tp_dict;
    Py_XINCREF(dict);
#else
    dict = PyObject_GetAttr(nmspace, __pyx_n_s_dict);
#endif
    if (likely(dict)) {
        result = PyObject_GetItem(dict, name);
        Py_DECREF(dict);
        if (result) {
            return result;
        }
    }
    PyErr_Clear();
    __Pyx_GetModuleGlobalNameUncached(result, name);
    return result;
}

/* CLineInTraceback */
#ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline;
    PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject **cython_runtime_dict;
#endif
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
#if CYTHON_COMPILING_IN_CPYTHON
    cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, *cython_runtime_dict,
            __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
    } else
#endif
    {
      PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStrNoError(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
      if (use_cline_obj) {
        use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
        Py_DECREF(use_cline_obj);
      } else {
        PyErr_Clear();
        use_cline = NULL;
      }
    }
    if (!use_cline) {
        c_line = 0;
        (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
    }
    else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache */
#if !CYTHON_COMPILING_IN_LIMITED_API
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}
#endif

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result;
        result = PyObject_Call(replace, __pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    PyErr_Clear();
    #if __PYX_LIMITED_VERSION_HEX < 0x030780000
    {
        PyObject *compiled = NULL, *result = NULL;
        if (unlikely(PyDict_SetItemString(scratch_dict, "code", code))) return NULL;
        if (unlikely(PyDict_SetItemString(scratch_dict, "type", (PyObject*)(&PyType_Type)))) return NULL;
        compiled = Py_CompileString(
            "out = type(code)(\n"
            "  code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"
            "  code.co_flags, code.co_code, code.co_consts, code.co_names,\n"
            "  code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"
            "  code.co_lnotab)\n", "<dummy>", Py_file_input);
        if (!compiled) return NULL;
        result = PyEval_EvalCode(compiled, scratch_dict, scratch_dict);
        Py_DECREF(compiled);
        if (!result) PyErr_Print();
        Py_DECREF(result);
        result = PyDict_GetItemString(scratch_dict, "out");
        if (result) Py_INCREF(result);
        return result;
    }
    #else
    return NULL;
    #endif
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        (void) __pyx_cfilenm;
        (void) __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
    code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
    if (unlikely(!code_object)) goto bad;
    py_py_line = PyLong_FromLong(py_line);
    if (unlikely(!py_py_line)) goto bad;
    py_funcname = PyUnicode_FromString(funcname);
    if (unlikely(!py_funcname)) goto bad;
    dict = PyDict_New();
    if (unlikely(!dict)) goto bad;
    {
        PyObject *old_code_object = code_object;
        code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
        Py_DECREF(old_code_object);
    }
    if (unlikely(!code_object)) goto bad;
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    PyErr_Restore(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_srcfile = NULL;
    py_srcfile = PyString_FromString(filename);
    if (!py_srcfile) goto bad;
    #endif
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        if (!py_funcname) goto bad;
        #endif
    }
    #if PY_MAJOR_VERSION < 3
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    #else
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    #endif
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_srcfile);
    #endif
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* CIntFromPyVerify */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* Declarations */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      return ::std::complex< float >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      return x + y*(__pyx_t_float_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      __pyx_t_float_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* Arithmetic */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
#else
    static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    #if 1
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        if (b.imag == 0) {
            return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else if (fabsf(b.real) >= fabsf(b.imag)) {
            if (b.real == 0 && b.imag == 0) {
                return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
            } else {
                float r = b.imag / b.real;
                float s = (float)(1.0) / (b.real + b.imag * r);
                return __pyx_t_float_complex_from_parts(
                    (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
            }
        } else {
            float r = b.real / b.imag;
            float s = (float)(1.0) / (b.imag + b.real * r);
            return __pyx_t_float_complex_from_parts(
                (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
        }
    }
    #else
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        if (b.imag == 0) {
            return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else {
            float denom = b.real * b.real + b.imag * b.imag;
            return __pyx_t_float_complex_from_parts(
                (a.real * b.real + a.imag * b.imag) / denom,
                (a.imag * b.real - a.real * b.imag) / denom);
        }
    }
    #endif
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
        __pyx_t_float_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
        __pyx_t_float_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrtf(z.real*z.real + z.imag*z.imag);
          #else
            return hypotf(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
            __pyx_t_float_complex z;
            float r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    float denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        return __Pyx_c_prod_float(a, a);
                    case 3:
                        z = __Pyx_c_prod_float(a, a);
                        return __Pyx_c_prod_float(z, a);
                    case 4:
                        z = __Pyx_c_prod_float(a, a);
                        return __Pyx_c_prod_float(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                } else if ((b.imag == 0) && (a.real >= 0)) {
                    z.real = powf(a.real, b.real);
                    z.imag = 0;
                    return z;
                } else if (a.real > 0) {
                    r = a.real;
                    theta = 0;
                } else {
                    r = -a.real;
                    theta = atan2f(0.0, -1.0);
                }
            } else {
                r = __Pyx_c_abs_float(a);
                theta = atan2f(a.imag, a.real);
            }
            lnr = logf(r);
            z_r = expf(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cosf(z_theta);
            z.imag = z_r * sinf(z_theta);
            return z;
        }
    #endif
#endif

/* Declarations */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      return ::std::complex< double >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      return x + y*(__pyx_t_double_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      __pyx_t_double_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* Arithmetic */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
#else
    static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    #if 1
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else if (fabs(b.real) >= fabs(b.imag)) {
            if (b.real == 0 && b.imag == 0) {
                return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
            } else {
                double r = b.imag / b.real;
                double s = (double)(1.0) / (b.real + b.imag * r);
                return __pyx_t_double_complex_from_parts(
                    (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
            }
        } else {
            double r = b.real / b.imag;
            double s = (double)(1.0) / (b.imag + b.real * r);
            return __pyx_t_double_complex_from_parts(
                (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
        }
    }
    #else
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else {
            double denom = b.real * b.real + b.imag * b.imag;
            return __pyx_t_double_complex_from_parts(
                (a.real * b.real + a.imag * b.imag) / denom,
                (a.imag * b.real - a.real * b.imag) / denom);
        }
    }
    #endif
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
        __pyx_t_double_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
        __pyx_t_double_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrt(z.real*z.real + z.imag*z.imag);
          #else
            return hypot(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
            __pyx_t_double_complex z;
            double r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    double denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        return __Pyx_c_prod_double(a, a);
                    case 3:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(z, a);
                    case 4:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                } else if ((b.imag == 0) && (a.real >= 0)) {
                    z.real = pow(a.real, b.real);
                    z.imag = 0;
                    return z;
                } else if (a.real > 0) {
                    r = a.real;
                    theta = 0;
                } else {
                    r = -a.real;
                    theta = atan2(0.0, -1.0);
                }
            } else {
                r = __Pyx_c_abs_double(a);
                theta = atan2(a.imag, a.real);
            }
            lnr = log(r);
            z_r = exp(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cos(z_theta);
            z.imag = z_r * sin(z_theta);
            return z;
        }
    #endif
#endif

/* Declarations */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
      return ::std::complex< long double >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
      return x + y*(__pyx_t_long_double_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
      __pyx_t_long_double_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* Arithmetic */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
#else
    static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
        __pyx_t_long_double_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
        __pyx_t_long_double_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
        __pyx_t_long_double_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    #if 1
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else if (fabsl(b.real) >= fabsl(b.imag)) {
            if (b.real == 0 && b.imag == 0) {
                return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
            } else {
                long double r = b.imag / b.real;
                long double s = (long double)(1.0) / (b.real + b.imag * r);
                return __pyx_t_long_double_complex_from_parts(
                    (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
            }
        } else {
            long double r = b.real / b.imag;
            long double s = (long double)(1.0) / (b.imag + b.real * r);
            return __pyx_t_long_double_complex_from_parts(
                (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
        }
    }
    #else
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else {
            long double denom = b.real * b.real + b.imag * b.imag;
            return __pyx_t_long_double_complex_from_parts(
                (a.real * b.real + a.imag * b.imag) / denom,
                (a.imag * b.real - a.real * b.imag) / denom);
        }
    }
    #endif
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex a) {
        __pyx_t_long_double_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex a) {
        __pyx_t_long_double_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrtl(z.real*z.real + z.imag*z.imag);
          #else
            return hypotl(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
            __pyx_t_long_double_complex z;
            long double r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    long double denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        return __Pyx_c_prod_long__double(a, a);
                    case 3:
                        z = __Pyx_c_prod_long__double(a, a);
                        return __Pyx_c_prod_long__double(z, a);
                    case 4:
                        z = __Pyx_c_prod_long__double(a, a);
                        return __Pyx_c_prod_long__double(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                } else if ((b.imag == 0) && (a.real >= 0)) {
                    z.real = powl(a.real, b.real);
                    z.imag = 0;
                    return z;
                } else if (a.real > 0) {
                    r = a.real;
                    theta = 0;
                } else {
                    r = -a.real;
                    theta = atan2l(0.0, -1.0);
                }
            } else {
                r = __Pyx_c_abs_long__double(a);
                theta = atan2l(a.imag, a.real);
            }
            lnr = logl(r);
            z_r = expl(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cosl(z_theta);
            z.imag = z_r * sinl(z_theta);
            return z;
        }
    #endif
#endif

/* PyUCS4InUnicode */
#if PY_VERSION_HEX < 0x03090000 || (defined(PyUnicode_WCHAR_KIND) && defined(PyUnicode_AS_UNICODE))
#if PY_VERSION_HEX < 0x03090000
#define __Pyx_PyUnicode_AS_UNICODE(op) PyUnicode_AS_UNICODE(op)
#define __Pyx_PyUnicode_GET_SIZE(op) PyUnicode_GET_SIZE(op)
#else
#define __Pyx_PyUnicode_AS_UNICODE(op) (((PyASCIIObject *)(op))->wstr)
#define __Pyx_PyUnicode_GET_SIZE(op) ((PyCompactUnicodeObject *)(op))->wstr_length
#endif
#if !defined(Py_UNICODE_SIZE) || Py_UNICODE_SIZE == 2
static int __Pyx_PyUnicodeBufferContainsUCS4_SP(Py_UNICODE* buffer, Py_ssize_t length, Py_UCS4 character) {
    Py_UNICODE high_val, low_val;
    Py_UNICODE* pos;
    high_val = (Py_UNICODE) (0xD800 | (((character - 0x10000) >> 10) & ((1<<10)-1)));
    low_val  = (Py_UNICODE) (0xDC00 | ( (character - 0x10000)        & ((1<<10)-1)));
    for (pos=buffer; pos < buffer+length-1; pos++) {
        if (unlikely((high_val == pos[0]) & (low_val == pos[1]))) return 1;
    }
    return 0;
}
#endif
static int __Pyx_PyUnicodeBufferContainsUCS4_BMP(Py_UNICODE* buffer, Py_ssize_t length, Py_UCS4 character) {
    Py_UNICODE uchar;
    Py_UNICODE* pos;
    uchar = (Py_UNICODE) character;
    for (pos=buffer; pos < buffer+length; pos++) {
        if (unlikely(uchar == pos[0])) return 1;
    }
    return 0;
}
#endif
static CYTHON_INLINE int __Pyx_UnicodeContainsUCS4(PyObject* unicode, Py_UCS4 character) {
#if CYTHON_PEP393_ENABLED
    const int kind = PyUnicode_KIND(unicode);
    #ifdef PyUnicode_WCHAR_KIND
    if (likely(kind != PyUnicode_WCHAR_KIND))
    #endif
    {
        Py_ssize_t i;
        const void* udata = PyUnicode_DATA(unicode);
        const Py_ssize_t length = PyUnicode_GET_LENGTH(unicode);
        for (i=0; i < length; i++) {
            if (unlikely(character == PyUnicode_READ(kind, udata, i))) return 1;
        }
        return 0;
    }
#elif PY_VERSION_HEX >= 0x03090000
    #error Cannot use "UChar in Unicode" in Python 3.9 without PEP-393 unicode strings.
#elif !defined(PyUnicode_AS_UNICODE)
    #error Cannot use "UChar in Unicode" in Python < 3.9 without Py_UNICODE support.
#endif
#if PY_VERSION_HEX < 0x03090000 || (defined(PyUnicode_WCHAR_KIND) && defined(PyUnicode_AS_UNICODE))
#if !defined(Py_UNICODE_SIZE) || Py_UNICODE_SIZE == 2
    if ((sizeof(Py_UNICODE) == 2) && unlikely(character > 65535)) {
        return __Pyx_PyUnicodeBufferContainsUCS4_SP(
            __Pyx_PyUnicode_AS_UNICODE(unicode),
            __Pyx_PyUnicode_GET_SIZE(unicode),
            character);
    } else
#endif
    {
        return __Pyx_PyUnicodeBufferContainsUCS4_BMP(
            __Pyx_PyUnicode_AS_UNICODE(unicode),
            __Pyx_PyUnicode_GET_SIZE(unicode),
            character);
    }
#endif
}

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if ((sizeof(int) < sizeof(long))) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            if (unlikely(__Pyx_PyLong_IsNeg(x))) {
                goto raise_neg_overflow;
            } else if (__Pyx_PyLong_IsCompact(x)) {
                __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
            } else {
                const digit* digits = __Pyx_PyLong_Digits(x);
                assert(__Pyx_PyLong_DigitCount(x) > 1);
                switch (__Pyx_PyLong_DigitCount(x)) {
                    case 2:
                        if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
                                return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                            }
                        }
                        break;
                    case 3:
                        if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
                                return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                            }
                        }
                        break;
                    case 4:
                        if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
                                return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                            }
                        }
                        break;
                }
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if ((sizeof(int) <= sizeof(unsigned long))) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            if (__Pyx_PyLong_IsCompact(x)) {
                __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
            } else {
                const digit* digits = __Pyx_PyLong_Digits(x);
                assert(__Pyx_PyLong_DigitCount(x) > 1);
                switch (__Pyx_PyLong_SignedDigitCount(x)) {
                    case -2:
                        if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                                return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                            }
                        }
                        break;
                    case 2:
                        if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                                return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                            }
                        }
                        break;
                    case -3:
                        if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                                return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                            }
                        }
                        break;
                    case 3:
                        if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                                return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                            }
                        }
                        break;
                    case -4:
                        if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                                return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                            }
                        }
                        break;
                    case 4:
                        if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                                return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                            }
                        }
                        break;
                }
            }
#endif
            if ((sizeof(int) <= sizeof(long))) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
#if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
#endif
            if (likely(v)) {
                int ret = -1;
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                ret = _PyLong_AsByteArray((PyLongObject *)v,
                                           bytes, sizeof(val),
                                           is_little, !is_unsigned);
#else
                PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
                int bits, remaining_bits, is_negative = 0;
                long idigit;
                int chunk_size = (sizeof(long) < 8) ? 30 : 62;
                if (unlikely(!PyLong_CheckExact(v))) {
                    PyObject *tmp = v;
                    v = PyNumber_Long(v);
                    assert(PyLong_CheckExact(v));
                    Py_DECREF(tmp);
                    if (unlikely(!v)) return (int) -1;
                }
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
                if (Py_SIZE(x) == 0)
                    return (int) 0;
                is_negative = Py_SIZE(x) < 0;
#else
                {
                    int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                    if (unlikely(result < 0))
                        return (int) -1;
                    is_negative = result == 1;
                }
#endif
                if (is_unsigned && unlikely(is_negative)) {
                    goto raise_neg_overflow;
                } else if (is_negative) {
                    stepval = PyNumber_Invert(v);
                    if (unlikely(!stepval))
                        return (int) -1;
                } else {
                    stepval = __Pyx_NewRef(v);
                }
                val = (int) 0;
                mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
                shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
                for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
                    PyObject *tmp, *digit;
                    digit = PyNumber_And(stepval, mask);
                    if (unlikely(!digit)) goto done;
                    idigit = PyLong_AsLong(digit);
                    Py_DECREF(digit);
                    if (unlikely(idigit < 0)) goto done;
                    tmp = PyNumber_Rshift(stepval, shift);
                    if (unlikely(!tmp)) goto done;
                    Py_DECREF(stepval); stepval = tmp;
                    val |= ((int) idigit) << bits;
                    #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
                    if (Py_SIZE(stepval) == 0)
                        goto unpacking_done;
                    #endif
                }
                idigit = PyLong_AsLong(stepval);
                if (unlikely(idigit < 0)) goto done;
                remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
                if (unlikely(idigit >= (1L << remaining_bits)))
                    goto raise_overflow;
                val |= ((int) idigit) << bits;
            #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
            unpacking_done:
            #endif
                if (!is_unsigned) {
                    if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
                        goto raise_overflow;
                    if (is_negative)
                        val = ~val;
                }
                ret = 0;
            done:
                Py_XDECREF(shift);
                Py_XDECREF(mask);
                Py_XDECREF(stepval);
#endif
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if ((sizeof(long) < sizeof(long))) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            if (unlikely(__Pyx_PyLong_IsNeg(x))) {
                goto raise_neg_overflow;
            } else if (__Pyx_PyLong_IsCompact(x)) {
                __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
            } else {
                const digit* digits = __Pyx_PyLong_Digits(x);
                assert(__Pyx_PyLong_DigitCount(x) > 1);
                switch (__Pyx_PyLong_DigitCount(x)) {
                    case 2:
                        if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
                                return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                            }
                        }
                        break;
                    case 3:
                        if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
                                return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                            }
                        }
                        break;
                    case 4:
                        if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
                                return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                            }
                        }
                        break;
                }
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if ((sizeof(long) <= sizeof(unsigned long))) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            if (__Pyx_PyLong_IsCompact(x)) {
                __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
            } else {
                const digit* digits = __Pyx_PyLong_Digits(x);
                assert(__Pyx_PyLong_DigitCount(x) > 1);
                switch (__Pyx_PyLong_SignedDigitCount(x)) {
                    case -2:
                        if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                                return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                            }
                        }
                        break;
                    case 2:
                        if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                                return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                            }
                        }
                        break;
                    case -3:
                        if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                                return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                            }
                        }
                        break;
                    case 3:
                        if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                                return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                            }
                        }
                        break;
                    case -4:
                        if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                                return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                            }
                        }
                        break;
                    case 4:
                        if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                                return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                            }
                        }
                        break;
                }
            }
#endif
            if ((sizeof(long) <= sizeof(long))) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
#if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
#endif
            if (likely(v)) {
                int ret = -1;
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                ret = _PyLong_AsByteArray((PyLongObject *)v,
                                           bytes, sizeof(val),
                                           is_little, !is_unsigned);
#else
                PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
                int bits, remaining_bits, is_negative = 0;
                long idigit;
                int chunk_size = (sizeof(long) < 8) ? 30 : 62;
                if (unlikely(!PyLong_CheckExact(v))) {
                    PyObject *tmp = v;
                    v = PyNumber_Long(v);
                    assert(PyLong_CheckExact(v));
                    Py_DECREF(tmp);
                    if (unlikely(!v)) return (long) -1;
                }
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
                if (Py_SIZE(x) == 0)
                    return (long) 0;
                is_negative = Py_SIZE(x) < 0;
#else
                {
                    int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                    if (unlikely(result < 0))
                        return (long) -1;
                    is_negative = result == 1;
                }
#endif
                if (is_unsigned && unlikely(is_negative)) {
                    goto raise_neg_overflow;
                } else if (is_negative) {
                    stepval = PyNumber_Invert(v);
                    if (unlikely(!stepval))
                        return (long) -1;
                } else {
                    stepval = __Pyx_NewRef(v);
                }
                val = (long) 0;
                mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
                shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
                for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
                    PyObject *tmp, *digit;
                    digit = PyNumber_And(stepval, mask);
                    if (unlikely(!digit)) goto done;
                    idigit = PyLong_AsLong(digit);
                    Py_DECREF(digit);
                    if (unlikely(idigit < 0)) goto done;
                    tmp = PyNumber_Rshift(stepval, shift);
                    if (unlikely(!tmp)) goto done;
                    Py_DECREF(stepval); stepval = tmp;
                    val |= ((long) idigit) << bits;
                    #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
                    if (Py_SIZE(stepval) == 0)
                        goto unpacking_done;
                    #endif
                }
                idigit = PyLong_AsLong(stepval);
                if (unlikely(idigit < 0)) goto done;
                remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
                if (unlikely(idigit >= (1L << remaining_bits)))
                    goto raise_overflow;
                val |= ((long) idigit) << bits;
            #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
            unpacking_done:
            #endif
                if (!is_unsigned) {
                    if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
                        goto raise_overflow;
                    if (is_negative)
                        val = ~val;
                }
                ret = 0;
            done:
                Py_XDECREF(shift);
                Py_XDECREF(mask);
                Py_XDECREF(stepval);
#endif
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
#else
        PyObject *from_bytes, *result = NULL;
        PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        arg_tuple = PyTuple_Pack(2, py_bytes, order_str);
        if (!arg_tuple) goto limited_bad;
        if (!is_unsigned) {
            kwds = PyDict_New();
            if (!kwds) goto limited_bad;
            if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad;
        }
        result = PyObject_Call(from_bytes, arg_tuple, kwds);
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(arg_tuple);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        PyObject *from_bytes, *result = NULL;
        PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        arg_tuple = PyTuple_Pack(2, py_bytes, order_str);
        if (!arg_tuple) goto limited_bad;
        if (!is_unsigned) {
            kwds = PyDict_New();
            if (!kwds) goto limited_bad;
            if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad;
        }
        result = PyObject_Call(from_bytes, arg_tuple, kwds);
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(arg_tuple);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PY_LONG_LONG(PY_LONG_LONG value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const PY_LONG_LONG neg_one = (PY_LONG_LONG) -1, const_zero = (PY_LONG_LONG) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(PY_LONG_LONG) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(PY_LONG_LONG) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        return _PyLong_FromByteArray(bytes, sizeof(PY_LONG_LONG),
                                     little, !is_unsigned);
#else
        PyObject *from_bytes, *result = NULL;
        PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(PY_LONG_LONG));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        arg_tuple = PyTuple_Pack(2, py_bytes, order_str);
        if (!arg_tuple) goto limited_bad;
        if (!is_unsigned) {
            kwds = PyDict_New();
            if (!kwds) goto limited_bad;
            if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad;
        }
        result = PyObject_Call(from_bytes, arg_tuple, kwds);
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(arg_tuple);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if ((sizeof(unsigned int) < sizeof(long))) {
            __PYX_VERIFY_RETURN_INT(unsigned int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (unsigned int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            if (unlikely(__Pyx_PyLong_IsNeg(x))) {
                goto raise_neg_overflow;
            } else if (__Pyx_PyLong_IsCompact(x)) {
                __PYX_VERIFY_RETURN_INT(unsigned int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
            } else {
                const digit* digits = __Pyx_PyLong_Digits(x);
                assert(__Pyx_PyLong_DigitCount(x) > 1);
                switch (__Pyx_PyLong_DigitCount(x)) {
                    case 2:
                        if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT)) {
                                return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                            }
                        }
                        break;
                    case 3:
                        if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT)) {
                                return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                            }
                        }
                        break;
                    case 4:
                        if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) >= 4 * PyLong_SHIFT)) {
                                return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                            }
                        }
                        break;
                }
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (unsigned int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if ((sizeof(unsigned int) <= sizeof(unsigned long))) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if ((sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG))) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            if (__Pyx_PyLong_IsCompact(x)) {
                __PYX_VERIFY_RETURN_INT(unsigned int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
            } else {
                const digit* digits = __Pyx_PyLong_Digits(x);
                assert(__Pyx_PyLong_DigitCount(x) > 1);
                switch (__Pyx_PyLong_SignedDigitCount(x)) {
                    case -2:
                        if ((8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                                return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                            }
                        }
                        break;
                    case 2:
                        if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                                return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                            }
                        }
                        break;
                    case -3:
                        if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                                return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                            }
                        }
                        break;
                    case 3:
                        if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                                return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                            }
                        }
                        break;
                    case -4:
                        if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                                return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                            }
                        }
                        break;
                    case 4:
                        if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                                __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                            } else if ((8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                                return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                            }
                        }
                        break;
                }
            }
#endif
            if ((sizeof(unsigned int) <= sizeof(long))) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if ((sizeof(unsigned int) <= sizeof(PY_LONG_LONG))) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
            unsigned int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
#if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
#endif
            if (likely(v)) {
                int ret = -1;
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                ret = _PyLong_AsByteArray((PyLongObject *)v,
                                           bytes, sizeof(val),
                                           is_little, !is_unsigned);
#else
                PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
                int bits, remaining_bits, is_negative = 0;
                long idigit;
                int chunk_size = (sizeof(long) < 8) ? 30 : 62;
                if (unlikely(!PyLong_CheckExact(v))) {
                    PyObject *tmp = v;
                    v = PyNumber_Long(v);
                    assert(PyLong_CheckExact(v));
                    Py_DECREF(tmp);
                    if (unlikely(!v)) return (unsigned int) -1;
                }
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
                if (Py_SIZE(x) == 0)
                    return (unsigned int) 0;
                is_negative = Py_SIZE(x) < 0;
#else
                {
                    int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                    if (unlikely(result < 0))
                        return (unsigned int) -1;
                    is_negative = result == 1;
                }
#endif
                if (is_unsigned && unlikely(is_negative)) {
                    goto raise_neg_overflow;
                } else if (is_negative) {
                    stepval = PyNumber_Invert(v);
                    if (unlikely(!stepval))
                        return (unsigned int) -1;
                } else {
                    stepval = __Pyx_NewRef(v);
                }
                val = (unsigned int) 0;
                mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
                shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
                for (bits = 0; bits < (int) sizeof(unsigned int) * 8 - chunk_size; bits += chunk_size) {
                    PyObject *tmp, *digit;
                    digit = PyNumber_And(stepval, mask);
                    if (unlikely(!digit)) goto done;
                    idigit = PyLong_AsLong(digit);
                    Py_DECREF(digit);
                    if (unlikely(idigit < 0)) goto done;
                    tmp = PyNumber_Rshift(stepval, shift);
                    if (unlikely(!tmp)) goto done;
                    Py_DECREF(stepval); stepval = tmp;
                    val |= ((unsigned int) idigit) << bits;
                    #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
                    if (Py_SIZE(stepval) == 0)
                        goto unpacking_done;
                    #endif
                }
                idigit = PyLong_AsLong(stepval);
                if (unlikely(idigit < 0)) goto done;
                remaining_bits = ((int) sizeof(unsigned int) * 8) - bits - (is_unsigned ? 0 : 1);
                if (unlikely(idigit >= (1L << remaining_bits)))
                    goto raise_overflow;
                val |= ((unsigned int) idigit) << bits;
            #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
            unpacking_done:
            #endif
                if (!is_unsigned) {
                    if (unlikely(val & (((unsigned int) 1) << (sizeof(unsigned int) * 8 - 1))))
                        goto raise_overflow;
                    if (is_negative)
                        val = ~val;
                }
                ret = 0;
            done:
                Py_XDECREF(shift);
                Py_XDECREF(mask);
                Py_XDECREF(stepval);
#endif
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
            return (unsigned int) -1;
        }
    } else {
        unsigned int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (unsigned int) -1;
        val = __Pyx_PyInt_As_unsigned_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned int");
    return (unsigned int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned int");
    return (unsigned int) -1;
}

/* FormatTypeName */
#if CYTHON_COMPILING_IN_LIMITED_API
static __Pyx_TypeName
__Pyx_PyType_GetName(PyTypeObject* tp)
{
    PyObject *name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_n_s_name_2);
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) {
        PyErr_Clear();
        Py_XDECREF(name);
        name = __Pyx_NewRef(__pyx_n_s__155);
    }
    return name;
}
#endif

/* CheckBinaryVersion */
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030B00A4
    return Py_Version & ~0xFFUL;
#else
    const char* rt_version = Py_GetVersion();
    unsigned long version = 0;
    unsigned long factor = 0x01000000UL;
    unsigned int digit = 0;
    int i = 0;
    while (factor) {
        while ('0' <= rt_version[i] && rt_version[i] <= '9') {
            digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
            ++i;
        }
        version += factor * digit;
        if (rt_version[i] != '.')
            break;
        digit = 0;
        factor >>= 8;
        ++i;
    }
    return version;
#endif
}
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* VoidPtrExport */
static int __Pyx_ExportVoidPtr(PyObject *name, void *p, const char *sig) {
    PyObject *d;
    PyObject *cobj = 0;
    d = PyDict_GetItem(__pyx_d, __pyx_n_s_pyx_capi);
    Py_XINCREF(d);
    if (!d) {
        d = PyDict_New();
        if (!d)
            goto bad;
        if (__Pyx_PyObject_SetAttrStr(__pyx_m, __pyx_n_s_pyx_capi, d) < 0)
            goto bad;
    }
    cobj = PyCapsule_New(p, sig, 0);
    if (!cobj)
        goto bad;
    if (PyDict_SetItem(d, name, cobj) < 0)
        goto bad;
    Py_DECREF(cobj);
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(cobj);
    Py_XDECREF(d);
    return -1;
}

/* VoidPtrImport */
#ifndef __PYX_HAVE_RT_ImportVoidPtr_3_0_10
#define __PYX_HAVE_RT_ImportVoidPtr_3_0_10
static int __Pyx_ImportVoidPtr_3_0_10(PyObject *module, const char *name, void **p, const char *sig) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
    if (!d)
        goto bad;
    cobj = PyDict_GetItemString(d, name);
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C variable %.200s",
                PyModule_GetName(module), name);
        goto bad;
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C variable %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    *p = PyCapsule_GetPointer(cobj, sig);
    if (!(*p))
        goto bad;
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(d);
    return -1;
}
#endif

/* FunctionImport */
#ifndef __PYX_HAVE_RT_ImportFunction_3_0_10
#define __PYX_HAVE_RT_ImportFunction_3_0_10
static int __Pyx_ImportFunction_3_0_10(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
    if (!d)
        goto bad;
    cobj = PyDict_GetItemString(d, funcname);
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C function %.200s",
                PyModule_GetName(module), funcname);
        goto bad;
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    tmp.p = PyCapsule_GetPointer(cobj, sig);
    *f = tmp.fp;
    if (!(*f))
        goto bad;
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(d);
    return -1;
}
#endif

/* InitStrings */
#if PY_MAJOR_VERSION >= 3
static int __Pyx_InitString(__Pyx_StringTabEntry t, PyObject **str) {
    if (t.is_unicode | t.is_str) {
        if (t.intern) {
            *str = PyUnicode_InternFromString(t.s);
        } else if (t.encoding) {
            *str = PyUnicode_Decode(t.s, t.n - 1, t.encoding, NULL);
        } else {
            *str = PyUnicode_FromStringAndSize(t.s, t.n - 1);
        }
    } else {
        *str = PyBytes_FromStringAndSize(t.s, t.n - 1);
    }
    if (!*str)
        return -1;
    if (PyObject_Hash(*str) == -1)
        return -1;
    return 0;
}
#endif
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION >= 3
        __Pyx_InitString(*t, t->p);
        #else
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        if (!*t->p)
            return -1;
        if (PyObject_Hash(*t->p) == -1)
            return -1;
        #endif
        ++t;
    }
    return 0;
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
#if !CYTHON_PEP393_ENABLED
static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    char* defenc_c;
    PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
    if (!defenc) return NULL;
    defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    {
        char* end = defenc_c + PyBytes_GET_SIZE(defenc);
        char* c;
        for (c = defenc_c; c < end; c++) {
            if ((unsigned char) (*c) >= 128) {
                PyUnicode_AsASCIIString(o);
                return NULL;
            }
        }
    }
#endif
    *length = PyBytes_GET_SIZE(defenc);
    return defenc_c;
}
#else
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
}
#endif
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY && !CYTHON_COMPILING_IN_LIMITED_API) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetName(Py_TYPE(result));
#if PY_MAJOR_VERSION >= 3
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
#endif
    PyErr_Format(PyExc_TypeError,
                 "__%.4s__ returned non-%.4s (type " __Pyx_FMT_TYPENAME ")",
                 type_name, type_name, result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_Check(x) || PyLong_Check(x)))
#else
  if (likely(PyLong_Check(x)))
#endif
    return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  #if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = m->nb_int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = m->nb_long(x);
  }
  #else
  if (likely(m && m->nb_int)) {
    name = "int";
    res = m->nb_int(x);
  }
  #endif
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
    res = PyNumber_Int(x);
  }
#endif
  if (likely(res)) {
#if PY_MAJOR_VERSION < 3
    if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
#else
    if (unlikely(!PyLong_CheckExact(res))) {
#endif
        return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(b);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(__Pyx_PyLong_IsCompact(b))) {
        return __Pyx_PyLong_CompactValue(b);
    } else {
      const digit* digits = __Pyx_PyLong_Digits(b);
      const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
#if PY_MAJOR_VERSION < 3
  } else if (likely(PyInt_CheckExact(o))) {
    return PyInt_AS_LONG(o);
#endif
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyInt_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
