Class k.d._BaseDateTimeConverter(BaseConverter):

Part of kiwi.datatypes

known subclasses: kiwi.datatypes._TimeConverter, kiwi.datatypes._DateTimeConverter, kiwi.datatypes._DateConverter

Abstract class for converting datatime objects to and from strings
cvar date_format
cvar lang_constant
Function__init__Undocumented
Functionget_lang_constant_win32Undocumented
Functionget_lang_constantUndocumented
Functionfrom_dateinfoUndocumented
Functionget_compare_function
This can be overriden by a subclass to provide a custom comparison
Functionget_formatUndocumented
Functionget_mask
Returns the mask of the entry or None if not specified.
Functionas_string
Convert a date to a string
Function_convert_format
Convert the format string to a 'human-readable' format
Functionfrom_string
Convert a string to a date
def __init__(self):
Undocumented
def get_lang_constant_win32(self):
Undocumented
def get_lang_constant(self):
Undocumented
def from_dateinfo(self, dateinfo):
Undocumented
def get_compare_function(self):
This can be overriden by a subclass to provide a custom comparison function.
def get_format(self):
Undocumented
def get_mask(self):
Returns the mask of the entry or None if not specified.
def as_string(self, value, format=None):
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):
Convert a string to a date