fn parse_date_string(date: &str) -> Result<i64, Error> {
    let mut child = process::Command::new("date")
        .arg("+%s")
        .arg("-d")
        .arg(date)
        .stdin(Stdio::null())
        .stdout(Stdio::piped())
        .spawn()?;

    let mut string_result = String::new();
    child
        .stdout
        .take()
        .unwrap()
        .read_to_string(&mut string_result)?;
    child.wait()?;
    string_result
        .trim()
        .parse::<i64>()
        .map_err(|err| err.into())
}
// Rather than reimplementing the human entered date parsing logic from coreutils, just use `date`
// for now.
Rather than reimplementing the human entered date parsing logic from coreutils, just use `date`
for now.
Rather than reimplementing the human entered date parsing logic from coreutils just use ` date ` for now .
fn parse_date_string(date: &str) -> Result<i64, Error> {
    let mut child = process::Command::new("date")
        .arg("+%s")
        .arg("-d")
        .arg(date)
        .stdin(Stdio::null())
        .stdout(Stdio::piped())
        .spawn()?;
    let mut string_result = String::new();
    child
        .stdout
        .take()
        .unwrap()
        .read_to_string(&mut string_result)?;
    child.wait()?;
    string_result
        .trim()
        .parse::<i64>()
        .map_err(|err| err.into())
}
fn parse_date_string ( date : & str ) -> Result < i64 , Error > { let mut child = process :: Command :: new ( " " ) . arg ( " " ) . arg ( " " ) . arg ( date ) . stdin ( Stdio :: null ( ) ) . stdout ( Stdio :: piped ( ) ) . spawn ( ) ? ; let mut string_result = String :: new ( ) ; child . stdout . take ( ) . unwrap ( ) . read_to_string ( & mut string_result ) ? ; child . wait ( ) ? ; string_result . trim ( ) . parse :: < i64 > ( ) . map_err ( | err | err . into ( ) ) }
Rather than reimplementing the human entered date parsing logic from coreutils, just use `date`
for now.
Rather than reimplementing the human entered date parsing logic from coreutils just use ` date ` for now .
date
&str
date
&str