Available on crate feature compute_temporal only.
Expand description

Defines temporal kernels for time and date related functions.

Functions

Checks if an array of type datatype can perform day operation

Checks if an array of type datatype can perform hour operation

Checks if an array of type data_type can perform ISO week operation

Checks if an array of type datatype can perform minute operation

Checks if an array of type datatype can perform month operation

Checks if an array of type datatype can perform nanosecond operation

Checks if an array of type datatype can perform second operation

Checks if an array of type data_type can perform weekday operation

Checks if an array of type datatype can perform year operation

Extracts the days of a temporal array as PrimitiveArray<u32>. Value ranges from 1 to 32 (Last day depends on month). Use can_day to check if this operation is supported for the target DataType.

Extracts the hours of a temporal array as PrimitiveArray<u32>. Value ranges from 0 to 23. Use can_hour to check if this operation is supported for the target DataType.

Extracts ISO week of a temporal array as PrimitiveArray<u32> Value ranges from 1 to 53 (Last week depends on the year). Use can_iso_week to check if this operation is supported for the target DataType

Extracts the minutes of a temporal array as PrimitiveArray<u32>. Value ranges from 0 to 59. Use can_minute to check if this operation is supported for the target DataType.

Extracts the months of a temporal array as PrimitiveArray<u32>. Value ranges from 1 to 12. Use can_month to check if this operation is supported for the target DataType.

Extracts the nanoseconds of a temporal array as PrimitiveArray<u32>. Use can_nanosecond to check if this operation is supported for the target DataType.

Extracts the seconds of a temporal array as PrimitiveArray<u32>. Value ranges from 0 to 59. Use can_second to check if this operation is supported for the target DataType.

Extracts weekday of a temporal array as PrimitiveArray<u32>. Monday is 1, Tuesday is 2, …, Sunday is 7. Use can_weekday to check if this operation is supported for the target DataType

Extracts the years of a temporal array as PrimitiveArray<i32>. Use can_year to check if this operation is supported for the target DataType.