Skip to main content

parse_time

Function parse_time 

Source
pub fn parse_time(s: &str) -> Option<SystemTime>
Expand description

Parse an HTTP-date string in any of the three formats Go accepts: RFC 1123 (“Mon, 02 Jan 2006 15:04:05 GMT”), RFC 850 (“Monday, 02-Jan-06 15:04:05 GMT”), asctime (“Mon Jan 2 15:04:05 2006”).

Port of Go’s http.ParseTime.