Here you can find the source of toMinHours(Calendar calendar)
Parameter | Description |
---|---|
calendar | a given parameter |
public static void toMinHours(Calendar calendar)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { /**/*from www . j a va2s . c o m*/ * This method sets the calendar argument to the the zero hours of the day * * @param calendar a given parameter */ public static void toMinHours(Calendar calendar) { if (calendar != null) { calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); } } }