Here you can find the source of calendarFor(final int year, final int month, final int day, final int hour, final int minute)
public static Calendar calendarFor(final int year, final int month, final int day, final int hour, final int minute)
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar calendarFor(final int year, final int month, final int day, final int hour, final int minute) { final Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, year); cal.set(Calendar.MONTH, month - 1); cal.set(Calendar.DAY_OF_MONTH, day); cal.set(Calendar.HOUR_OF_DAY, hour); cal.set(Calendar.MINUTE, minute); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return cal; }//from www . j a v a 2 s. c o m }