private void setDuration(long hours, long minutes, long seconds) {
            if (hours > 99 || minutes > 99)
                setDurationString("99", "99", "99");
            else
                setDurationString(stringFragment(hours), stringFragment(minutes), stringFragment(seconds));
        }
Encapsulates the digit input logic and text to duration conversion logic.
android/third_party/time-duration-picker/src/main/java/mobi/upod/timedurationpicker/TimeDurationPicker.java