Skip to content

Conversation

@mjgarton
Copy link
Contributor

Instead of assuming we want Time64Microsecond when converting from NaiveType, convert based on the interenced type.

Update the get_time*_value functions to return NaiveTime instead of NaiveDateTime. Previously they were returning None, because that's what as_datetime always returns for Time32 & Time64 values.

@mjgarton
Copy link
Contributor Author

I am not sure whether this logic is worth adding tests for. I hope to consider adding tests some time later this week.

Instead of assuming we want `Time64Microsecond` when converting from
NaiveType, convert based on the interenced type.

Update the `get_time*_value` functions to return `NaiveTime` instead of
`NaiveDateTime`.  Previously they were returning None, because that's
what `as_datetime` always returns for Time32 & Time64 values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant