kiwi.datatypes._BaseDateTimeConverter(BaseConverter) class documentationkiwi.datatypes
(View In Hierarchy)
Known subclasses: kiwi.datatypes._DateConverter, kiwi.datatypes._DateTimeConverter, kiwi.datatypes._TimeConverter
Abstract class for converting datatime objects to and from strings
| Class Variable | date_format | |
| Class Variable | lang_constant | |
| Method | __init__ | Undocumented |
| Method | get_lang_constant_win32 | Undocumented |
| Method | get_lang_constant | Undocumented |
| Method | from_dateinfo | Undocumented |
| Method | get_compare_function | This can be overriden by a subclass to provide a custom comparison function. @returns: cmp |
| Method | get_format | Undocumented |
| Method | get_mask | Returns the mask of the entry or None if not specified. @returns: the mask or None. |
| Method | as_string | Convert a date to a string |
| Method | from_string | Convert a string to a date |
| Method | _convert_format | Convert the format string to a 'human-readable' format |
Inherited from BaseConverter:
| Class Variable | type | |
| Class Variable | name | The name of the datatype. |
| Class Variable | align | The alignment of the datatype. Normally right for numbers and dates, left for others. Default is left. |
This can be overriden by a subclass to provide a custom comparison function.
| Returns | cmp | |
Returns the mask of the entry or None if not specified.
| Returns | the mask or None. | |
Convert a date to a string
Convert a string to a date