Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Locale; public class Main { public static final String getStandardTime(int minute, int hour) { SimpleDateFormat format = new SimpleDateFormat("HH:mm", Locale.CHINA); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.MINUTE, minute); calendar.set(Calendar.HOUR_OF_DAY, hour); return format.format(calendar.getTime()); } }