pub fn system_time_range_from_date_and_adjuster(
    start_date: &str,
    end_date: Option<&str>,
    days_adjuster: Option<&str>,
) -> Result<(SystemTime, SystemTime)> {
    let start = system_time_from_date_and_adjuster(start_date, days_adjuster)?;
    let end = match end_date {
        Some(t) => system_time_from_date_and_adjuster(t, days_adjuster)?,
        None => SystemTime::now(),
    };
    Ok((start, end))
}
/// Convert from date range and an optional days adjuster to a start and end
/// `SystemTime`. Days adjuster is of form y[y...]. Each "y" will deduct 1 day
/// from the resulting time.
Convert from date range and an optional days adjuster to a start and end
`SystemTime`. Days adjuster is of form y[y...]. Each "y" will deduct 1 day
from the resulting time.
Convert from date range and an optional days adjuster to a start and end ` SystemTime ` . Days adjuster is of form y [ y ... ] . Each " y " will deduct 1 day from the resulting time .
pub fn system_time_range_from_date_and_adjuster(
    start_date: &str,
    end_date: Option<&str>,
    days_adjuster: Option<&str>,
) -> Result<(SystemTime, SystemTime)> {
    let start = system_time_from_date_and_adjuster(start_date, days_adjuster)?;
    let end = match end_date {
        Some(t) => system_time_from_date_and_adjuster(t, days_adjuster)?,
        None => SystemTime::now(),
    };
    Ok((start, end))
}
pub fn system_time_range_from_date_and_adjuster ( start_date : & str , end_date : Option < & str > , days_adjuster : Option < & str > , ) -> Result < ( SystemTime , SystemTime ) > { let start = system_time_from_date_and_adjuster ( start_date , days_adjuster ) ? ; let end = match end_date { Some ( t ) => system_time_from_date_and_adjuster ( t , days_adjuster ) ? , None => SystemTime :: now ( ) , } ; Ok ( ( start , end ) ) }
Convert from date range and an optional days adjuster to a start and end
`SystemTime`.
Convert from date range and an optional days adjuster to a start and end ` SystemTime ` .
start_date
&str
end_date
Option<&str>
days_adjuster
Option<&str>
start_date
&str
end_date
Option<&str>
days_adjuster
Option<&str>