e-datetime-format: Evolution Utilities Reference Manual

## e-datetime-format e-datetime-format |

## Functions

gchar * | e_datetime_format_dup_config_filename ()
void | e_datetime_format_free_memory ()
void | e_datetime_format_add_setup_widget ()
gchar * | e_datetime_format_format ()
void | e_datetime_format_format_inline ()
gchar * | e_datetime_format_format_tm ()
void | e_datetime_format_format_tm_inline ()
gboolean | e_datetime_format_includes_day_name ()
const gchar * | e_datetime_format_get_format ()

## Types and Values

enum | DTFormatKind

## Description

## Functions

### e_datetime_format_dup_config_filename ()

    gchar *
    e_datetime_format_dup_config_filename (void);

Returns configuration file name for the date/time format.

#### Returns

configuration file name for the date/time format.

[transfer full]

Since: 3.50

### e_datetime_format_free_memory ()

    void
    e_datetime_format_free_memory (void);

Frees loaded configuration from the memory. The next call to the date/time format functions will load the configuration again. This function should be called from the same thread as the other date/time format functions, which is usually the main/GUI thread.

Since: 3.50

### e_datetime_format_add_setup_widget ()

    void
    e_datetime_format_add_setup_widget (GtkGrid *grid,
                                        gint row,
                                        const gchar *component,
                                        const gchar *part,
                                        DTFormatKind kind,
                                        const gchar *caption);

Adds a setup widget for a component and part. The table should have 3 columns. All the work related to loading and saving the value is done automatically, on user's changes.

#### Parameters

grid | Where to attach widgets. Requires 3 columns. |
row | On which row to attach. |
component | Component identifier for the format. Cannot be empty nor NULL. |
part | Part in the component, can be NULL or empty string. |
kind | Kind of the format for the component/part. |
caption | Caption for the widget, can be NULL, then the "Format:" is used. |

### e_datetime_format_format ()

    gchar *
    e_datetime_format_format (const gchar *component,
                              const gchar *part,
                              DTFormatKind kind,
                              time_t value);

### e_datetime_format_format_inline ()

    void
    e_datetime_format_format_inline (const gchar *component,
                                     const gchar *part,
                                     DTFormatKind kind,
                                     time_t value,
                                     gchar *buffer,
                                     gint buffer_size);

### e_datetime_format_format_tm ()

    gchar *
    e_datetime_format_format_tm (const gchar *component,
                                 const gchar *part,
                                 DTFormatKind kind,
                                 struct tm *tm_time);

### e_datetime_format_format_tm_inline ()

    void
    e_datetime_format_format_tm_inline (const gchar *component,
                                        const gchar *part,
                                        DTFormatKind kind,
                                        struct tm *tm_time,
                                        gchar *buffer,
                                        gint buffer_size);

### e_datetime_format_includes_day_name ()

    gboolean
    e_datetime_format_includes_day_name (const gchar *component,
                                         const gchar *part,
                                         DTFormatKind kind);

### e_datetime_format_get_format ()

    const gchar *
    e_datetime_format_get_format (const gchar *component,
                                  const gchar *part,
                                  DTFormatKind kind);

## Types and Values

### enum DTFormatKind

#### Members

DTFormatKindDate |  |
DTFormatKindTime |  |
DTFormatKindDateTime |  |
DTFormatKindShortDate |  |