Here you can find the source of clearTime(GregorianCalendar date)
Parameter | Description |
---|---|
date | The date. |
public static void clearTime(GregorianCalendar date)
//package com.java2s; /* Please see the license information at the end of this file. */ import java.util.*; public class Main { /** Clears the time in a Gregorian calendar date. */*from w w w . j a v a 2 s .c o m*/ * @param date The date. */ public static void clearTime(GregorianCalendar date) { date.set(Calendar.HOUR_OF_DAY, 0); date.set(Calendar.MINUTE, 0); date.set(Calendar.SECOND, 0); date.set(Calendar.MILLISECOND, 0); } }