Function extract_from_time

Source
fn extract_from_time(time: Time, unit: &Unit) -> Decimal