Skip to main content

Module temporal

Module temporal 

Source
Expand description

Defines temporal kernels for time and date related functions.

Macrosยง

return_compute_error_with ๐Ÿ”’

Enumsยง

DatePart
Valid parts to extract from date/time/timestamp arrays.

Traitsยง

ChronoDateExt ๐Ÿ”’
ExtractDatePartExt ๐Ÿ”’
Implement the specialized functions for extracting date part from temporal arrays.

Functionsยง

date_part
Given an array, return a new array with the extracted DatePart as signed 32-bit integer values.
get_date_time_part_extract_fn ๐Ÿ”’
Returns function to extract relevant DatePart from types like a NaiveDateTime or DateTime.
get_tz ๐Ÿ”’
Extract optional [Tz] from timestamp data types, returning error if called with a non-timestamp type.
subsecond ๐Ÿ”’
Fractional second of v, counted in units per second, rescaled to target per second. Both scales divide one second evenly, so the conversion is exact when scaling up and truncating when scaling down.
timestamp_time_part ๐Ÿ”’
Extracts a time-of-day part from a timestamp array without a timezone using integer arithmetic. Returns None for parts that require a calendar conversion.
units_per_second ๐Ÿ”’
Number of ticks in one second for timestamps of type T.