Java Calendar Calculate truncateHour(Calendar ca)

Here you can find the source of truncateHour(Calendar ca)

Description

truncate Hour

License

Apache License

Declaration

public static void truncateHour(Calendar ca) 

Method Source Code

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

import java.util.*;

public class Main {
    public static void truncateHour(Calendar ca) {
        ca.set(Calendar.MILLISECOND, 0);
        ca.set(Calendar.SECOND, 0);
        ca.set(Calendar.MINUTE, 0);
    }/*from  www  .j  av a2 s .  c o m*/
}

Related

  1. resetCalendarTime(Calendar calendar)
  2. roundBack(Calendar start)
  3. roundCalToNextQuarterHour(GregorianCalendar cal)
  4. transform(Calendar cal)
  5. truncate(Calendar ca)