Skip to content

determine if a variable is datetime-like? #10193

Answered by spencerkclark
mathause asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mathause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants