Skip to content

datetime64 and timedelta64 #11

Closed
Closed
@d-v-b

Description

@d-v-b

Zarr-python 2.x supported numpy's datetime64 and timedelta64 dtypes, which are described in the numpy documentation. Both of these data types are parametrized by a step size (a positive integer) and a unit (one of the temporal units listed here).

We should add a description of this data type to zarr v3. I imagine the JSON metadata for these dtypes would look like this:

"name": "datetime64" | "timedelta64"
"configuration": {
    "unit": "h" | "m" | "s" ...
    "interval": <int>
    } 

I think it would make sense to use a standard string datetime format for encoding fill values. There is a special value, called "not a time" or "NaT", which we could represent with a string literal "NaT".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions