fn general_date_trunc_array_fine_granularity<T: ArrowTimestampType>(
tu: TimeUnit,
array: &PrimitiveArray<T>,
granularity: DateTruncGranularity,
) -> Result<ArrayRef>Expand description
Fast path for fine granularities (hour and smaller) that can be handled with simple arithmetic operations without calendar complexity.
This function is timezone-agnostic and should only be used when:
- No timezone is specified in the input, OR
- The granularity is less than hour as hour can be affected by DST transitions in some cases