SoupDateFormat

Date formats that soup_date_to_string() can use.

@SOUP_DATE_HTTP and @SOUP_DATE_COOKIE always coerce the time to UTC. @SOUP_DATE_ISO8601_XMLRPC uses the time as given, ignoring the offset completely. @SOUP_DATE_RFC2822 and the other ISO 8601 variants use the local time, appending the offset information if available.

This enum may be extended with more values in future releases.

Values

ValueMeaning
HTTP1

RFC 1123 format, used by the HTTP "Date" header. Eg "Sun, 06 Nov 1994 08:49:37 GMT"

RFC28223

RFC 2822 format, eg "Sun, 6 Nov 1994 09:49:37 -0100"

ISO8601_COMPACT4

ISO 8601 date/time with no optional punctuation. Eg, "19941106T094937-0100".

ISO8601_FULL5

ISO 8601 date/time with all optional punctuation. Eg, "1994-11-06T09:49:37-01:00".

ISO86015

An alias for @SOUP_DATE_ISO8601_FULL.

ISO8601_XMLRPC6

ISO 8601 date/time as used by XML-RPC. Eg, "19941106T09:49:37".

Meta