## GdaHandlerTime GdaHandlerTime — Default handler for time, date and timestamp |

## Synopsis

                        GdaHandlerTime;
                        GdaHandlerTime;
                        GdaHandlerTimeClass;
                        GdaHandlerTimePriv;
    GdaDataHandler*     gda_handler_time_new                (void);
    GdaDataHandler*     gda_handler_time_new_no_locale      (void);
    void                gda_handler_time_set_sql_spec       (GdaHandlerTime *dh,
                                                             GDateDMY first,
                                                             GDateDMY sec,
                                                             GDateDMY third,
                                                             gchar separator,
                                                             gboolean twodigits_years);
    gchar*              gda_handler_time_get_format         (GdaHandlerTime *dh,
                                                             GType type);

## Object Hierarchy

      GObject
       +----GdaObject
             +----GdaHandlerTime

      GObject
       +----GdaObject
             +----GdaHandlerTime

## Implemented Interfaces

GdaHandlerTime implements GdaDataHandler.

GdaHandlerTime implements GdaDataHandler.

## Description

## Details

### GdaHandlerTime

    typedef struct _GdaHandlerTime GdaHandlerTime;

### GdaHandlerTime

    typedef struct _GdaHandlerTime GdaHandlerTime;

### GdaHandlerTimeClass

    typedef struct {
    	GdaObjectClass         parent_class;
    } GdaHandlerTimeClass;

### GdaHandlerTimePriv

    typedef struct _GdaHandlerTimePriv GdaHandlerTimePriv;

### gda_handler_time_new ()

    GdaDataHandler*     gda_handler_time_new                (void);

Creates a data handler for time values

Returns : | the new object

### gda_handler_time_new_no_locale ()

    GdaDataHandler*     gda_handler_time_new_no_locale      (void);

Creates a data handler for time values, but using the default C locale instead of the current user locale.

Returns : | the new object

### gda_handler_time_set_sql_spec ()

    void                gda_handler_time_set_sql_spec       (GdaHandlerTime *dh,
                                                             GDateDMY first,
                                                             GDateDMY sec,
                                                             GDateDMY third,
                                                             gchar separator,
                                                             gboolean twodigits_years);

Specifies the SQL output style of the `dh` data handler. The general format is "FIRSTsSECsTHIRD" where FIRST, SEC and THIRD are specified by `first`, `sec` and `trird` and 's' is the separator, specified by `separator`.

The default implementation is FIRST=G_DATE_MONTH, SEC=G_DATE_DAY and THIRD=G_DATE_YEAR (the year is rendered on 4 digits) and the separator is '-'

`dh` : | a GdaHandlerTime object
`first` : |
`sec` : |
`third` : |
`separator` : |
`twodigits_years` : | TRUE if year part of date must be rendered on 2 digits

### gda_handler_time_get_format ()

    gchar*              gda_handler_time_get_format         (GdaHandlerTime *dh,
                                                             GType type);

Get a string representing the locale-dependant way to enter a date/time/datetime, using a syntax suitable for the GnomeDbFormatEntry widget

`dh` : |
`type` : | the type of data being handled
Returns : | a new string