| GNOME Data Access 4 manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | ||||
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);
typedef struct {
GObjectClass parent_class;
/* Padding for future expansion */
void (*_gda_reserved1) (void);
void (*_gda_reserved2) (void);
} GdaHandlerTimeClass;
GdaDataHandler * gda_handler_time_new (void);
Creates a data handler for time values
Returns : |
the new object |
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 |
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 '-'
|
a GdaHandlerTime object |
|
what comes first in the date representation |
|
what comes second in the date representation |
|
what comes third in the date representation |
|
separator character used between year, month and day |
|
TRUE if year part of date must be rendered on 2 digits |
gchar * gda_handler_time_get_format (GdaHandlerTime *dh,GType type);
Get a string representing the locale-dependent way to enter a date/time/datetime, using a syntax suitable for the GnomeDbFormatEntry widget
|
a GdaHandlerTime object |
|
the type of data being handled |
Returns : |
a new string |