Here you can find the source of getSecond(Calendar c)
public static int getSecond(Calendar c)
//package com.java2s; import java.util.Calendar; public class Main { public static int getSecond(Calendar c) { if (c != null) { return c.get(Calendar.SECOND); } else {//from w ww . j av a 2 s. com return Calendar.getInstance().get(Calendar.SECOND); } } }