Java Calendar Time toVonTime(final Calendar cal)

Here you can find the source of toVonTime(final Calendar cal)

Description

to Von Time

License

Open Source License

Declaration

public static void toVonTime(final Calendar cal) 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static void toVonTime(final Calendar cal) {
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
    }//www.  j  av  a2s  .  co m

    public static Date toVonTime(final Date cal) {
        final Calendar calendar = Calendar.getInstance();
        calendar.setTime(cal);
        toVonTime(calendar);
        return calendar.getTime();
    }
}

Related

  1. timestampToCalendar(String timestamp)
  2. toDefaultTimeZone(Calendar calendar)
  3. toTimeStamp(Calendar cal)
  4. toTimeString(final Calendar calendar)
  5. toUnixTime(Calendar timestamp)
  6. unixToCalendar(long unixTime)
  7. zeroTime(Calendar cal)
  8. zeroTimeFields(Calendar cal)