def xldate_from_datetime_tuple(datetime_tuple, datemode):
 return (xldate_from_date_tuple(datetime_tuple[:3], datemode) + xldate_from_time_tuple(datetime_tuple[3:]))

def xldate_from_datetime_tuple ( datetime_tuple , datemode ) : return ( xldate_from_date_tuple ( datetime_tuple [ : 3 ] , datemode ) + xldate_from_time_tuple ( datetime_tuple [ 3 : ] ) )
convert a datetime tuple to an excel date value .