DateTime.format

Creates a newly allocated string representing the requested format. Since 2.26

class DateTime
string
format
(
string format
)

Parameters

format string

a valid UTF-8 string, containing the format for the GDateTime

Return Value

Type: string

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

Meta