Module arrow_arith::temporal

source ·
Expand description

Defines temporal kernels for time and date related functions.

Functions

Extracts the day of a given temporal primitive array as an array of integers
Extracts the day of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Extracts the day of year of a given temporal primitive array as an array of integers The day of year that ranges from 1 to 366
Extracts the day of year of a given temporal array as an array of integers The day of year that ranges from 1 to 366. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Extracts the hours of a given temporal primitive array as an array of integers within the range of [0, 23].
Extracts the hours of a given array as an array of integers within the range of [0, 23]. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Extracts the minutes of a given temporal primitive array as an array of integers
Extracts the minutes of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Extracts the month of a given temporal primitive array as an array of integers within the range of [1, 12].
Extracts the month of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Extracts the nanoseconds of a given temporal primitive array as an array of integers
Extracts the nanoseconds of a given temporal primitive array as an array of integers. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Extracts the day of week of a given temporal primitive array as an array of integers.
Extracts the day of week of a given temporal array as an array of integers.
Extracts the day of week of a given temporal primitive array as an array of integers, starting at Sunday.
Extracts the day of week of a given temporal array as an array of integers, starting at Sunday.
Extracts the quarter of a given temporal primitive array as an array of integers within the range of [1, 4].
Extracts the quarter of a given temporal array as an array of integersa within the range of [1, 4]. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Extracts the seconds of a given temporal primitive array as an array of integers
Extracts the seconds of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Parse the given string into a string representing fixed-offset that is correct as of the given UTC NaiveDateTime. Note that the offset is function of time and can vary depending on whether daylight savings is in effect or not. e.g. Australia/Sydney is +10:00 or +11:00 depending on DST.
Extracts the week of a given temporal primitive array as an array of integers
Extracts the week of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.
Extracts the years of a given temporal primitive array as an array of integers
Extracts the years of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.