It doesn't look like this function closes around any variables. If that's the case, I think it makes more sense to define it outside the body of `convertAlarms`. It probably needs a more descriptive name in that context, maybe `convertTo12`?