Here you can find the source of clearTimeFields(Set
Parameter | Description |
---|---|
c | a parameter |
public static void clearTimeFields(Set<Calendar> c)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Set; public class Main { /**/*from w w w . j a v a 2 s. c om*/ * Clears the date fields on the specified calendar collection. * * @param c */ public static void clearTimeFields(Set<Calendar> c) { for (Calendar cal : c) { clearTimeFields(cal); } } /** * Clears the time fields on the specified calendar. * * @param c */ public static void clearTimeFields(Calendar c) { if (c != null) { c.clear(Calendar.AM); c.clear(Calendar.DST_OFFSET); c.clear(Calendar.HOUR); c.clear(Calendar.HOUR_OF_DAY); c.clear(Calendar.MILLISECOND); c.clear(Calendar.SECOND); c.clear(Calendar.MINUTE); c.clear(Calendar.ZONE_OFFSET); } } }