private String threeDigitString(int timeValue)
    {
        String result = Integer.toString(timeValue);

        if (result.length() == 1) 
        {
            result = "00" + result;
        }
        else if (result.length() == 2)
        {
            result = "0" + result;
        }

        return result;
    }