Function soup::date_time_new_from_http_string
source · pub fn date_time_new_from_http_string(date_string: &str) -> Option<DateTime>
Expand description
Parses @date_string and tries to extract a date from it.
This recognizes all of the “HTTP-date” formats from RFC 2616, RFC 2822 dates, and reasonable approximations thereof. (Eg, it is lenient about whitespace, leading “0“s, etc.)
§date_string
The date as a string
§Returns
a new #GDateTime, or None
if @date_string
could not be parsed.