def scale_time_units(time_seconds_arr, unit):
 if (unit == u'minutes'):
  return list(map((lambda x: ((x * 1.0) / 60)), time_seconds_arr))
 elif (unit == u'hours'):
  return list(map((lambda x: ((x * 1.0) / (60 * 60))), time_seconds_arr))
 elif (unit == u'days'):
  return list(map((lambda x: ((x * 1.0) / ((24 * 60) * 60))), time_seconds_arr))
 return time_seconds_arr

def scale_time_units ( time_seconds_arr , unit ) : if ( unit == u'minutes' ) : return list ( map ( ( lambda x : ( ( x * 1.0 ) / 60 ) ) , time_seconds_arr ) ) elif ( unit == u'hours' ) : return list ( map ( ( lambda x : ( ( x * 1.0 ) / ( 60 * 60 ) ) ) , time_seconds_arr ) ) elif ( unit == u'days' ) : return list ( map ( ( lambda x : ( ( x * 1.0 ) / ( ( 24 * 60 ) * 60 ) ) ) , time_seconds_arr ) ) return time_seconds_arr
convert an array of time durations in seconds to the specified time unit .