Function dtparse::parse[][src]

pub fn parse(
    timestr: &str
) -> Result<(NaiveDateTime, Option<FixedOffset>), ParseError>

Main entry point for using dtparse. The parse function is responsible for taking in a string representing some time value, and turning it into a timestamp with optional timezone information if it can be identified.

The default implementation assumes English values for names of months, days of the week, etc. It is equivalent to Python's dateutil.parser.parse()