Here you can find the source of truncateHour(Calendar ca)
public static void truncateHour(Calendar ca)
//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*/ }