Skip to main content

parse_rfc3339

Function parse_rfc3339 

Source
pub fn parse_rfc3339(s: &str) -> Result<DateTime<FixedOffset>, ParseError>
Available on crate feature timex only.
Expand description

解析 RFC3339 时间字符串 (必须带时区偏移, 允许小数秒), 用于接收接口入参; 不接受省略时区的裸时间字符串