Java Calendar Time setTimeFrom(Calendar c)

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

Description

set Time From

License

LGPL

Declaration

public static void setTimeFrom(Calendar c) 

Method Source Code

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

import java.util.Calendar;

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

Related

  1. sameTime(Calendar one, Calendar two)
  2. setDateTimeByString(Calendar theDateTime, String str)
  3. setTime(Calendar cal, int h, int m, int s, int ms)
  4. setTime(Calendar cal, String time)
  5. setTime(final Calendar calendat, final String[] test)
  6. setTimeTo0(final Calendar calendar)
  7. setTimeToMidnight(GregorianCalendar c)
  8. setTimeToMinOrMax(Calendar cal, boolean max)
  9. stripTime(final Calendar cal)