public String getParsedTime()
    {
        String time = "";
        if(!ampm)
        {
            if(minute <10)
            {
                time += Integer.toString(hour) +":0" +Integer.toString(minute);
            }
            else
            {
                time += Integer.toString(hour) +":" +Integer.toString(minute);
            }
        }
        else
        {
            if(hour <= 12)
            {
                if(minute <10)
            {
                time += Integer.toString(hour) +":0" +Integer.toString(minute) +" AM";
            }
            else
            {
                time += Integer.toString(hour) +":" +Integer.toString(minute) +" AM";
            }
            }
            else
            {
                if(minute <10)
                {
                    time += Integer.toString(hour-12) +":0" +Integer.toString(minute) +" PM";
                }
                else
                {
                    time += Integer.toString(hour-12) +":" +Integer.toString(minute) +" PM";
                }
            }
        }
        return time;
    }