fn parse_timestamp_string(
    s: &str
) -> Result<(NaiveDate, NaiveTime, Timezone), String>
Expand description

Use the following grammar to parse s into:

  • NaiveDate
  • NaiveTime
  • Timezone string

NaiveDate and NaiveTime are appropriate to compute a NaiveDateTime, which can be used in conjunction with a timezone string to generate a DateTime<Utc>.

<unquoted timestamp string> ::=
    <date value> <space> <time value> [ <time zone interval> ]
<date value> ::=
    <years value> <minus sign> <months value> <minus sign> <days value>
<time zone interval> ::=
    <sign> <hours value> <colon> <minutes value>