Checks if the array has a datetime-like dtype (datetime, timedelta, date)
Source code in tsdat/qc/checkers/is_datetime_like.py
| def is_datetime_like(data: NDArray[Any]) -> bool:
"""Checks if the array has a datetime-like dtype (datetime, timedelta, date)"""
return np.issubdtype(data.dtype, (np.datetime64, np.timedelta64))
|