Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { static public Calendar getTimeFromInt(int hourOfDay, int minute) { Calendar c = Calendar.getInstance(); c.set(Calendar.HOUR_OF_DAY, hourOfDay); c.set(Calendar.MINUTE, minute); return c; } }