DateTime.formatIso8601

Format @datetime in ISO 8601 format, including the date, time and time zone, and return that as a UTF-8 encoded string.

Since GLib 2.66, this will output to sub-second precision if needed.

class DateTime
string
formatIso8601
()

Return Value

Type: string

a newly allocated string formatted in ISO 8601 format or %NULL in the case that there was an error. The string should be freed with g_free().

Meta

Since

2.62