Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] support for datetime and timedelta dtypes #2616

Open
jhamman opened this issue Jan 2, 2025 · 0 comments
Open

[v3] support for datetime and timedelta dtypes #2616

jhamman opened this issue Jan 2, 2025 · 0 comments
Milestone

Comments

@jhamman
Copy link
Member

jhamman commented Jan 2, 2025

Zarr-Python 2 supported datetime and timedelta dtypes. This functionality has not made it into Zarr-Python 3 yet (in part because the v3 spec does not have established extension dtypes for these yet).

Example of the behavior for Zarr 2:

z = zarr.array(['2007-07-13', '2006-01-13', '2010-08-13'], dtype='M8[D]')
z
<zarr.core.Array (3,) datetime64[D]>
z[:]
array(['2007-07-13', '2006-01-13', '2010-08-13'], dtype='datetime64[D]')
z[0]
numpy.datetime64('2007-07-13')
z[0] = '1999-12-31'
z[:]
array(['1999-12-31', '2006-01-13', '2010-08-13'], dtype='datetime64[D]')

This issue tracks the development of datetime and timedelta support in Zarr-Python 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant