Skip to content

enh: A way to check if a data type is Timestamp #4032

@MarcoGorelli

Description

@MarcoGorelli

Is your feature request related to a problem?

Currently, it looks like daft_dtype == daft.DataType.timestamp('us', None) can check if daft_dtype is a Timestamp with microsecond precision and no time zone

But, how can I check if daft_dtype is any timestamp (regardless of time unit / time zone)?

Describe the solution you'd like

is_timestamp or something like that

Describe alternatives you've considered

No response

Additional Context

narwhals integration

Would you like to implement a fix?

No

Metadata

Metadata

Labels

enhancementNew feature or requestnarwhalsFeatures/Bugs related to supporting narwhals

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions