def create_np_datetime(self, val, unit_code):
    unit_code = Constant.int(Type.int(), unit_code)
    fnty = Type.function(self.pyobj, [Type.int(64), Type.int()])
    fn = self._get_function(fnty, name='numba_create_np_datetime')
    return self.builder.call(fn, [val, unit_code])
def create_np_datetime(self, val, unit_code):
    unit_code = Constant.int(Type.int(), unit_code)
    fnty = Type.function(self.pyobj, [Type.int(64), Type.int()])
    fn = self._get_function(fnty, name='numba_create_np_datetime')
    return self.builder.call(fn, [val, unit_code])