def _GetTime(time_string):
 (hourstr, minutestr) = time_string.split(':')
 return datetime.time(int(hourstr), int(minutestr))

def _GetTime ( time_string ) : ( hourstr , minutestr ) = time_string . split ( ':' ) return datetime . time ( int ( hourstr ) , int ( minutestr ) )
converts a string to a datetime .