Java Calendar Time zeroTime(Calendar cal)

Here you can find the source of zeroTime(Calendar cal)

Description

zero Time

License

Open Source License

Declaration

@Deprecated
public static Calendar zeroTime(Calendar cal) 

Method Source Code


//package com.java2s;
import java.util.Calendar;

public class Main {
    /**//  w  w w  .  j  a v a2s  . c  o  m
     * @deprecated Use {@link Calendars}.
     */
    @Deprecated
    public static Calendar zeroTime(Calendar cal) {
        cal.set(Calendar.HOUR, 0);
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);
        return cal;
    }
}

Related

  1. toTimeStamp(Calendar cal)
  2. toTimeString(final Calendar calendar)
  3. toUnixTime(Calendar timestamp)
  4. toVonTime(final Calendar cal)
  5. unixToCalendar(long unixTime)
  6. zeroTimeFields(Calendar cal)