Skip to content

expose prefer_datetime in cfvariable#40

Merged
Alexander-Barth merged 2 commits intomainfrom
fc/prefer_datetime
Aug 21, 2025
Merged

expose prefer_datetime in cfvariable#40
Alexander-Barth merged 2 commits intomainfrom
fc/prefer_datetime

Conversation

@felixcremer
Copy link
Copy Markdown
Member

This exposes the prefer_datetime variable as a keyword argument in cfvariable and _get_rettype.

This will allow to open datasets that have Date or time information which is not convertible to DateTime objects.
One example is the usage of nanoseconds.

This is non breaking because the default value of prefer_datetime is true.

This closes #39 .

Comment thread src/cfvariable.jl Outdated
Comment thread src/cfvariable.jl Outdated
@Alexander-Barth
Copy link
Copy Markdown
Member

Thanks Felix!!

@Alexander-Barth Alexander-Barth merged commit d98de57 into main Aug 21, 2025
16 checks passed
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.

Cannot index variable of Zarr file with nanosecond time information

3 participants