Here you can find the source of minutesToTime(int minutes)
public static Time minutesToTime(int minutes)
//package com.java2s; //License from project: Open Source License import java.sql.Time; public class Main { public static Time minutesToTime(int minutes) { int hr = getHours(minutes); int minute = getMinutes(minutes); return hmsToTime(hr, minute, 0); }//from ww w . j ava 2 s .c om public static int getHours(int minutes) { int hr = minutes / 60; return hr; } public static int getMinutes(int minutes) { int minute = minutes % 60; return minute; } public static Time hmsToTime(int hh, int mm, int ss) { long theLongTime = (hh * 3600) + (mm * 60) + ss; Time theTime = new Time(theLongTime); return theTime; } }