Java Calendar Minute clearHoursMinutesSecondsMillis(Calendar calendar)

Here you can find the source of clearHoursMinutesSecondsMillis(Calendar calendar)

Description

clear Hours Minutes Seconds Millis

License

Apache License

Declaration

public static void clearHoursMinutesSecondsMillis(Calendar calendar) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    public static void clearHoursMinutesSecondsMillis(Calendar calendar) {
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);
    }// w  w w  .  j a  v  a 2s  .c om
}

Related

  1. calendarTodayOf(int hour, int minute, int second, int millis)
  2. getFirstMinuteOfDay(Calendar dt)
  3. getMinute(Calendar cal)
  4. getMinutes(Calendar cal)
  5. getMinutes(Calendar cal1, Calendar cal2)