cal.set(Calendar.MILLISECOND, 0);
return cal.getTimeInMillis();
}
public static long roundDownTimeStampMinutes(long timestamp,
<BUG>int roundDownMins) throws IllegalStateException {
Preconditions.checkArgument(roundDownMins > 0 && roundDownMins <= 60,</BUG>
"RoundDown must be > 0 and <=60");
<BUG>Calendar cal = roundDownField(timestamp, Calendar.MINUTE, roundDownMins);
</BUG>
cal.set(Calendar.SECOND, 0);

cal.set(Calendar.MILLISECOND, 0);
return cal.getTimeInMillis();
}
public static long roundDownTimeStampMinutes(long timestamp,
int roundDownMins) throws IllegalStateException {
return roundDownTimeStampMinutes(timestamp, roundDownMins, null);
}
public static long roundDownTimeStampMinutes(long timestamp, int roundDownMins, TimeZone timeZone)
throws IllegalStateException {
Preconditions.checkArgument(roundDownMins > 0 && roundDownMins <= 60,
"RoundDown must be > 0 and <=60");
Calendar cal = roundDownField(timestamp, Calendar.MINUTE, roundDownMins, timeZone);
cal.set(Calendar.SECOND, 0);
