pub fn parse(
phrase: &str,
config: Option<Config>
) -> Result<(DateTime<Utc>, DateTime<Utc>, bool), TimeError>
Expand description
Converts a time expression into a pair or timestamps and a boolean indicating whether the expression was literally a range, such as “9 to 11”, as opposed to “9 AM”, say.
The second parameter is an optional Config
object. In general you will not need to
use this except in testing or in the interpretation of pay periods.
Examples
let (reference_time, _, _) = parse("5/6/69", None).unwrap();