def METHOD_NAME(string, date=None):
	parts = string.split(":")
	if len(parts) == 1:
		return datetime.datetime.combine(date, datetime.time(hour=int(parts[0])))
	elif len(parts) == 2:
		return datetime.datetime.combine(date, datetime.time(hour=int(parts[0]), minute=int(parts[1])))
	else:
		return None