Gda.HandlerTime¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
||
priv |
r |
Class Details¶
- class Gda.HandlerTime(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
the new object
- Return type:
Creates a data handler for time values
- classmethod new_no_locale()¶
- Returns:
the new object
- Return type:
Creates a data handler for time values, but using the default C locale instead of the current user locale.
- get_format(type)¶
- Parameters:
type (
GObject.GType
) – the type of data being handled- Returns:
a new string
- Return type:
Get a string representing the locale-dependent way to enter a date/time/datetime, using a syntax suitable for the #GdauiFormatEntry widget
- get_no_locale_str_from_value(value)¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
value- Returns:
a new string representing value without taking the current locale into account (i.e. in the “C” locale)
- Return type:
- set_sql_spec(first, sec, third, separator, twodigits_years)¶
- Parameters:
first (
GLib.DateDMY
) – what comes first in the date representationsec (
GLib.DateDMY
) – what comes second in the date representationthird (
GLib.DateDMY
) – what comes third in the date representationseparator (
int
) – separator character used between year, month and daytwodigits_years (
bool
) –True
if year part of date must be rendered on 2 digits
Specifies the SQL output style of the self 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=:obj:GLib.DateDMY.MONTH, sec=:obj:GLib.DateDMY.DAY and third=:obj:GLib.DateDMY.YEAR (the year is rendered on 4 digits) and the separator is ‘-’
- set_str_spec(first, sec, third, separator, twodigits_years)¶
- Parameters:
first (
GLib.DateDMY
) – what comes first in the date representationsec (
GLib.DateDMY
) – what comes second in the date representationthird (
GLib.DateDMY
) – what comes third in the date representationseparator (
int
) – separator character used between year, month and daytwodigits_years (
bool
) –True
if year part of date must be rendered on 2 digits
Specifies the human readable output style of the self 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 depends on the current locale, except if self was created using
Gda.HandlerTime.new_no_locale
().New in version 4.2.1.