Function arrow2::temporal_conversions::timeunit_scale

source ·
pub fn timeunit_scale(a: TimeUnit, b: TimeUnit) -> f64
Expand description

Calculates the scale factor between two TimeUnits. The function returns the scale that should multiply the TimeUnit “b” to have the same time scale as the TimeUnit “a”.