humantime

Function parse_rfc3339_weak

Source
pub fn parse_rfc3339_weak(s: &str) -> Result<SystemTime, Error>
Expand description

Parse RFC3339-like timestamp 2018-02-14 00:28:07

Supported features:

  1. Any precision of fractional digits 2018-02-14 00:28:07.133.
  2. Supports timestamp with or without either of T or Z
  3. Anything valid for parse_3339 is valid for this function

Unsupported feature: localized timestamps. Only UTC is supported, even if Z is not specified.

This function is intended to use for parsing human input. Whereas parse_rfc3339 is for strings generated programmatically.