date_mode_from_type()#
The function date_mode_from_type() returns a pointer to a static struct date_mode initialized with the given date_mode_type. If the type is DATE_STRFTIME, an error message is logged.
Prototype
struct date_mode *date_mode_from_type(
enum date_mode_type type
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The date mode type to initialize the |
Return Value
A pointer to a static struct date_mode initialized with the given type. If DATE_STRFTIME is passed, an error message is logged.
Notes
The returned pointer refers to a static structure, so it should not be modified or freed by the caller.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples