def linefilter_datetime(s):
	"""converts 'datetime 0 to 4'
		to 'datetime YEAR to DAY'
	"""
	line = s
	rx = RE_DATETIME.search(line)
	if rx:
		txt = line[rx.start(1):rx.end(2)]
		txt2 = '%s to %s' % (IFX_DATETYPE[rx.group(1)], IFX_DATETYPE[rx.group(2)])
		line = line.replace(txt, txt2)
	return line
converts 'datetime 0 to 4'
		to 'datetime YEAR to DAY'
	
recipes/Python/576621_Dump_Informix_schema_to_text/recipe-576621.py