determine if a variable is datetime-like? #10193
-
Is there a good way to determine if a variable is datetime like? There is Line 2106 in e8b1daf but it's not public. Is there another succinct way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
spencerkclark
Mar 31, 2025
Replies: 1 comment
-
There is not really a clean way I am aware of at the moment. If you have a DataArray, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mathause
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is not really a clean way I am aware of at the moment. If you have a DataArray,
hasattr(da, "dt")
would be somewhat of a roundabout public way of getting at it, but it's not the most explicit.