Here you can find the source of getMinutesOfHour(Date dt)
Parameter | Description |
---|---|
dt | The given Date |
public static int getMinutesOfHour(Date dt)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { /**// w ww . j a va 2 s .c o m * Get and return the minutes of the hour from the given Date dt * * @param dt * The given Date * * @return day The int value for minutes of hour */ public static int getMinutesOfHour(Date dt) { Calendar cal = new GregorianCalendar(); cal.setTime(dt); return (cal.get(Calendar.MINUTE)); } }