Here you can find the source of todayMinute()
public static int todayMinute()
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { public static int todayMinute() { Calendar c = Calendar.getInstance(); int hh = c.get(Calendar.HOUR_OF_DAY); int mm = c.get(Calendar.MINUTE); return hh * 60 + mm; }/* w w w . j av a2s . c om*/ }