Here you can find the source of getSecond(java.util.Date date)
public static int getSecond(java.util.Date date)
//package com.java2s; public class Main { public static int getSecond(java.util.Date date) { java.util.Calendar c = java.util.Calendar.getInstance(); c.setTime(date);/*from ww w . ja va2s . c o m*/ return c.get(java.util.Calendar.SECOND); } }