Function extract_from_date

Source
fn extract_from_date(date: Date, unit: &Unit) -> Decimal