Here you can find the source of setMinSeconds(Date date)
public static Date setMinSeconds(Date date)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { public static Date setMinSeconds(Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date);/* w w w .ja v a 2 s. com*/ cal.set(Calendar.SECOND, 0); return cal.getTime(); } }