Skip to main content

parse_time_flag

Function parse_time_flag 

Source
pub fn parse_time_flag(flag: &str, text: &str) -> Result<ForTime, String>
Expand description

Reads a moment given as flag (--from, --to) as parse_for reads --for.

ยงErrors

A message naming the flag and the accepted forms.