parse_date_format()
#
Parses a date format string and initializes a date_mode
structure with the corresponding format type and localization settings.
Prototype
void parse_date_format(
const char *format,
struct date_mode *mode
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The date format string to be parsed. |
|
|
Pointer to a |
Return Value
This function does not return a value.
Notes
If the format string starts with auto:
, the function selects an appropriate format based on whether the output is a terminal. The function also supports historical aliases such as default-local
for local time formatting.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples