[][src]Function termscp::utils::parser::parse_lstime

pub fn parse_lstime(
    tm: &str,
    fmt_year: &str,
    fmt_hours: &str
) -> Result<SystemTime, ParseError>

parse_lstime

Convert ls syntax time to System Time ls time has two possible syntax:

  1. if year is current: %b %d %H:%M (e.g. Nov 5 13:46)
  2. else: %b %d %Y (e.g. Nov 5 2019)