# Class k.d._BaseDateTimeConverter(BaseConverter):

Part of kiwi.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 Variables | date_format |
| 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
Method | get_format | Undocumented
Method | get_mask | Returns the mask of the entry or None if not specified.
Method | as_string | Convert a date to a string
Method | _convert_format | Convert the format string to a 'human-readable' format
Method | from_string | Convert a string to a date

def __init__(self):
Undocumented
def get_lang_constant_win32(self):
overridden in kiwi.datatypes._DateConverter, kiwi.datatypes._DateTimeConverter, kiwi.datatypes._TimeConverter
Undocumented
def get_lang_constant(self):
overridden in kiwi.datatypes._DateConverter, kiwi.datatypes._DateTimeConverter, kiwi.datatypes._TimeConverter
Undocumented
def from_dateinfo(self, dateinfo):
overridden in kiwi.datatypes._DateConverter, kiwi.datatypes._DateTimeConverter, kiwi.datatypes._TimeConverter
Undocumented
def get_compare_function(self):
overrides kiwi.datatypes.BaseConverter.get_compare_function
This can be overriden by a subclass to provide a custom comparison function.

Returns | cmp

def get_format(self):
Undocumented
def get_mask(self):
overrides kiwi.datatypes.BaseConverter.get_mask
Returns the mask of the entry or None if not specified.

Returns | the mask or None.

def as_string(self, value, format=None):
overrides kiwi.datatypes.BaseConverter.as_string
Convert a date to a string

def _convert_format(self, format):
Convert the format string to a 'human-readable' format

def from_string(self, value):
overrides kiwi.datatypes.BaseConverter.from_string
Convert a string to a date