Not able to add 15 minute to 00:00
<p>I have written a function for adding time in a 24 hour format as given below</p>

<pre><code>for (int i = 0; i &lt; cursor.getCount(); i++) {

        String RevisedTime="00:00";     



        // get hour and minute from time string
        StringTokenizer st1 = new StringTokenizer(RevisedTime, ":");
        int j = 0;
        int[] val = new int[st1.countTokens()];
        // iterate through tokens
        while (st1.hasMoreTokens()) {
            val[j] = Integer.parseInt(st1.nextToken());
            j++;
        }

        // call time add method with current hour, minute and minutesToAdd,
        // return added time as a string
        String date = addTime(val[0], val[1], 15);



    }

public String addTime(int hour, int minute, int minutesToAdd) {
        Calendar calendar = new GregorianCalendar(1990, 1, 1, hour, minute);
        calendar.add(Calendar.MINUTE, minutesToAdd);
        SimpleDateFormat sdf = new SimpleDateFormat("kk:mm");
        String date = sdf.format(calendar.getTime());
        return date;
    }
</code></pre>

<p>The problem is that while adding 15 minutes to 00:00 I am getting the output as 12.15....</p>

<p>I need to get it as 00:15......Pleas help me.....</p>
