function d3_time_format_multi(formatsArray) {
function multiFormat(date) {
let i = 0,
found = false,
fmt = "%c";
while (!found && i < formatsArray.length) {
found = formatsArray[i][1](date);
if (found) fmt = formatsArray[i][0];
i++;
}
return fmt;
}
return date => d3.timeFormat(multiFormat(date))(date);
}