Top | ![]() |
![]() |
![]() |
![]() |
DateTime UtilitiesDateTime Utilities — Functions to help working with GDateTime and HTTP |
GDateTime *
soup_date_time_new_from_http_string (const char *date_string
);
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.)
char * soup_date_time_to_string (GDateTime *date
,SoupDateFormat format
);
Converts date
to a string in the format described by format
.
Return: (transfer full): date
as a string or NULL
Date formats that soup_date_time_to_string()
can use.
SOUP_DATE_HTTP
and SOUP_DATE_COOKIE
always coerce the time to
UTC.
This enum may be extended with more values in future releases.