Java Calendar Day resetToBeginningOfDay(Calendar c)

Here you can find the source of resetToBeginningOfDay(Calendar c)

Description

reset To Beginning Of Day

License

Open Source License

Declaration

static public void resetToBeginningOfDay(Calendar c) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2014 Whizzo Software, LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/

import java.util.Calendar;

public class Main {
    static public void resetToBeginningOfDay(Calendar c) {
        c.set(Calendar.HOUR_OF_DAY, 0);
        c.set(Calendar.MINUTE, 0);
        c.set(Calendar.SECOND, 0);
        c.set(Calendar.MILLISECOND, 0);
    }/*from   w ww . ja va2  s  .co m*/
}

Related

  1. julianDay(Calendar calendar)
  2. minOfDay(Calendar calendar)
  3. moveToCalendarDay(Calendar cal, int day)
  4. moveToCalendarDayJust(Calendar cal)
  5. newCalendarForDay(Date date)
  6. sameDay(Calendar a, Calendar b)
  7. sameDay(Calendar c1, Calendar c2)
  8. sameDay(Calendar one, Calendar two)
  9. setDayToCalendar(int days, Calendar calendar)