Date.from_string


Description:

[ CCode ( has_construct_function = false ) ]
public Date.from_string (string date_string)

Parses date_string and tries to extract a date from it.

This recognizes all of the "HTTP-date" formats from RFC 2616, all ISO 8601 formats containing both a time and a date, RFC 2822 dates, and reasonable approximations thereof. (Eg, it is lenient about whitespace, leading "0"s, etc.)

Parameters:

date_string

the date in some plausible format

Returns:

a new Date, or null if date_string could not be parsed.