Function datetime_utc_to_unit

Source
fn datetime_utc_to_unit(
    timestamp: &DateTime<Utc>,
    unit: &TimeUnit,
) -> Result<i64>