def _is_datetime_dtype(obj):
    """Returns True if the obj.dtype is datetime64 or timedelta64
    """
    dtype = getattr(obj, 'dtype', None)
    return dtype is not None and dtype.char in 'Mm'
Returns True if the obj.dtype is datetime64 or timedelta64
    
numba/cuda/cudadrv/driver.py