Rework DurationFormatUtils to have clearer API based on two types of formatting Fix millisecond formatting bug