Here you can find the source of setCalendarTime(Calendar calendar, int hour, int minute, int second, int millis)
public static Calendar setCalendarTime(Calendar calendar, int hour, int minute, int second, int millis)
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar setCalendarTime(Calendar calendar, int hour, int minute, int second, int millis) { calendar.set(Calendar.HOUR_OF_DAY, hour); calendar.set(Calendar.MINUTE, minute); calendar.set(Calendar.SECOND, second); calendar.set(Calendar.MILLISECOND, millis); return calendar; }//from w w w . j a v a 2s.c o m }