arrow_arith::temporal

Function get_date_time_part_extract_fn

Source
fn get_date_time_part_extract_fn<T>(part: DatePart) -> fn(_: T) -> i32
Expand description

Returns function to extract relevant DatePart from types like a NaiveDateTime or DateTime.