a valid UTF-8 string, containing the format for the #GDateTime
a newly allocated string formatted to the requested format or null in the case that there was an error (such as a format specifier not being supported in the current locale). The string should be freed with glib.global.gfree.
2.80 * #: Use opposite case if possible. This is a gnulib strftime() extension. Since: 2.80 )
Additionally, when O is used with B, b, or h, it produces the alternative form of a month name. The alternative form should be used when the month name is used without a day number (e.g., standalone). It is required in some languages (Baltic, Slavic, Greek, and more) due to their grammatical rules. For other languages there is no difference. `OB` is a GNU and BSD strftime() extension expected to be added to the future POSIX specification, `Ob` and `Oh` are GNU strftime() extensions. Since: 2.56
Since GLib 2.80, when E is used with `c`, `C`, `x`, `X`, `y` or `Y`, the date is formatted using an alternate era representation specific to the locale. This is typically used for the Thai solar calendar or Japanese era names, for example.
Creates a newly allocated string representing the requested format.
The format strings understood by this function are a subset of the strftime() format language as specified by C99. The `D`, `U` and `W` conversions are not supported, nor is the E modifier. The GNU extensions `k`, `l`, `s` and `P` are supported, however, as are the 0, _ and - modifiers. The Python extension `f` is also supported.
In contrast to strftime(), this function always produces a UTF-8 string, regardless of the current locale. Note that the rendering of many formats is locale-dependent and may not match the strftime() output exactly.
The following format specifiers are supported:
Some conversion specifications can be modified by preceding the conversion specifier by one or more modifier characters.
The following modifiers are supported for many of the numeric conversions:
The following modifiers are supported for many of the alphabetic conversions:
$(LIST * ^: Use upper case if possible. This is a gnulib strftime() extension.